gnupg 1.4.7 build system bug: gpgkeys_ldap compile error while libcurl in non-standard path

It's me FKtPp ;) m_pupil at yahoo.com.cn
Mon Dec 3 17:28:44 CET 2007


David Shaw дµÀ:
> On Tue, Nov 27, 2007 at 11:17:46PM +0800, FKtPp wrote:
>> Dear developers,
>>
>> I find this bug while compiling gnupg 1.4.7 on solaris 10/8 x86 edition on my machine.
>>
>> PRE-REQUIREMENTS:
>>
>> 1) if you have curl/libcurl installed in non-standard place(which was true for solaris in /opt/sfw subdirectory)
>>
>> 2) you chose to compile in curl support.
>>
>> 3) your configure decide to compile in ldap support.
>>
>> RESULT: 
>>
>> Compile error while compile gpgkeys_ldap things. gpgkeys_ldap_* need libcurl header/libs path to be correct compiled/linked.
> 
> Can you show me the error you get?  It would be helpful.

Sorry, for the late reply. I was previously not on list...

1) my configuration commandline is:

 ./configure --prefix=/opt/sfw --with-libcurl=/opt/sfw

2) error output is:

gcc  -g -O2 -Wall   -o gpgv  gpgv.o build-packet.o compress.o
compress-bz2.o free-packet.o getkey.o keydb.o keyring.o seskey.o
kbnode.o mainproc.o armor.o mdfilter.o textfilter.o progress.o misc.o
openfile.o keyid.o parse-packet.o status.o plaintext.o sig-check.o
keylist.o signal.o verify.o ../cipher/libcipher.a ../mpi/libmpi.a
../util/libutil.a  -lresolv  ../intl/libintl.a   -lz -lbz2
gmake[2]: Leaving directory `/home/fktpp/downloads/gnupg-1.4.7/g10'
Making all in keyserver
gmake[2]: Entering directory `/home/fktpp/downloads/gnupg-1.4.7/keyserver'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../intl    -g -O2
-Wall -MT gpgkeys_ldap-gpgkeys_ldap.o -MD -MP -MF
".deps/gpgkeys_ldap-gpgkeys_ldap.Tpo" -c -o gpgkeys_ldap-gpgkeys_ldap.o
`test -f 'gpgkeys_ldap.c' || echo './'`gpgkeys_ldap.c; \
then mv -f ".deps/gpgkeys_ldap-gpgkeys_ldap.Tpo"
".deps/gpgkeys_ldap-gpgkeys_ldap.Po"; else rm -f
".deps/gpgkeys_ldap-gpgkeys_ldap.Tpo"; exit 1; fi
In file included from gpgkeys_ldap.c:59:
ksutil.h:37:23: curl/curl.h: ÎÞ´ËÎļþ»òĿ¼
In file included from gpgkeys_ldap.c:59:
ksutil.h:119: error: syntax error before "error"
gmake[2]: *** [gpgkeys_ldap-gpgkeys_ldap.o] Error 1
gmake[2]: Leaving directory `/home/fktpp/downloads/gnupg-1.4.7/keyserver'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/home/fktpp/downloads/gnupg-1.4.7'
gmake: *** [all] Error 2




More information about the Gnupg-devel mailing list