gnutls-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnutls-dev] gnutls-1.0.0 build errors


From: Dimitri Papadopoulos-Orfanos
Subject: [gnutls-dev] gnutls-1.0.0 build errors
Date: Fri, 05 Dec 2003 13:14:26 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031007

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]