[gnutls-help] on finding nettle under /usr/local rather than under /usr (GNU+Linux 64-bit system)

Marco Maggi marco.maggi-ipsu at poste.it
Fri May 31 13:03:23 CEST 2013

Nikos Mavrogiannopoulos wrote:
>  Does the linking fails or compilation? If it is the latter a quick
> hack is to configure using CFLAGS=-I/usr/local/include

It works with neither:

   $ ./configure \
        CPPFLAGS='-I/usr/local/include' \


   $ ./configure \
        CFLAGS='-I/usr/local/include -L/usr/local/lib'

I always get:

   Making all in crywrap
   make[4]: Entering directory `/home/marco/var/build/lib/gnutls-3.2.0/src/crywrap'
     CCLD crywrap
   ../../lib/.libs/libgnutls.so: undefined reference to `nettle_umac96_set_key'
   ../../lib/.libs/libgnutls.so: undefined reference to `nettle_secp_224r1'
   ../../lib/.libs/libgnutls.so: undefined reference to `nettle_ecc_point_get'
   ../../lib/.libs/libgnutls.so: undefined reference to `nettle_ecdsa_generate_keypair'

   collect2: error: ld returned 1 exit status
   make[4]: *** [crywrap] Error 1
   make[4]: Leaving directory `/home/marco/var/build/lib/gnutls-3.2.0/src/crywrap'


   $ ldd lib/.libs/libgnutls.so
   linux-vdso.so.1 (0x00007fff2f7b6000)
   libz.so.1 => /usr/lib64/libz.so.1 (0x00007f4aadb21000)
   libp11-kit.so.0 => /usr/lib64/libp11-kit.so.0 (0x00007f4aad90f000)
   libtasn1.so.6 => /usr/local/lib/libtasn1.so.6 (0x00007f4aad6fc000)
   libnettle.so.4 => /usr/lib64/libnettle.so.4 (0x00007f4aad4d7000)
   libhogweed.so.2 => /usr/lib64/libhogweed.so.2 (0x00007f4aad2c4000)
   libgmp.so.10 => /usr/lib64/libgmp.so.10 (0x00007f4aad058000)
   libc.so.6 => /lib64/libc.so.6 (0x00007f4aacc6a000)
   libdl.so.2 => /lib64/libdl.so.2 (0x00007f4aaca65000)
   libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f4aac849000)
   /lib64/ld-linux-x86-64.so.2 (0x00007f4aae044000)

Marco Maggi

More information about the Gnutls-help mailing list