Menu

New 3.2 version on one of my linux box is not successful in config .

2023-07-29
2023-08-16
  • Mickey White

    Mickey White - 2023-07-29

    I have 3.1.2.0 on my linux prod box and now I loaded the 3.2 version and the ./configure have these warning and errors.. Note I have been loading the nightly builds to my linux test box and I was sussessful in loading the new 3.2 to my linux test box.
    Here are the errors and warning from doing the ./config on by Linux Prod PopOS! Box:

    jamesw@pop-os:~/gnucobol-3.2$ cat config.log | grep -i warnin
    configure:5200: checking how to error on warnings during configure checks
    cc1: warning: command-line option '-fno-rtti' is valid for C++/D/ObjC++ but not for C
    conftest.c:(.text.startup+0xd): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    conftest.c:61:6: warning: conflicting types for built-in function 'vprintf'; expected 'int(const char , __va_list_tag )' [-Wbuiltin-declaration-mismatch]
    conftest.c:62:6: warning: conflicting types for built-in function 'memmove'; expected 'void (void , const void , long unsigned int)' [-Wbuiltin-declaration-mismatch]
    conftest.c:63:6: warning: conflicting types for built-in function 'memset'; expected 'void (void , int, long unsigned int)' [-Wbuiltin-declaration-mismatch]
    conftest.c:67:6: warning: conflicting types for built-in function 'strcasecmp'; expected 'int(const char , const char )' [-Wbuiltin-declaration-mismatch]
    conftest.c:68:6: warning: conflicting types for built-in function 'strchr'; expected 'char (const char , int)' [-Wbuiltin-declaration-mismatch]
    conftest.c:69:6: warning: conflicting types for built-in function 'strrchr'; expected 'char (const char , int)' [-Wbuiltin-declaration-mismatch]
    conftest.c:70:6: warning: conflicting types for built-in function 'strdup'; expected 'char (const char )' [-Wbuiltin-declaration-mismatch]
    conftest.c:71:6: warning: conflicting types for built-in function 'strstr'; expected 'char (const char , const char )' [-Wbuiltin-declaration-mismatch]
    configure:16747: WARNING: header for libcjson missing, you may adjust CJSON_CFLAGS or put cJSON sources in "libcob"
    configure:16747: WARNING: header for libcjson missing, you may adjust CJSON_CFLAGS or put cJSON sources in "libcob"
    configure:16910: WARNING: header for libjson-c missing, you may adjust JSON_C_CFLAGS
    configure:16910: WARNING: header for libjson-c missing, you may adjust JSON_C_CFLAGS
    jamesw@pop-os:~/gnucobol-3.2$ cat config.log | grep -i fatal
    gcc: fatal error: no input files
    gcc: fatal error: no input files
    conftest.c:12:10: fatal error: ac_nonexistent.h: No such file or directory
    conftest.c:12:10: fatal error: ac_nonexistent.h: No such file or directory
    conftest.c:55:10: fatal error: minix/config.h: No such file or directory
    conftest.c:22:10: fatal error: minix/config.h: No such file or directory
    conftest.c:98:10: fatal error: cJSON.h: No such file or directory
    conftest.c:65:10: fatal error: cJSON.h: No such file or directory
    conftest.c:98:10: fatal error: cjson/cJSON.h: No such file or directory
    conftest.c:65:10: fatal error: cjson/cJSON.h: No such file or directory
    conftest.c:98:10: fatal error: json.h: No such file or directory
    conftest.c:65:10: fatal error: json.h: No such file or directory
    conftest.c:98:10: fatal error: json-c/json.h: No such file or directory
    conftest.c:65:10: fatal error: json-c/json.h: No such file or directory
    conftest.c:118:10: fatal error: db.h: No such file or directory
    conftest.c:85:10: fatal error: db.h: No such file or directory
    jamesw@pop-os:~/gnucobol-3.2$
    

    AND here is what is current on this box:
    ~~~
    Last login: Fri Jul 28 17:29:54 2023 from 10.0.0.10
    jamesw@pop-os:~$ cobc --info
    cobc (GnuCOBOL) 3.1.2.0
    Copyright (C) 2020 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later https://gnu.org/licenses/gpl.html
    This is free software; see the source for copying conditions. There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    Written by Keisuke Nishida, Roger While, Ron Norman, Simon Sobisch, Edward Hart
    Built Sep 14 2021 19:23:38
    Packaged Dec 23 2020 12:04:58 UTC
    C version "11.2.0"
    build information
    build environment : x86_64-pc-linux-gnu
    CC : gcc
    C version : "11.2.0"
    CPPFLAGS : -Wdate-time -D_FORTIFY_SOURCE=2
    CFLAGS : -g -O2 -finline-functions -D_FORTIFY_SOURCE=2
    -ggdb3 -fasynchronous-unwind-tables -pipe
    -fsigned-char -Wall -Wwrite-strings
    -Wmissing-prototypes -Wno-format-y2k
    LD : /usr/bin/ld -m elf_x86_64
    LDFLAGS : -Wl,-Bsymbolic-functions -flto=auto
    -Wl,-z,relro -Wl,-z,relro,-z,now,-O1
    GnuCOBOL information
    COB_CC : gcc
    COB_CFLAGS : -finline-functions -D_FORTIFY_SOURCE=2 -ggdb3
    -pipe -Wdate-time -D_FORTIFY_SOURCE=2
    -Wno-unused -fsigned-char -Wno-pointer-sign
    COB_DEBUG_FLAGS : -ggdb3 -fasynchronous-unwind-tables
    COB_LDFLAGS : -Wl,-Bsymbolic-functions -flto=auto
    -Wl,-z,relro
    COB_LIBS : -L/usr/lib/x86_64-linux-gnu -lcob -lm
    COB_CONFIG_DIR : /etc/gnucobol
    COB_COPY_DIR : /usr/share/gnucobol/copy
    env: COBCPY : /home/jamesw/cpy:/home/jamesw/prd/cpy
    COB_MSG_FORMAT : GCC
    COB_OBJECT_EXT : o
    COB_MODULE_EXT : so
    COB_EXE_EXT :
    64bit-mode : yes
    BINARY-C-LONG : 8 bytes
    endianness : little-endian
    native EBCDIC : no
    extended screen I/O : ncursesw
    variable file format : 0
    sequential file handler : built-in
    indexed file handler : BDB
    mathematical library : GMP
    XML library : libxml2
    JSON library : not found
    jamesw@pop-os:~$
    ~~~

     

    Last edit: Mickey White 2023-07-29
    • Vincent (Bryan) Coen

      On 29/07/2023 19:05, Mickey White wrote:

      I have 3.1.2.0 on my linux prod box and now I loaded the 3.2 version
      and the ./configure have these warning and errors.. Note I have been
      loading the nightly builds to my linux test box and I was sussessful
      in loading the new 3.2 to my linux test box.
      Here are the errors and warning from doing the ./config on by Linux
      Prod PopOS! Box:

      ||

      Clutching at straws here but, can I suggest that you first uninstall the
      earlier versions before building and installed v3.2

      Out of interest did the o/p from ./configure report any issues ?

       
      • Mickey White

        Mickey White - 2023-07-29

        well I posted the out put of the ./configure report, with the Grep I just printed the warnings and the errors.
        I could do an uninstall, but if that failed then I would be up a creek...
        I am thinking if I install the versions after 3.1.2.0 in increments, perhaps that will work....
        I will think about it.. Thanks for asking...

         
        • Vincent (Bryan) Coen

          You can easily end up with multiple versions installed

          Had such an issue some years back and had to clear them all out.
          A later version build of the save version such as 3.2 rc-1, -2 final
          should not be an issue but there again that does depend on others
          getting it right and having been in computing since 1963 - I have learnt
          not to rely on that :)

          I.e., Do Not Assume.

          On 29/07/2023 22:05, Mickey White wrote:

          well I posted the out put of the ./configure report, with the Grep I
          just printed the warnings and the errors.
          I could do an uninstall, but if that failed then I would be up a creek...
          I am thinking if I install the versions after 3.1.2.0 in increments,
          perhaps that will work....
          I will think about it.. Thanks for asking...

           
  • Mickey White

    Mickey White - 2023-08-01

    Tried the Uninstall and it did not help, deleted the old directories and that did not help... Will keep looking at it, but same error even after all that.

     
  • Vincent (Bryan) Coen

    The uninstall has to needs to be done using the OLD build set i.e., that you used to create the original version.

    A mild try and do whereis hercules
    If that fails to find them all try sudo whereis hercules as it might find more.
    Then do a ls -la (or ll if you have it set up) to each location ie ll /found-path/hercules

    To see what dates they have to confirm if you still have the older one in the system.

    It is possible that the old one is set up in PATH before the new one and that would be found first.

    You must remember when doing updates to s/w that differ in architecture in any way to always use the current build area to 'make uninstall'

    That said it is easy to NOT remember :(

     

    Last edit: Vincent (Bryan) Coen 2023-08-01
    • Mickey White

      Mickey White - 2023-08-07

      I do have the MVS Hercules on my system. I fail to see the connection.

       
  • Simon Sobisch

    Simon Sobisch - 2023-08-15

    To include support for JSON you likely want to install either json-c or cJSON (dev packages) on your box before running configure.

    It is then always a good idea to do a system updated (seems to be sudo apt update in your case).

    Then - no matter if you have a pervious version of GnuCOBOL installed or not, just unpack the official tarball and run configure (it is suggested to do that in a sub-folder, but that's optional); if it exits, run "make".

    If the configure part doesn't work, then upload config.log.

    If the make part doesn't work, then do a make -k 2>&1 | tee make.log and upload this along with config.log.

     
    • Mickey White

      Mickey White - 2023-08-15

      Thanks! , Did the json install, now can't seem to find berkely DB? Pretty sure I have BDB installed....
      Attached is log.

       
      • Simon Sobisch

        Simon Sobisch - 2023-08-15

        configure cannot find db.h, so most likely you miss a "db-dev" package (or the system installed db.h into an uncommon place, which you could then include with BDB_CFLAGS="-I/some/uncommon/dir")

         
        • Mickey White

          Mickey White - 2023-08-15

          I cannot find db.h, so I did the configure with "--without-db " and it appeared to work.
          So if my old version of 3.1.2.0 says I have BDB file handler , then do I have to re-install Berkely? I have searched don't see where or what to install BDB if so.?
          PS I have not done make and install yet

           

          Last edit: Mickey White 2023-08-15
          • Simon Sobisch

            Simon Sobisch - 2023-08-15

            So if my old version of 3.1.2.0 says I have BDB file handler , then do I have to re-install Berkely?

            db-dev is only needed during compiling GnuCOBOL, you likely have db (containing the library) installed, but not db-dev

            To not loose support for ORGANIZATION INDEXED you likely want to re-configure after installing the appropriate db-dev package (commonly containing its header and dev docs).

             
  • Mickey White

    Mickey White - 2023-08-16

    @sf-mensch I have installed Berkeley 4.8, I still get one error on the BDB LIBS, what export varaible Do I need? I tried ln -s /usr/local/lib/libdb-4.8.so /usr/lib/libd-4.8.so but gave me a permission error.
    Here is where I am now.
    configure: Checks for Berkeley DB ...
    checking db.h usability... yes
    checking db.h presence... yes
    checking for db.h... yes
    configure: db.h reports version "-Berkeley DB 4.8.30: (April 9, 2010)-"
    checking for Berkeley DB db.h version >= 4.1... yes (4.8)
    checking for Berkeley DB library with BDB_LIBS... no
    configure: error: BDB library version 4.8 is required for --with-db, you may adjust BDB_LIBS

    jamesw@pop-os:~/gnucobol-3.2$ echo $BDB_LIBS

    configure: Checks for Berkeley DB ...
    checking db.h usability... yes
    checking db.h presence... yes
    checking for db.h... yes
    configure: db.h reports version "-Berkeley DB 4.8.30: (April  9, 2010)-"
    checking for Berkeley DB db.h version >= 4.1... yes (4.8)
    checking for Berkeley DB library with BDB_LIBS... no
    configure: error: BDB library version 4.8 is required for --with-db, you may adjust BDB_LIBS
    jamesw@pop-os:~/gnucobol-3.2$ echo $BDB_LIBS
    
    jamesw@pop-os:/usr/local/lib$ ls -l
    total 8196
    drwxr-xr-x 2 root   root      4096 Aug 15 09:38 gnucobol
    -rw-r--r-- 1 root   root    864322 Aug 15 09:38 libcob.a
    -rwxr-xr-x 1 root   root       941 Aug 15 09:38 libcob.la
    lrwxrwxrwx 1 root   root        15 Aug 15 09:38 libcob.so -> libcob.so.4.2.0
    lrwxrwxrwx 1 root   root        15 Aug 15 09:38 libcob.so.4 -> libcob.so.4.2.0
    -rwxr-xr-x 1 root   root    565088 Aug 15 09:38 libcob.so.4.2.0
    -rw-r--r-- 1 jamesw jamesw 2632454 Aug 16 09:10 libdb-4.8.a
    -rw-rw-r-- 1 jamesw jamesw     933 Aug 16 09:09 libdb-4.8.la
    -rwxrwxr-x 1 jamesw jamesw 1666328 Aug 16 09:09 libdb-4.8.so
    lrwxrwxrwx 1 root   root        12 Aug 16 09:10 libdb-4.so -> libdb-4.8.so
    -rw-r--r-- 1 jamesw jamesw 2632454 Aug 16 09:10 libdb.a
    lrwxrwxrwx 1 root   root        12 Aug 16 09:10 libdb.so -> libdb-4.8.so
    drwxr-xr-x 3 root   root      4096 Jul 22  2022 python3.10
    drwxr-xr-x 3 root   root      4096 Feb 19  2022 python3.9
    drwxr-xr-x 3 root   root      4096 May 13 15:37 R
    jamesw@pop-os:/usr/local/lib$ echo $BDB_LIBS
    /usr/local/lib/
    jamesw@pop-os:/usr/local/lib$
    

    I can't seem to connect that last part of the BDB check in the configure

     

    Last edit: Mickey White 2023-08-16
  • Mickey White

    Mickey White - 2023-08-16

    @sf-mensch Never Mind. I make my LD_LIBRARY_PATH = /usr/local/lib and configure worked fine:

    jamesw@pop-os:~/gnucobol-3.2$ cobc --info
    cobc (GnuCOBOL) 3.2.0
    Copyright (C) 2023 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    Written by Keisuke Nishida, Roger While, Ron Norman, Simon Sobisch, Edward Hart
    Built     Aug 16 2023 13:39:03
    Packaged  Jul 28 2023 17:02:56 UTC
    C version "11.4.0"
    
    build information
    build environment        : x86_64-pc-linux-gnu
    CC                       : gcc
    C version                : "11.4.0"
    CPPFLAGS                 :
    CFLAGS                   : -O2 -pipe -finline-functions -fsigned-char
                               -Wall -Wwrite-strings -Wmissing-prototypes
                               -Wno-format-y2k
    LD                       : /usr/bin/ld -m elf_x86_64
    LDFLAGS                  :  -Wl,-z,relro,-z,now,-O1
    
    GnuCOBOL information
    COB_CC                   : gcc
    COB_CFLAGS               : -pipe -I/usr/local/include -Wno-unused
                               -fsigned-char -Wno-pointer-sign
    COB_DEBUG_FLAGS          : -ggdb3 -fasynchronous-unwind-tables
    COB_LDFLAGS              :
    COB_LIBS                 : -L/usr/local/lib -lcob
    COB_CONFIG_DIR           : /usr/local/share/gnucobol/config
    COB_COPY_DIR             : /usr/local/share/gnucobol/copy
      env: COBCPY            : /home/jamesw/cpy:/home/jamesw/prd/cpy
    COB_MSG_FORMAT           : GCC
    COB_OBJECT_EXT           : o
    COB_MODULE_EXT           : so
    COB_EXE_EXT              :
    64bit-mode               : yes
    BINARY-C-LONG            : 8 bytes
    endianness               : little-endian
    native EBCDIC            : no
    extended screen I/O      : ncursesw
    variable file format     : 0
    sequential file handler  : built-in
    indexed file handler     : BDB
    mathematical library     : GMP
    XML library              : libxml2
    JSON library             : cjson
    jamesw@pop-os:~/gnucobol-3.2$
    

    Thanks for your leadership! ( I had to take a break and think about it) I will now make sure my dynamic cobol calls work and then run some 3.2 Test !!!
    YAHOO !

     

Anonymous
Anonymous

Add attachments
Cancel