[gnutls-help] Cannot build gnutls from source: picks the wrong libnettle
Sebastien Decugis
sdecugis at freediameter.net
Wed Jun 19 06:14:33 CEST 2013
Hello again,
For what it's worth, I could finally complete the build after making the following change:
index 790cdb1..c1b9867 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -141,6 +141,7 @@ endif
if ENABLE_NETTLE
libgnutls_la_LIBADD += nettle/libcrypto.la
+thirdparty_libadd += $(NETTLE_LIBS) $(HOGWEED_LIBS) $(GMP_LIBS)
endif
if HAVE_LD_OUTPUT_DEF
Best regards,
Sébastien.
> -----Original Message-----
> From: Gnutls-help [mailto:gnutls-help-bounces at lists.gnutls.org] On
> Behalf Of Sebastien Decugis
> Sent: mardi 18 juin 2013 19:21
> To: gnutls-help at lists.gnutls.org
> Subject: [gnutls-help] Cannot build gnutls from source: picks the wrong
> libnettle
>
> 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.
>
>
>
>
>
>
> _______________________________________________
> Gnutls-help mailing list
> Gnutls-help at lists.gnutls.org
> http://lists.gnupg.org/mailman/listinfo/gnutls-help
More information about the Gnutls-help
mailing list