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.
same for darwin, they added some hack where they unset LIBICONV, which causes this behaviour.
comment from configure: # For some reason, this seems to be set even when we don't check. # Explicitly unset. LIBICONV=
FWIW, see also http://lists.gnu.org/archive/html/bug-gnulib/2016-06/msg00025.html
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(-)