As the maintenance for my current Fedora 40 will end soon, I have to switch to the latest release, which is Fedora 42.
So I upgraded my sandbox system and installed all needed software.
Unfortunately I got stuck on the GnuCOBOL make.
Here's the output:
make all-recursive
make[1]: Entering directory '/home/haegar/addons/gnucobol-3.2'
Making all in .
make[2]: Entering directory '/home/haegar/addons/gnucobol-3.2'
make[2]: Leaving directory '/home/haegar/addons/gnucobol-3.2'
Making all in lib
make[2]: Entering directory '/home/haegar/addons/gnucobol-3.2/lib'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/haegar/addons/gnucobol-3.2/lib'
Making all in libcob
make[2]: Entering directory '/home/haegar/addons/gnucobol-3.2/libcob'
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../lib -I/usr/include/libxml2 -DWITH_GZFILEOP -I/usr/include/cjson -DLOCALEDIR=\"/usr/local/share/locale\" -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT common.lo -MD -MP -MF .deps/common.Tpo -c -o common.lo common.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../lib -I/usr/include/libxml2 -DWITH_GZFILEOP -I/usr/include/cjson -DLOCALEDIR=\"/usr/local/share/locale\" -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT common.lo -MD -MP -MF .deps/common.Tpo -c common.c -fPIC -DPIC -o .libs/common.o
common.c: In function 'cob_exit_common_modules':
common.c:767:37: error: assignment to 'int (*)(const int)' from incompatible pointer type 'int (*)(void)' [-Wincompatible-pointer-types]
767 | cancel_func = mod->module_cancel.funcint;
| ^
common.c: In function 'cob_dump_module':
common.c:10761:45: error: assignment to 'int (*)(const int)' from incompatible pointer type 'int (*)(void)' [-Wincompatible-pointer-types]
10761 | cancel_func = mod->module_cancel.funcint;
| ^
make[2]: *** [Makefile:614: common.lo] Error 1
make[2]: Leaving directory '/home/haegar/addons/gnucobol-3.2/libcob'
make[1]: *** [Makefile:657: all-recursive] Error 1
make[1]: Leaving directory '/home/haegar/addons/gnucobol-3.2'
make: *** [Makefile:565: all] Error 2
I tried the official GnuCOBOL release and the latest 3.3 nightly.
Both are causing the same error.
try to add CFLAGS="-Wno-incompatible-pointer-types" to your GnuCOBOL configure line.
... or just install GnuCOBOL feom EPEL :-)
Thank you for the hint, Simon!
I was able to make the original 3.2 version with this configure command:
Happy Easter from Bremen to Dresden :-)