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:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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 ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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")
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
@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:ChecksforBerkeleyDB...checkingdb.husability...yescheckingdb.hpresence...yescheckingfordb.h...yesconfigure:db.hreportsversion"-Berkeley DB 4.8.30: (April 9, 2010)-"checkingforBerkeleyDBdb.hversion>=4.1...yes(4.8)checkingforBerkeleyDBlibrarywithBDB_LIBS...noconfigure:error:BDBlibraryversion4.8isrequiredfor--with-db,youmayadjustBDB_LIBSjamesw@pop-os:~/gnucobol-3.2$echo$BDB_LIBSjamesw@pop-os:/usr/local/lib$ls-ltotal8196drwxr-xr-x2rootroot4096Aug1509:38gnucobol-rw-r--r--1rootroot864322Aug1509:38libcob.a-rwxr-xr-x1rootroot941Aug1509:38libcob.lalrwxrwxrwx1rootroot15Aug1509:38libcob.so->libcob.so.4.2.0lrwxrwxrwx1rootroot15Aug1509:38libcob.so.4->libcob.so.4.2.0-rwxr-xr-x1rootroot565088Aug1509:38libcob.so.4.2.0-rw-r--r--1jameswjamesw2632454Aug1609:10libdb-4.8.a-rw-rw-r--1jameswjamesw933Aug1609:09libdb-4.8.la-rwxrwxr-x1jameswjamesw1666328Aug1609:09libdb-4.8.solrwxrwxrwx1rootroot12Aug1609:10libdb-4.so->libdb-4.8.so-rw-r--r--1jameswjamesw2632454Aug1609:10libdb.alrwxrwxrwx1rootroot12Aug1609:10libdb.so->libdb-4.8.sodrwxr-xr-x3rootroot4096Jul222022python3.10drwxr-xr-x3rootroot4096Feb192022python3.9drwxr-xr-x3rootroot4096May1315:37Rjamesw@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
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 !
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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:
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
On 29/07/2023 19:05, Mickey White wrote:
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 ?
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...
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:
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.
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
I do have the MVS Hercules on my system. I fail to see the connection.
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 updatein 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.logand upload this along with config.log.Thanks! , Did the json install, now can't seem to find berkely DB? Pretty sure I have BDB installed....
Attached is log.
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")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
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 INDEXEDyou likely want to re-configure after installing the appropriate db-dev package (commonly containing its header and dev docs).@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
I can't seem to connect that last part of the BDB check in the configure
Last edit: Mickey White 2023-08-16
@sf-mensch Never Mind. I make my LD_LIBRARY_PATH = /usr/local/lib and configure worked fine:
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 !