libassuan 0.6.10 build fails on old Linux
Werner Koch
wk at gnupg.org
Thu Oct 5 09:33:37 CEST 2006
On Wed, 20 Sep 2006 17:18, Alain Guibert said:
> Also tried libassuan 0.9.0, it fails a little earlier:
>
> | gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -g -O2 -Wall -Wcast-align -Wshadow -Wstrict-prototypes -c assuan-pipe-connect.c
> | assuan-pipe-connect.c: In function `socketpair_connect':
> | assuan-pipe-connect.c:380: `AF_LOCAL' undeclared (first use this function)
> | assuan-pipe-connect.c:380: (Each undeclared identifier is reported only once
This has been fixed in 0.9.2.
> | /tmp/libassuan-0.9.0/src/assuan-handler.c:525: undefined reference to `gpg_strerror_r'
int gpg_strerror_r (unsigned int err, char *buf, size_t buflen)
__attribute__ ((weak));
Does anyone know which version of gcc introduced the weak attribute?
A workaround is to replace it by the weak pragma as done in
assuan-io.c .
> | ../src/libassuan.a(assuan-uds.o): In function `uds_reader':
> | /tmp/libassuan-0.9.0/src/assuan-uds.c:69: undefined reference to `CMSG_SPACE'
> | /tmp/libassuan-0.9.0/src/assuan-uds.c:95: undefined reference to `CMSG_FIRSTHDR'
We need better detection for this. Need to check whether we have such
a detection at all.
> | /tmp/libassuan-0.9.0/src/assuan-io.c:162: undefined reference to `FD_ZERO'
Can you please add
#include <sys/time.h>
above the sys/types.h? All other incldue files for select are included
although I wonder why FD_foo might be defined in that include file.
Shalom-Salam,
Werner
More information about the Gnupg-devel
mailing list