Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 585924 - net-misc/wget-1.18 fails to link on Solaris due to missing libiconv on link line
Summary: net-misc/wget-1.18 fails to link on Solaris due to missing libiconv on link line
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-14 12:49 UTC by Fabian Groffen
Modified: 2022-01-17 03:46 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fabian Groffen gentoo-dev 2016-06-14 12:49:04 UTC
configure seems good:

checking for iconv... (cached) yes
checking for working iconv... (cached) yes
checking how to link with libiconv... /gentoo/prefix64/usr/lib/libiconv.so
checking for iconv declaration... 
         extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, ch
ar * *outbuf, size_t *outbytesleft);

but the final link fails as libiconv.so isn't passed:

x86_64-pc-solaris2.11-gcc  -DHAVE_LIBSSL  -DNDEBUG   -L/gentoo/prefix64/usr/lib 
-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 utils.o exits.o
 build_info.o   version.o ftp-opie.o openssl.o ../lib/libgnu.a /gentoo/prefix64/
usr/lib/libintl.so -lssl -lcrypto -lz -lsocket -lnsl  
ld: url.o: undefined reference to symbol 'libiconv'
/gentoo/prefix64/usr/lib/libiconv.so.2: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status

(the linker correctly suggests what lib we're missing)

This is new in 1.18, 1.17.1 works fine in this regard.

Masking for the time being.
Comment 1 Fabian Groffen gentoo-dev 2016-06-22 18:46:53 UTC
same for darwin, they added some hack where they unset LIBICONV, which causes this behaviour.
Comment 2 Fabian Groffen gentoo-dev 2016-06-22 18:55:23 UTC
comment from configure:

  # For some reason, this seems to be set even when we don't check.
  # Explicitly unset.
  LIBICONV=
Comment 3 Michael Haubenwallner (RETIRED) gentoo-dev 2016-06-23 07:27:26 UTC
FWIW, see also http://lists.gnu.org/archive/html/bug-gnulib/2016-06/msg00025.html
Comment 4 Larry the Git Cow gentoo-dev 2022-01-17 03:46:43 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=43896a7e006ae535646e3590eff83dc01d62613b

commit 43896a7e006ae535646e3590eff83dc01d62613b
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2022-01-17 03:45:38 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2022-01-17 03:45:38 +0000

    net-misc/wget: remove obsolete sed
    
    The regex no longer matches anything in the configure script.
    
    Bug: https://bugs.gentoo.org/585924
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 net-misc/wget/wget-1.21.2.ebuild | 8 --------
 1 file changed, 8 deletions(-)