Discussion:
[Bug-wget] [bug #54839] Building takes gnutls include from /usr/local/include, but libgnutls.so from system dir
Tim Ruehsen
2018-10-15 11:16:53 UTC
Permalink
URL:
<https://savannah.gnu.org/bugs/?54839>

Summary: Building takes gnutls include from
/usr/local/include, but libgnutls.so from system dir
Project: GNU Wget
Submitted by: rockdaboot
Submitted on: Mon 15 Oct 2018 01:16:50 PM CEST
Category: Build/Install
Severity: 3 - Normal
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: trunk
Operating System: GNU/Linux
Reproducibility: Every Time
Fixed Release: None
Planned Release: None
Regression: None
Work Required: None
Patch Included: None

_______________________________________________________

Details:

Having gnutls 3.5.19 installed as system library and gnutls 3.6.4 installed
locally (/usr/local) failes to build.

The header is included from /usr/local/include but the library is taken from
/usr/lib/x86_64-linux-gnu.

The link step + output is
gcc -I/usr/local/include -I/usr/local/include -I/usr/include/p11-kit-1
-DHAVE_LIBGNUTLS -DNDEBUG -g -o wget connect.o convert.o cookies.o ftp.o
css_.o css-url.o ftp-basic.o ftp-ls.o hash.o host.o hsts.o html-parse.o
html-url.o http.o init.o log.o main.o netrc.o progress.o ptimer.o recur.o
res.o retr.o spider.o url.o warc.o xattr.o utils.o exits.o build_info.o iri.o
metalink.o version.o ftp-opie.o gnutls.o http-ntlm.o ../lib/libgnu.a
-lunistring -lpcre2-8 -luuid -lidn2 -L/usr/lib/x86_64-linux-gnu -lgpgme
-lassuan -lgpg-error -L/usr/local/lib -lmetalink -lnettle -L/usr/local/lib
-lgnutls -lz -lpsl/usr/bin/ld: gnutls.o: in function `_do_reauth':
/home/oms/src/wget1.x/src/gnutls.c:563: undefined reference to
`gnutls_reauth'
collect2: error: ld returned 1 exit status

Moving the -L/usr/local/bin before -L/usr/lib/x86_64-linux-gnu succeeds:
gcc -I/usr/local/include -I/usr/local/include -I/usr/include/p11-kit-1
-DHAVE_LIBGNUTLS -DNDEBUG -g -o wget connect.o convert.o cookies.o ftp.o
css_.o css-url.o ftp-basic.o ftp-ls.o hash.o host.o hsts.o html-parse.o
html-url.o http.o init.o log.o main.o netrc.o progress.o ptimer.o recur.o
res.o retr.o spider.o url.o warc.o xattr.o utils.o exits.o build_info.o iri.o
metalink.o version.o ftp-opie.o gnutls.o http-ntlm.o ../lib/libgnu.a
-L/usr/local/lib -lunistring -lpcre2-8 -luuid -lidn2
-L/usr/lib/x86_64-linux-gnu -lgpgme -lassuan -lgpg-error -L/usr/local/lib
-lmetalink -lnettle -lgnutls -lz -lpsl






_______________________________________________________

Reply to this item at:

<https://savannah.gnu.org/bugs/?54839>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
Tim Ruehsen
2018-10-17 07:33:12 UTC
Permalink
Update of bug #54839 (project wget):

Status: None => Fixed
Open/Closed: Open => Closed

_______________________________________________________

Follow-up Comment #1:

Has been fixed in b29854528ab134dcad1fd1724d1a85b7a66b5689

_______________________________________________________

Reply to this item at:

<https://savannah.gnu.org/bugs/?54839>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Loading...