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

David Shaw dshaw at jabberwocky.com
Tue Dec 18 00:02:15 CET 2007


On Tue, Dec 04, 2007 at 12:28:44AM +0800, It's me FKtPp ;) wrote:
> 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

Can you try this patch?  You will need to regenerate the Makefile
after you apply the patch (automake).

Index: Makefile.am
===================================================================
--- Makefile.am	(revision 4665)
+++ Makefile.am	(working copy)
@@ -49,4 +49,5 @@
 gpgkeys_hkp_CPPFLAGS = @LIBCURL_CPPFLAGS@
 gpgkeys_hkp_LDADD = ../util/libcompat.a @LIBCURL@ @GETOPT@
 gpgkeys_finger_CPPFLAGS = @LIBCURL_CPPFLAGS@
+gpgkeys_ldap_CPPFLAGS += @LIBCURL_CPPFLAGS@
 endif

Thanks!

David



More information about the Gnupg-devel mailing list