[gnutls-help] Cannot build gnutls from source: picks the wrong libnettle

Sebastien Decugis sdecugis at freediameter.net
Tue Jun 18 13:21:08 CEST 2013


Hello,

I am trying to build latest gnutls from source, and I encounter an issue. My system is Ubuntu Precise.

I have installed all dependencies as described in README-alpha.
In addition, I have built from source and installed under my home folder the latest automake and nettle.

[Side comment, when I ran "make bootstrap" I encountered an issue already reported here about missing src/libopts/Makefile.in, and I had to run "autoreconf -fvi" to fix it. Is it normal? It could be worth writing this in the README-alpha file...]


I am now encountering an error when I try to make GNUTLS:
make[4]: Entering directory `/home/thedoc/sources/gnutls-latest/src/crywrap'
  CC       crywrap.o
crywrap.c: In function '_crywrap_do_one':
crywrap.c:867:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
crywrap.c:868:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
crywrap.c: In function '_crywrap_setup_pidfile':
crywrap.c:819:10: warning: ignoring return value of 'fchown', declared with attribute warn_unused_result [-Wunused-result]
crywrap.c:823:9: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
  CCLD     crywrap
../../lib/.libs/libgnutls.so: undefined reference to `nettle_rsa_pkcs1_sign_tr'
../../lib/.libs/libgnutls.so: undefined reference to `nettle_umac96_set_key'
../../lib/.libs/libgnutls.so: undefined reference to `nettle_sha512_digest'
../../lib/.libs/libgnutls.so: undefined reference to `nettle_sha384_init'
../../lib/.libs/libgnutls.so: undefined reference to `nettle_md5_digest'
../../lib/.libs/libgnutls.so: undefined reference to `nettle_gcm_encr

It seems that the ./configure script is correctly following my NETTLE_LIBS=-L/home/user/bin/nettle/lib/ instruction (when I don't add it, I cannot configure successfully), but somehow the value is not propagated to the crywrap Makefile. I also tried to add LDFLAGS= and LD_LIBRARY_PATH= but got the same issue. The complete configure line I am using is:

LD_LIBRARY_PATH=/home/user/bin/nettle/lib/ LDFLAGS=-L/home/user/bin/nettle/lib/ NETTLE_LIBS=-L/home/user/bin/nettle/lib/ HOGWEED_LIBS=-L/home/user/bin/nettle/lib/ NETTLE_CFLAGS=-I/home/user/bin/nettle/include HOGWEED_CFLAGS=-I/home/user/bin/nettle/include ./configure

Has someone encountered the same situation? Do I have to actually replace the nettle lib from my system ?

Best regards,
Sébastien.








More information about the Gnutls-help mailing list