[gnutls-dev] gnutls-1.0.0 build errors
Dimitri Papadopoulos-Orfanos
papadopo at shfj.cea.fr
Fri Dec 5 13:14:26 CET 2003
Hi,
I'm attempting to build gnutls-1.0.0 on Solaris.
I already have libgcrypt-1.1.90 and opencdk-0.5.3:
$ libgcrypt-config --prefix
/usr/local/libgcrypt-1.1.90
$
$ libgcrypt-config --cflags
-I/usr/local/libgcrypt-1.1.90/include \
-I/usr/local/libgpg-error-0.5/include
$ libgcrypt-config --libs
-L/usr/local/libgcrypt-1.1.90/lib -lgcrypt \
-L/usr/local/libgpg-error-0.5/lib -lgpg-error
$
$
$ opencdk-config --prefix
/usr/local/opencdk-0.5.3
$
$ opencdk-config --cflags
-I/usr/local/libgcrypt-1.1.90/include \
-I/usr/local/libgpg-error-0.5/include \
-I/usr/local/opencdk-0.5.3/include
$ opencdk-config --libs
-lz -L/usr/local/opencdk-0.5.3/lib -lopencdk \
-L/usr/local/libgcrypt-1.1.90/lib -lgcrypt \
-L/usr/local/libgpg-error-0.5/lib -lgpg-error
$
First note that -lz should appear last in this library list - for
systems with a linker unable to reorder shared libraries itself, like
old releases of IRIX or HP-UX.
Second it seems that gnutls-1.0.0 needs an external opencdk-0.5.2
library. It won't build with an included opencdk library as it used to.
This doesn't seem to be documented anywhere.
Finally, it seems the configure script doesn't put the compiler flags
needed to include opencdk headers into Makefiles:
$ ./configure --prefix=/usr/local/gnutls-1.0.0
[...]
checking for opencdk-config... /usr/local/bin/opencdk-config
checking for libopencdk - version >= 0.5.2... yes
[...]
$ gmake
[...]
cc -DHAVE_CONFIG_H -I. -I. -I../.. -I../ -I../../includes/ -I../../lib
-I../../lib/minitasn1 -O -I/usr/local/libgcrypt-1.1.90/include
-I/usr/local/libgpg-error-0.5/include -c openpgp.c -KPIC -DPIC -o
.libs/openpgp.o
"openpgp.c", line 33: cannot find include file: <opencdk.h>
"./openpgp.h", line 8: cannot find include file: <opencdk.h>
"./openpgp.h", line 14: syntax error before or at: cdk_kbnode_t
"./openpgp.h", line 14: cannot recover from previous errors
cc: acomp failed for openpgp.c
[...]
$
I had to work around thsi problem by setting CPPFLAGS:
setenv CPPFLAGS -I/usr/local/opencdk/include
Regards,
--
Dimitri
More information about the Gnutls-dev
mailing list