bug-gnucobol
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-GnuCOBOL] runtime module libcob/fileio.c not compilable with VB


From: Ron Norman
Subject: Re: [Bug-GnuCOBOL] runtime module libcob/fileio.c not compilable with VBISAM
Date: Mon, 30 Oct 2017 10:29:42 -0700

Actually on a 64 but system 'long long' is also a 64 but value.
On a 32 bit system 'long' would be 32 bits but 'long long' is needed to get a 64 bit value.

On Mon, Oct 30, 2017 at 9:23 AM, Harald Cordes | ITGAIN <address@hidden> wrote:

Hi Ron,

 

After downloading the vbisam2, and a small correction in vbisam.h, it works fine.

 

The required correction:

In the age of 64 bit processors the definition

#define        vbisam_off_t    long long

has to be changed to a simple long

#define        vbisam_off_t    long

 

I see the note

#define VBISAM_USE_LONG_LONG    /* Note hack for now */

but an using an int could be insufficient.

 

Many thanks for your hint and best regards

   Harald

 

Von: Ron Norman [mailto:address@hidden]
Gesendet: Montag, 30. Oktober 2017 15:32
An: Harald Cordes | ITGAIN <address@hidden>
Cc: address@hidden
Betreff: Re: [Bug-GnuCOBOL] runtime module libcob/fileio.c not compilable with VBISAM

 

The GnuCOBOL README should say:

 

  o VBISAM - ISAM file handler (libvbisam) 2.0 or later

 

    VBISAM is distributed under GNU Lesser General Public License.

 

If you go to that link and Click on  'Files' you can find the vbisam2 version which is needed for GnuCOBOL.

 

 

On Mon, Oct 30, 2017 at 5:58 AM, Harald Cordes | ITGAIN <address@hidden> wrote:

Hi,

 

I downloaded VBISAM, like mentioned in README, from

http://sourceforge.net/projects/vbisam/

 

After a configure –with-vbisam the subsequent make failed with an error msg

that during the link process the symbol isfullclose wasn’t available.

 

After adding in libcob/fileio.c near line 135 the definition for isfullclose:

#ifdef  WITH_VBISAM

#include <vbisam.h>

#define isfullclose(x)  isclose (x)

The error msg went and I got a running COBOL compiler the ISAM support.

cobc -version:

Built     Oct 30 2017 12:55:36

 

With my best regards

   Harald

 



 

--

Cheers

Ron Norman




--
Cheers
Ron Norman

reply via email to

[Prev in Thread] Current Thread [Next in Thread]