[blfs-support] curl-7.24.0, gnutls and nettle problem

Fernando de Oliveira famobr at yahoo.com.br
Thu Feb 2 20:15:38 PST 2012


--- Em qui, 2/2/12, Andrew Benton escreveu:

> De: Andrew Benton
> Assunto: Re: [blfs-support] curl-7.24.0, gnutls and nettle problem
> Para: blfs-support at linuxfromscratch.org
> Data: Quinta-feira, 2 de Fevereiro de 2012, 22:19
> On Thu, 2 Feb 2012 14:55:28 -0800
> (PST)
> Fernando de Oliveira
> wrote:
> 
> > "libtool: link: gcc -g0 -O2 -Wno-system-headers -o
> .libs/curl hugehelp.o tool_binmode.o tool_bname.o
> tool_cb_dbg.o tool_cb_hdr.o tool_cb_prg.o tool_cb_rea.o
> tool_cb_see.o tool_cb_skt.o tool_cb_wrt.o tool_cfgable.o
> tool_convert.o tool_dirhie.o tool_doswin.o tool_easysrc.o
> tool_formparse.o tool_getparam.o tool_getpass.o tool_help.o
> tool_helpers.o tool_homedir.o tool_libinfo.o tool_main.o
> tool_mfiles.o tool_msgs.o tool_operate.o tool_operhlp.o
> tool_panykey.o tool_paramhlp.o tool_parsecfg.o tool_setopt.o
> tool_sleep.o tool_urlglob.o tool_util.o tool_vms.o
> tool_writeenv.o tool_writeout.o tool_xattr.o strtoofft.o
> strdup.o rawstr.o nonblock.o  ../lib/.libs/libcurl.so
> -lrt -lz
> > ../lib/.libs/libcurl.so: undefined reference to
> `nettle_md5_digest'
> > ../lib/.libs/libcurl.so: undefined reference to
> `nettle_des_encrypt'
> > ../lib/.libs/libcurl.so: undefined reference to
> `nettle_des_set_key'
> > ../lib/.libs/libcurl.so: undefined reference to
> `nettle_md5_init'
> > ../lib/.libs/libcurl.so: undefined reference to
> `nettle_md5_update'
> > ../lib/.libs/libcurl.so: undefined reference to
> `nettle_md4_digest'
> > ../lib/.libs/libcurl.so: undefined reference to
> `nettle_md4_update'
> > ../lib/.libs/libcurl.so: undefined reference to
> `nettle_md4_init'
> > collect2: ld returned 1 exit status
> > make[2]: ** [curl] Erro 1
> > make[2]: Saindo do diretório
> `/media/dados/home/fernando/tmp/paco-build-2012.02.01/curl-7.24.0/src'
> > make[1]: ** [all] Erro 2
> > make[1]: Saindo do diretório
> `/media/dados/home/fernando/tmp/paco-build-2012.02.01/curl-7.24.0/src'
> > make: ** [all-recursive] Erro 1"
> > 
> > It builds correctly with ssl (i.e., omiting the
> switches referred above).
> 
> I can't reproduce this, the build succeeds for me, and ldd
> shows that
> libcurl is indeed linked to libgnutls and not libssl.
> What does configure say about libnettle? For me it says:
> 
> checking for pkg-config... /bin/pkg-config
> checking for gnutls options with pkg-config... found
> checking for gnutls_check_version in -lgnutls... yes
> configure: detected GnuTLS version 3.0.4
> checking for nettle_MD5Init in -lgnutls... no
> checking for gcry_control in -lgnutls... no
> checking for nettle_MD5Init in -lnettle... yes
> checking for gnutls_srp_verifier in -lgnutls... yes
> 
> Also, have a look at config.log to see what happened.
> It looks to me as though it's not linking to libnettle. Try
> configuring
> it with:
> 
> LIBS="-lnettle" ./configure --prefix=/usr --without-ssl
> --with-gnutls
> 
> Andy

Thank you very much for thus reply!! You are right.

[I am building FF, so the reply will be for LFS 6.8 and 7.0 (SVN-20111210)]

In the failed build log, I have

$ grep -i checking Downloads/blfs/curl-7.24.0-2012.02.01.log | grep -i nettle
checking for nettle_MD5Init in -lgnutls... no
checking for nettle_MD5Init in -lnettle... yes

$ grep -i configure Downloads/blfs/curl-7.24.0-2012.02.01.log | grep -i GnuTLS
configure: detected GnuTLS version 3.0.12

However, build (and of course make) completed successfully after your suggestion was used (LIBS="-lnettle" ...):

$ grep -i checking Downloads/blfs/curl-7.24.0-2012.02.03.log | grep -i nettle
checking for nettle_MD5Init in -lgnutls... yes

$ ldd /usr/bin/curl (just SVN-20111210 it is similar in LFS 6.8)
	linux-gate.so.1 =>  (0xffffe000)
	libcurl.so.4 => /usr/lib/libcurl.so.4 (0xb76f4000)
	librt.so.1 => /lib/librt.so.1 (0xb76ea000)
	libz.so.1 => /lib/libz.so.1 (0xb76d3000)
	libc.so.6 => /lib/libc.so.6 (0xb753c000)
	libidn.so.11 => /usr/lib/libidn.so.11 (0xb7509000)
	libgnutls.so.28 => /usr/lib/libgnutls.so.28 (0xb73f6000)
	libpthread.so.0 => /lib/libpthread.so.0 (0xb73db000)
	/lib/ld-linux.so.2 (0xb7752000)
	libgmp.so.10 => /usr/lib/libgmp.so.10 (0xb7372000)

Thank you very much again!!

[]s,
Fernando



More information about the blfs-support mailing list