libassuan 0.6.10 build fails on old Linux
Alain Guibert
alguibert+gpd at free.fr
Thu Oct 5 23:39:23 CEST 2006
Hello Werner,
On Thursday, October 5, 2006 at 9:33:37 +0200, Werner Koch wrote:
> On Wed, 20 Sep 2006 17:18, Alain Guibert said:
>> Also tried libassuan 0.9.0, it fails a little earlier:
>>| assuan-pipe-connect.c:380: `AF_LOCAL' undeclared (first use this function)
> This has been fixed in 0.9.2.
Again thank you very much for your support, Werner.
>>| /tmp/libassuan-0.9.0/src/assuan-handler.c:525: undefined reference to `gpg_strerror_r'
> A workaround is to replace it by the weak pragma as done in
> assuan-io.c .
OK: These 2 gpg_strerror_r/gpg_strsource errors are gone with those
lines added after the definitions:
| #pragma weak gpg_strerror_r
| #pragma weak gpg_strsource
>>| /tmp/libassuan-0.9.0/src/assuan-uds.c:69: undefined reference to `CMSG_SPACE'
> We need better detection for this. Need to check whether we have such
> a detection at all.
A recursive grep in all includes finds not a single "CMSG_" here.
>>| /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?
OK: Those undefined FD_ZERO/FD_SET errors are gone.
I tried libassuan 0.9.2, and unfortunately I failed at a new place:
| gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -g -O2 -Wall -Wcast-align -Wshadow -Wstrict-prototypes -c assuan-util.c
| assuan-util.c: In function `putc_unlocked':
| assuan-util.c:31: storage class specified for parameter `alloc_func'
| assuan-util.c:31: parameter `alloc_func' is initialized
| assuan-util.c:32: storage class specified for parameter `realloc_func'
| assuan-util.c:32: parameter `realloc_func' is initialized
| assuan-util.c:33: storage class specified for parameter `free_func'
| assuan-util.c:33: parameter `free_func' is initialized
| assuan-util.c:39: warning: declaration of `assuan_set_malloc_hooks' shadows global declaration
| assuan-util.c:39: parse error before `{'
| assuan-util.c:31: parm types given both in parmlist and separately
| assuan-util.c:40: `alloc_func' undeclared (first use this function)
| assuan-util.c:40: (Each undeclared identifier is reported only once
| assuan-util.c:40: for each function it appears in.)
| assuan-util.c:40: `new_alloc_func' undeclared (first use this function)
| assuan-util.c:41: `realloc_func' undeclared (first use this function)
| assuan-util.c:41: `new_realloc_func' undeclared (first use this function)
| assuan-util.c:42: `free_func' undeclared (first use this function)
| assuan-util.c:42: `new_free_func' undeclared (first use this function)
| assuan-util.c:43: warning: control reaches end of non-void function
| assuan-util.c: In function `_assuan_malloc':
| assuan-util.c:48: `alloc_func' used prior to declaration
| assuan-util.c:48: warning: implicit declaration of function `alloc_func'
| assuan-util.c:48: warning: return makes pointer from integer without a cast
| assuan-util.c: In function `_assuan_realloc':
| assuan-util.c:54: `realloc_func' used prior to declaration
| assuan-util.c:54: warning: implicit declaration of function `realloc_func'
| assuan-util.c:54: warning: return makes pointer from integer without a cast
| assuan-util.c: In function `_assuan_free':
| assuan-util.c:80: `free_func' used prior to declaration
| assuan-util.c:80: warning: implicit declaration of function `free_func'
| make[3]: *** [assuan-util.o] Error 1
| make[3]: Leaving directory `/tmp/libassuan-0.9.2/src'
| make[2]: *** [all] Error 2
| make[2]: Leaving directory `/tmp/libassuan-0.9.2/src'
| make[1]: *** [all-recursive] Error 1
| make[1]: Leaving directory `/tmp/libassuan-0.9.2'
| make: *** [all] Error 2
Alain.
More information about the Gnupg-devel
mailing list