building gnutls 2.3.15 with opencdk installed

Simon Josefsson simon at josefsson.org
Thu Jun 19 11:35:36 CEST 2008


Roman Bogorodskiy <novel at FreeBSD.org> writes:

> Hello,
>
> I have a problem with building gnutls with having opencdk installed on
> my system. I have opencdk 0.6.6 installed and when I try to build gnutls
> I get the following error:
>
> ------------
>  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
> gnutls_openpgp.c: In function `gnutls_openpgp_get_key':
> gnutls_openpgp.c:219: error: syntax error before "st"
> gnutls_openpgp.c:242: error: `st' undeclared (first use in this function)
> gnutls_openpgp.c:242: error: (Each undeclared identifier is reported only once
> gnutls_openpgp.c:242: error: for each function it appears in.)
> gnutls_openpgp.c:242: warning: passing arg 2 of `cdk_keydb_search_start' makes integer from pointer without a cast
> gnutls_openpgp.c:242: error: incompatible type for argument 3 of `cdk_keydb_search_start'
> gnutls_openpgp.c:242: error: too many arguments to function `cdk_keydb_search_start'
> gnutls_openpgp.c:244: warning: passing arg 2 of `cdk_keydb_search' from incompatible pointer type
> gnutls_openpgp.c:244: error: too many arguments to function `cdk_keydb_search'
> gnutls_openpgp.c:246: warning: implicit declaration of function `cdk_keydb_search_release'
> gmake[3]: *** [gnutls_openpgp.lo] Error 1
> gmake[3]: Leaving directory `/usr/home/novel/ports_stuff/gnutls-devel/work/gnutls-2.3.15/lib'
> gmake[2]: *** [all-recursive] Error 1
> gmake[2]: Leaving directory `/usr/home/novel/ports_stuff/gnutls-devel/work/gnutls-2.3.15/lib'
> gmake[1]: *** [all-recursive] Error 1
> gmake[1]: Leaving directory `/usr/home/novel/ports_stuff/gnutls-devel/work/gnutls-2.3.15'
> gmake: *** [all] Error 2
> *** Error code 2
> -----------
>
> It seem to happen because it picks opencdk.h from the installed opencdk version, 
> not from the included one. When I deinstall opencdk from my system,
> gnutls compiles fine.
>
> Is there any way to workaround this?

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.

/Simon





More information about the Gnutls-devel mailing list