Menu

VBISAM doens't work in a new installation Debian ...

GnuCOBOL
2025-09-29
2025-10-03
  • Everaldo Bernardo Cunha

    Friends, I tried to install the vbisam package in the Debian 13 after a update of the Operation System (I had the 12 version Debian) and now it doesn't install vbisam. Now appear various errors messages in the terminal, see below:

    everaldo@vostro-3681:~/Instalar/Cobol/vbisam-2.0.1$ make
    make  all-recursive
    make[1]: Entrando no diretório '/home/everaldo/Instalar/Cobol/vbisam-2.0.1'
    
    Making all in libvbisam
    make[2]: Entrando no diretório '/home/everaldo/Instalar/Cobol/vbisam-2.0.1/libvbisam'
    
    if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..    -I.. -g -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT libvbisam_la-isdecimal.lo -MD -MP -MF ".deps/libvbisam_la-isdecimal.Tpo" -c -o libvbisam_la-isdecimal.lo `test -f 'isdecimal.c' || echo './'`isdecimal.c; \
    then mv -f ".deps/libvbisam_la-isdecimal.Tpo" ".deps/libvbisam_la-isdecimal.Plo"; else rm -f ".deps/libvbisam_la-isdecimal.Tpo"; exit 1; fi
    mkdir .libs
     gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -g -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT libvbisam_la-isdecimal.lo -MD -MP -MF .deps/libvbisam_la-isdecimal.Tpo -c isdecimal.c  -fPIC -DPIC -o .libs/libvbisam_la-isdecimal.o
     gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -g -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT libvbisam_la-isdecimal.lo -MD -MP -MF .deps/libvbisam_la-isdecimal.Tpo -c isdecimal.c -o libvbisam_la-isdecimal.o >/dev/null 2>&1
    if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..    -I.. -g -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT libvbisam_la-ishelper.lo -MD -MP -MF ".deps/libvbisam_la-ishelper.Tpo" -c -o libvbisam_la-ishelper.lo `test -f 'ishelper.c' || echo './'`ishelper.c; \
    then mv -f ".deps/libvbisam_la-ishelper.Tpo" ".deps/libvbisam_la-ishelper.Plo"; else rm -f ".deps/libvbisam_la-ishelper.Tpo"; exit 1; fi
     gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -g -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT libvbisam_la-ishelper.lo -MD -MP -MF .deps/libvbisam_la-ishelper.Tpo -c ishelper.c  -fPIC -DPIC -o .libs/libvbisam_la-ishelper.o
     gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -g -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT libvbisam_la-ishelper.lo -MD -MP -MF .deps/libvbisam_la-ishelper.Tpo -c ishelper.c -o libvbisam_la-ishelper.o >/dev/null 2>&1
    if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..    -I.. -g -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT libvbisam_la-isaudit.lo -MD -MP -MF ".deps/libvbisam_la-isaudit.Tpo" -c -o libvbisam_la-isaudit.lo `test -f 'isaudit.c' || echo './'`isaudit.c; \
    then mv -f ".deps/libvbisam_la-isaudit.Tpo" ".deps/libvbisam_la-isaudit.Plo"; else rm -f ".deps/libvbisam_la-isaudit.Tpo"; exit 1; fi
     gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -g -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT libvbisam_la-isaudit.lo -MD -MP -MF .deps/libvbisam_la-isaudit.Tpo -c isaudit.c  -fPIC -DPIC -o .libs/libvbisam_la-isaudit.o
     gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -g -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT libvbisam_la-isaudit.lo -MD -MP -MF .deps/libvbisam_la-isaudit.Tpo -c isaudit.c -o libvbisam_la-isaudit.o >/dev/null 2>&1
    if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..    -I.. -g -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT libvbisam_la-isbuild.lo -MD -MP -MF ".deps/libvbisam_la-isbuild.Tpo" -c -o libvbisam_la-isbuild.lo `test -f 'isbuild.c' || echo './'`isbuild.c; \
    then mv -f ".deps/libvbisam_la-isbuild.Tpo" ".deps/libvbisam_la-isbuild.Plo"; else rm -f ".deps/libvbisam_la-isbuild.Tpo"; exit 1; fi
     gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -g -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT libvbisam_la-isbuild.lo -MD -MP -MF .deps/libvbisam_la-isbuild.Tpo -c isbuild.c  -fPIC -DPIC -o .libs/libvbisam_la-isbuild.o
     gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -g -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT libvbisam_la-isbuild.lo -MD -MP -MF .deps/libvbisam_la-isbuild.Tpo -c isbuild.c -o libvbisam_la-isbuild.o >/dev/null 2>&1
    if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..    -I.. -g -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT libvbisam_la-isdelete.lo -MD -MP -MF ".deps/libvbisam_la-isdelete.Tpo" -c -o libvbisam_la-isdelete.lo `test -f 'isdelete.c' || echo './'`isdelete.c; \
    then mv -f ".deps/libvbisam_la-isdelete.Tpo" ".deps/libvbisam_la-isdelete.Plo"; else rm -f ".deps/libvbisam_la-isdelete.Tpo"; exit 1; fi
     gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -g -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT libvbisam_la-isdelete.lo -MD -MP -MF .deps/libvbisam_la-isdelete.Tpo -c isdelete.c  -fPIC -DPIC -o .libs/libvbisam_la-isdelete.o
    isdelete.c: In function 'irowdelete':
    isdelete.c:31:25: warning: variable 'tdupnumber' set but not used [-Wunused-but-set-variable]
       31 |         off_t           tdupnumber[MAXSUBS];
          |                         ^~~~~~~~~~
     gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -g -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT libvbisam_la-isdelete.lo -MD -MP -MF .deps/libvbisam_la-isdelete.Tpo -c isdelete.c -o libvbisam_la-isdelete.o >/dev/null 2>&1
    if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..    -I.. -g -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT libvbisam_la-isopen.lo -MD -MP -MF ".deps/libvbisam_la-isopen.Tpo" -c -o libvbisam_la-isopen.lo `test -f 'isopen.c' || echo './'`isopen.c; \
    then mv -f ".deps/libvbisam_la-isopen.Tpo" ".deps/libvbisam_la-isopen.Plo"; else rm -f ".deps/libvbisam_la-isopen.Tpo"; exit 1; fi
     gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -g -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT libvbisam_la-isopen.lo -MD -MP -MF .deps/libvbisam_la-isopen.Tpo -c isopen.c  -fPIC -DPIC -o .libs/libvbisam_la-isopen.o
     gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -g -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT libvbisam_la-isopen.lo -MD -MP -MF .deps/libvbisam_la-isopen.Tpo -c isopen.c -o libvbisam_la-isopen.o >/dev/null 2>&1
    if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..    -I.. -g -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT libvbisam_la-isread.lo -MD -MP -MF ".deps/libvbisam_la-isread.Tpo" -c -o libvbisam_la-isread.lo `test -f 'isread.c' || echo './'`isread.c; \
    then mv -f ".deps/libvbisam_la-isread.Tpo" ".deps/libvbisam_la-isread.Plo"; else rm -f ".deps/libvbisam_la-isread.Tpo"; exit 1; fi
     gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -g -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT libvbisam_la-isread.lo -MD -MP -MF .deps/libvbisam_la-isread.Tpo -c isread.c  -fPIC -DPIC -o .libs/libvbisam_la-isread.o
     gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -g -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT libvbisam_la-isread.lo -MD -MP -MF .deps/libvbisam_la-isread.Tpo -c isread.c -o libvbisam_la-isread.o >/dev/null 2>&1
    if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..    -I.. -g -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT libvbisam_la-isrecover.lo -MD -MP -MF ".deps/libvbisam_la-isrecover.Tpo" -c -o libvbisam_la-isrecover.lo `test -f 'isrecover.c' || echo './'`isrecover.c; \
    then mv -f ".deps/libvbisam_la-isrecover.Tpo" ".deps/libvbisam_la-isrecover.Plo"; else rm -f ".deps/libvbisam_la-isrecover.Tpo"; exit 1; fi
     gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -g -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT libvbisam_la-isrecover.lo -MD -MP -MF .deps/libvbisam_la-isrecover.Tpo -c isrecover.c  -fPIC -DPIC -o .libs/libvbisam_la-isrecover.o
    isrecover.c: In function 'ircvdelete':
    isrecover.c:322:18: warning: variable 'pcrow' set but not used [-Wunused-but-set-variable]
      322 |         char    *pcrow;
          |                  ^~~~~
    isrecover.c: In function 'ircvfileclose':
    isrecover.c:399:34: warning: variable 'ivarlenflag' set but not used [-Wunused-but-set-variable]
      399 |         int             ihandle, ivarlenflag, ipid;
          |                                  ^~~~~~~~~~~
    isrecover.c: In function 'ircvuniqueid':
    isrecover.c:553:30: error: passing argument 2 of 'isuniqueid' from incompatible pointer type [-Wincompatible-pointer-types]
      553 |         isuniqueid (ihandle, &tuniqueid);
          |                              ^~~~~~~~~~
          |                              |
          |                              off_t * {aka long int *}
    In file included from isinternal.h:123,
                     from isrecover.c:20:
    ../vbisam.h:239:74: note: expected 'int *' but argument is of type 'off_t *' {aka 'long int *'}
      239 | VB_DLL_EXPIMP extern int    isuniqueid (const int ihandle, vbisam_off_t *ptuniqueid);
          |                                                                          ^
    make[2]: *** [Makefile:352: libvbisam_la-isrecover.lo] Error 1
    make[2]: Saindo do diretório '/home/everaldo/Instalar/Cobol/vbisam-2.0.1/libvbisam'
    
    make[1]: *** [Makefile:279: all-recursive] Error 1
    make[1]: Saindo do diretório '/home/everaldo/Instalar/Cobol/vbisam-2.0.1'
    
    make: *** [Makefile:191: all] Error 2
    everaldo@vostro-3681:~/Instalar/Cobol/vbisam-2.0.1$ 
    

    What is happen now? Why it show errors to the run the make command? I'll await your answer!

    Everaldo Bernardo Cunha

     
  • Simon Sobisch

    Simon Sobisch - 2025-09-30

    You can try to use CFLAGS=-Wno-incompatible-pointer-types on the configure step of BDB, if that doesn't work try to "downgrade" GCC options by configuring with CC="gcc -std=gnu17" and if that doesn't work check with gnu11, gnu99 or even gnu89.

    In any case: Did you try to use Ron's VBISAM update instead? http://inglenet.ca/Products/GnuCOBOL/vbisam-2.2.tar.Z
    [yes, I know, updating the official VBISAM is long overdue...]

     

    Last edit: Simon Sobisch 2025-09-30
    • Everaldo Bernardo Cunha

      Now it worked! I decide to update the VBISAM to the 2.2 how you indicated ... thank you!

       
  • serge lacombe

    serge lacombe - 2025-10-02

    Hi,
    I'm trying to configure Gnucobol 3.2 with vbisam 2,2 without luck up to now. What is the exact path you followed in order to be succesfull?

    Many thanks.

    Serge.

     
    • Everaldo Bernardo Cunha

      I used the traditional mode: "configure", "make", "sudo make install" ... after I installed other packages: libxml2-2.9.7, gmp-6.2.0 and cJSON-master and so I installed GNUCobol 3.2 and run "sudo ldconfig" ...

       
  • serge lacombe

    serge lacombe - 2025-10-03

    Thanks for your answer;

    I have the same packages installed but when i try to configure Gnucobol 3.2 using

    ./configure --with-vbisam.,the process abends with:

    checking vbisam.h usability... no
    checking vbisam.h presence... no
    checking for vbisam.h... no
    configure: error: vbisam.h is required for VBISAM

    What am i missing?

     
    • Simon Sobisch

      Simon Sobisch - 2025-10-03

      How did you install VBISAM (and which version)?

       

Log in to post a comment.