[gnutls-help] libgnutls undefined reference

Anton anton.vojlenko at gmail.com
Sat Feb 27 12:58:50 CET 2016

Hello All,

When I'm trying to build the latest GnuTLS package for CentOS 6.7 64bit 
I have next error:

make[4]: Entering directory `/home/tokezo/gnutls-3.4.9/src'
   CCLD     psktool
../lib/.libs/libgnutls.so: undefined reference to `nettle_secp_192r1'
../lib/.libs/libgnutls.so: undefined reference to `nettle_secp_224r1'
collect2: ld returned 1 exit status
make[4]: *** [psktool] Error 1

$ ldd ./lib/.libs/libgnutls.so
     linux-vdso.so.1 =>  (0x00007ffc66bb7000)
     libz.so.1 => /lib64/libz.so.1 (0x00007fa7f7516000)
     libp11-kit.so.0 => /usr/lib64/libp11-kit.so.0 (0x00007fa7f72b2000)
     librt.so.1 => /lib64/librt.so.1 (0x00007fa7f70a9000)
     libtasn1.so.6 => /usr/lib64/libtasn1.so.6 (0x00007fa7f6e97000)
     libnettle.so.6 => /usr/lib64/libnettle.so.6 (0x00007fa7f6c60000)
     libhogweed.so.4 => /usr/lib64/libhogweed.so.4 (0x00007fa7f6a34000)
     libgmp.so.3 => /usr/lib64/libgmp.so.3 (0x00007fa7f67d9000)
     libc.so.6 => /lib64/libc.so.6 (0x00007fa7f6445000)
     libffi.so.5 => /usr/lib64/libffi.so.5 (0x00007fa7f633d000)
     libdl.so.2 => /lib64/libdl.so.2 (0x00007fa7f6139000)
     libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fa7f5f1c000)
     /lib64/ld-linux-x86-64.so.2 (0x0000003c78400000)

$ objdump -T ./lib/.libs/libgnutls.so | grep 
0000000000000000      D  *UND*    0000000000000000 nettle_secp_192r1
0000000000000000      D  *UND*    0000000000000000 nettle_secp_224r1

# rpm -qa | grep nettle

# rpm -qa | grep p11-kit

Any idea why it happens and how to solve it?

Best regards,
Anton Voylenko

-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/attachments/20160227/3c0f52b2/attachment-0001.html>

More information about the Gnutls-help mailing list