Trying to install GnuCobol 3.2 on a linux Mint (latest version) server, i ran into the following problem during the make phase:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/13/../../../../lib/libncurses.a(lib_addch.o): relocation R_X86_64_PC32 against symbol `TABSIZE' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:570 : libcob.la] Erreur 1
make[2] : on quitte le répertoire « /home/serge/Téléchargements/gnucobol-3.2/libcob »
make[1]: *** [Makefile:657 : all-recursive] Erreur 1
make[1] : on quitte le répertoire « /home/serge/Téléchargements/gnucobol-3.2 »
make: *** [Makefile:565 : all] Erreur 2
Hi,
Trying to install GnuCobol 3.2 on a linux Mint (latest version) server, i ran into the following problem during the make phase:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/13/../../../../lib/libncurses.a(lib_addch.o): relocation R_X86_64_PC32 against symbol `TABSIZE' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:570 : libcob.la] Erreur 1
make[2] : on quitte le répertoire « /home/serge/Téléchargements/gnucobol-3.2/libcob »
make[1]: *** [Makefile:657 : all-recursive] Erreur 1
make[1] : on quitte le répertoire « /home/serge/Téléchargements/gnucobol-3.2 »
make: *** [Makefile:565 : all] Erreur 2
I've included the configure and make output text.
Any clues?
Thanks.
Hi Serge,
probably you need the dev-package of libncurses:
You could try this:
sudo apt install libncurses-dev
make distclean
./configure
make -j$(nproc)
Best regards,
Michael
Last edit: Michael Del Solio 2025-09-21
Right on!
Thanks a lot.