building gnutls 2.3.15 with opencdk installed

Roman Bogorodskiy novel at FreeBSD.org
Thu Jun 19 07:03:10 CEST 2008


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?

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/f9581316/attachment.pgp>


More information about the Gnutls-devel mailing list