19 Jun 13:38
Re: building gnutls 2.3.15 with opencdk installed
From: Roman Bogorodskiy <novel <at> FreeBSD.org>
Subject: Re: building gnutls 2.3.15 with opencdk installed
Newsgroups: gmane.comp.encryption.gpg.gnutls.devel
Date: 2008-06-19 11:38:46 GMT
Subject: Re: building gnutls 2.3.15 with opencdk installed
Newsgroups: gmane.comp.encryption.gpg.gnutls.devel
Date: 2008-06-19 11:38:46 GMT
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
_______________________________________________ Gnutls-devel mailing list Gnutls-devel <at> gnu.org http://lists.gnu.org/mailman/listinfo/gnutls-devel
RSS Feed