problem building libassuan + pth

Stoyan Angelov s_angelov at filibeto.org
Tue Nov 21 16:46:12 CET 2006


Werner Koch wrote:
> Hi,
> 
> sorry, my fault.  We are using a libgnu.a and not individual libobjs.
> However the order of the libs is wrong.  Here is the fix
> 
> --- g10/Makefile.am     (revision 4341)
> +++ g10/Makefile.am     (working copy)
> @@ -29,7 +29,7 @@
>  
>  AM_CFLAGS = $(LIBGCRYPT_CFLAGS) $(LIBASSUAN_CFLAGS) $(GPG_ERROR_CFLAGS)
>  
> -needed_libs = ../gl/libgnu.a ../common/libcommon.a ../jnlib/libjnlib.a
> +needed_libs = ../common/libcommon.a ../jnlib/libjnlib.a ../gl/libgnu.a 
>  
>  bin_PROGRAMS = gpg2 gpgv2
>  
> 
> 
> Shalom-Salam,
> 
>    Werner
> 
> 
> 


hello Werner,

sorry to bother you again - i have applied the patch you sent me. i have 
also modified the g10/Makefile.in otherwise the g10/Makefile was not 
changed. i run in another problem:

gcc -I/usr/local/include  -I/usr/local/include -I/usr/local/include -g 
-O2 -Wall -Wno-pointer-sign   -o gpg2keys_ldap 
gpg2keys_ldap-gpgkeys_ldap.o gpg2keys_ldap-ksutil.o 
gpg2keys_ldap-no-libgcrypt.o -L/usr/local/lib -lldap -lsocket -lnsl 
-liconv ../intl/libintl.a -liconv
gpg2keys_ldap-gpgkeys_ldap.o: In function `ldap2epochtime':
/root/gnupg-2.0.0/keyserver/gpgkeys_ldap.c:199: undefined reference to 
`timegm'
gpg2keys_ldap-gpgkeys_ldap.o: In function `build_attrs':
/root/gnupg-2.0.0/keyserver/gpgkeys_ldap.c:367: undefined reference to 
`strsep'
/root/gnupg-2.0.0/keyserver/gpgkeys_ldap.c:376: undefined reference to 
`strsep'
/root/gnupg-2.0.0/keyserver/gpgkeys_ldap.c:388: undefined reference to 
`strsep'
/root/gnupg-2.0.0/keyserver/gpgkeys_ldap.c:403: undefined reference to 
`strsep'
/root/gnupg-2.0.0/keyserver/gpgkeys_ldap.c:421: undefined reference to 
`strsep'
gpg2keys_ldap-gpgkeys_ldap.o:/root/gnupg-2.0.0/keyserver/gpgkeys_ldap.c:435: 
more undefined references to `strsep' follow
collect2: ld returned 1 exit status
make[2]: *** [gpg2keys_ldap] Error 1
make[2]: Leaving directory `/root/gnupg-2.0.0/keyserver'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/gnupg-2.0.0'
make: *** [all] Error 2



More information about the Gnupg-users mailing list