building gnutls 2.3.15 with opencdk installed

Roman Bogorodskiy novel at FreeBSD.org
Thu Jun 19 13:38:46 CEST 2008


  Simon Josefsson wrote:

> 
> > ------------
> >  cc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/local/share/locale\" -I../lgl -I../lgl -I../includes -I../includes -I./x509 -I../libextra -I../lib/openpgp/ -I/usr/local/include -I./opencdk -I../lib/opencdk -I./minitasn1 -I/usr/local/include -pipe -I/usr/local/include -O2 -fno-strict-aliasing -pipe -MT gnutls_openpgp.lo -MD -MP -MF .deps/gnutls_openpgp.Tpo -c gnutls_openpgp.c  -fPIC -DPIC -o .libs/gnutls_openpgp.o

<--->
> 
> Hi!  Strange, I don't get this and I also have opencdk 0.6.6 installed.
> Is there anything uncommon in how you build this?  Why doesn't it prefer
> the opencdk.h from the -I's listed on your command line?  The opencdk.h
> file in gnutls should be in one of those directories, and the -I's
> appear to be earlier than any system -I's.

Well, '-I/usr/local/include' appears before ' -I./opencdk
-I../lib/opencdk', that's why it picks wrong opencdk.h I think.

lib/Makefile.am has the following code:

-----------------
AM_CPPFLAGS = -DLOCALEDIR=\"$(localedir)\"                              \
        -I$(top_srcdir)/lgl -I$(top_builddir)/lgl                       \
        -I$(top_srcdir)/includes -I../includes                          \
        -I$(srcdir)/x509                                                \
        -I$(top_srcdir)/libextra -I$(top_srcdir)/lib/openpgp/   \
        $(LIBGCRYPT_CFLAGS)

if ENABLE_OPENPGP
SUBDIRS += opencdk
SUBDIRS += openpgp
AM_CPPFLAGS += -I$(srcdir)/opencdk -I$(top_srcdir)/lib/opencdk
endif
-----------------

I guess "-I/usr/local/include" appears here in place of $(LIBGCRYPT_CFLAGS). So the 
problem probably could be fixed by changing -I flags order in
AM_CPPFLAGS, i.e. placing opencdk stuff before $(LIBGCRYPT_CFLAGS). But
I'm not sure, I cannot test it at this moment, will be able to check a
bit later. 

> /Simon
> 
> 
> _______________________________________________
> Gnutls-devel mailing list
> Gnutls-devel at gnu.org
> http://lists.gnu.org/mailman/listinfo/gnutls-devel

Roman Bogorodskiy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 313 bytes
Desc: not available
URL: </pipermail/attachments/20080619/83e76852/attachment.pgp>


More information about the Gnutls-devel mailing list