Mailing List Archive

libgcrypt 1.10.2 compile on AIX POWER
Hello,

it's been a while and I just tried to compile a new version of GnuPG and needed libraries.
I am having troubles with libgcrypt 1.10.2.

/opt/freeware/bin/bash ../libtool --tag=CC --mode=compile xlclang++ -DHAVE_CONFIG_H -I. -I.. -I../src -I../src -I/opt/freeware/include -qmaxmem=16384 -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 -fno-delete-null-pointer-checks -Wall -MT mpi-bit.lo -MD -MP -MF .deps/mpi-bit.Tpo -c -o mpi-bit.lo mpi-bit.c

libtool: compile: xlclang++ -DHAVE_CONFIG_H -I. -I.. -I../src -I../src -I/opt/freeware/include -qmaxmem=16384 -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 -fno-delete-null-pointer-checks -Wall -MT mpi-bit.lo -MD -MP -MF .deps/mpi-bit.Tpo -c mpi-bit.c -DPIC -o .libs/mpi-bit.o

warning: 1540-5200 The option "-fno-delete-null-pointer-checks" is not supported.

1 warning generated.

Assembler:

.libs/mpi-bit$1.s: line 48: Error In Syntax

1500-067: (S) asm statement generates errors in assembler output.

make: The error code from the last command is 1.

Stop.
make: The error code from the last command is 1.

Stop.
make: The error code from the last command is 2.

Stop.
error: Bad exit status from /var/tmp/rpm-tmp.XU_aeb (%build)

Currently I have no ideas how to track down this problem any further.
My latest successful build was 1.9.4.

Any ideas?
Is sticking with LTS version (1.8.x) a viable solution?

Kind regards
Frank

_______________________________________________
Gnupg-users mailing list
Gnupg-users@gnupg.org
https://lists.gnupg.org/mailman/listinfo/gnupg-users
Re: libgcrypt 1.10.2 compile on AIX POWER [ In reply to ]
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

_______________________________________________
Gnupg-users mailing list
Gnupg-users@gnupg.org
https://lists.gnupg.org/mailman/listinfo/gnupg-users
Re: libgcrypt 1.10.2 compile on AIX POWER [ In reply to ]
On Mon, 16 Oct 2023 15:25, Frank Lindner said:

> Changing this back to cc/xlC did throw the well know issue of 'keyword
> inline unknown'.

I am not aware of that problem. We are Libgcrypt and the entire GnuPG
suite on AIX for decades. The configure script should detect whether
inline is supported by the compiler.

I also wonder why and from where did you tool all the compiler options.
How did you invoked configure and make?


Shalom-Salam,

Werner

--
The pioneers of a warless world are the youth that
refuse military service. - A. Einstein
Re: libgcrypt 1.10.2 compile on AIX POWER [ In reply to ]
Hello,

Frank Lindner <gnupg@shoran-und-alira.de> wrote:
> 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

(line is wrapped by me)

IIUC, you manually supplied LDFLAGS (at configure or make), which
doesn't work well in this particular case (since LDFLAGS has a
precedence over locally specified ../src, compiler finds **installed**
version of libgcrypt, instead of currently building one).

Please check gpgrt-config from libgpg-error is installed correctly.
Possibly, in your case, it might be /opt/freeware/bin. Then, make sure
/opt/freeware/bin in PATH, and run configure.

This way, configure script should find correct value for -L, by
gpgrt-config (no need to manually supply LDFLAGS).
--

_______________________________________________
Gnupg-users mailing list
Gnupg-users@gnupg.org
https://lists.gnupg.org/mailman/listinfo/gnupg-users