libgcrypt 1.10.2 compile on AIX POWER

Frank Lindner gnupg at shoran-und-alira.de
Mon Oct 16 15:25:22 CEST 2023


It seems I found my mistake.
By accident the compiler was set to xlclang++, which is not the correct one I suppose.
Changing this back to cc/xlC did throw the well know issue of 'keyword inline unknown'.
And for that I think I found a solution for AIX.
Adding the -qlanglvl=extc99 compile option to my environment worked for 1.8.10.

For 1.10.2 I now run into the following:
>---- start ---<
        /opt/freeware/bin/bash ../libtool  --tag=CC    --mode=link cc -I/opt/freeware/include -qmaxmem=16384 -qlanglvl=extc99 -DSYSV -D_AIX -D_AIX32 -D_AIX41 -D_AIX43 -D_AIX51 -D_AIX52 -D_AIX53 -D_AIX61 -D_AIX71 -D_AIX72 -D_ALL_SOURCE -DFUNCPROTO=15 -O2 -I/opt/freeware/include  -no-install -L/opt/freeware/lib64 -L/opt/freeware/lib -Wl,-blibpath:/opt/freeware/lib64:/opt/freeware/lib:/usr/lib:/lib -Wl,-bmaxdata:0x80000000 -o hashtest hashtest.o ../src/libgcrypt.la  ../compat/libcompat.la -L/opt/freeware/lib -lgpg-error -lpthread

libtool: link: cc -I/opt/freeware/include -qmaxmem=16384 -qlanglvl=extc99 -DSYSV -D_AIX -D_AIX32 -D_AIX41 -D_AIX43 -D_AIX51 -D_AIX52 -D_AIX53 -D_AIX61 -D_AIX71 -D_AIX72 -D_ALL_SOURCE -DFUNCPROTO=15 -O2 -I/opt/freeware/include -Wl,-blibpath:/opt/freeware/lib64:/opt/freeware/lib:/usr/lib:/lib -Wl,-bmaxdata:0x80000000 -o hashtest hashtest.o  -L/opt/freeware/lib64 -L/opt/freeware/lib -L../src/.libs -lgcrypt ../compat/.libs/libcompat.a -lgpg-error -lpthread -Wl,-blibpath:/opt/freeware/src/packages/BUILD/libgcrypt-1.10.2/src/.libs:/opt/freeware/lib:/opt/freeware/lib64:/opt/freeware/lib:/usr/lib:/lib

        source='t-kdf.c' object='t_kdf-t-kdf.o' libtool=no  DEPDIR=.deps depmode=xlc /opt/freeware/bin/bash ../build-aux/depcomp  cc -DHAVE_CONFIG_H -I. -I..  -I../src -I../src  -I/opt/freeware/include -D_THREAD_SAFE -qmaxmem=16384 -qlanglvl=extc99 -DSYSV -D_AIX -D_AIX32 -D_AIX41 -D_AIX43 -D_AIX51 -D_AIX52 -D_AIX53 -D_AIX61 -D_AIX71 -D_AIX72 -D_ALL_SOURCE -DFUNCPROTO=15 -O2 -I/opt/freeware/include -c -o t_kdf-t-kdf.o `test -f 't-kdf.c' || echo './'`t-kdf.c

        /opt/freeware/bin/bash ../libtool  --tag=CC    --mode=link cc -I/opt/freeware/include -D_THREAD_SAFE -qmaxmem=16384 -qlanglvl=extc99 -DSYSV -D_AIX -D_AIX32 -D_AIX41 -D_AIX43 -D_AIX51 -D_AIX52 -D_AIX53 -D_AIX61 -D_AIX71 -D_AIX72 -D_ALL_SOURCE -DFUNCPROTO=15 -O2 -I/opt/freeware/include  -no-install -L/opt/freeware/lib64 -L/opt/freeware/lib -Wl,-blibpath:/opt/freeware/lib64:/opt/freeware/lib:/usr/lib:/lib -Wl,-bmaxdata:0x80000000 -o t-kdf t_kdf-t-kdf.o ../src/libgcrypt.la  ../compat/libcompat.la -L/opt/freeware/lib -lgpg-error -lpthread -lpthread

libtool: link: cc -I/opt/freeware/include -D_THREAD_SAFE -qmaxmem=16384 -qlanglvl=extc99 -DSYSV -D_AIX -D_AIX32 -D_AIX41 -D_AIX43 -D_AIX51 -D_AIX52 -D_AIX53 -D_AIX61 -D_AIX71 -D_AIX72 -D_ALL_SOURCE -DFUNCPROTO=15 -O2 -I/opt/freeware/include -Wl,-blibpath:/opt/freeware/lib64:/opt/freeware/lib:/usr/lib:/lib -Wl,-bmaxdata:0x80000000 -o t-kdf t_kdf-t-kdf.o  -L/opt/freeware/lib64 -L/opt/freeware/lib -L../src/.libs -lgcrypt ../compat/.libs/libcompat.a -lgpg-error -lpthread -Wl,-blibpath:/opt/freeware/src/packages/BUILD/libgcrypt-1.10.2/src/.libs:/opt/freeware/lib:/opt/freeware/lib64:/opt/freeware/lib:/usr/lib:/lib

ld: 0711-317 ERROR: Undefined symbol: .gcry_kdf_open
ld: 0711-317 ERROR: Undefined symbol: .gcry_kdf_compute
ld: 0711-317 ERROR: Undefined symbol: .gcry_kdf_final
ld: 0711-317 ERROR: Undefined symbol: .gcry_kdf_close

ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.

make: The error code from the last command is 8.
>---- end ---<

Which looks somehow vaguely familiar.

Any tips?

Kind regards
Frank



More information about the Gnupg-users mailing list