POSIX iconv auto-detection... () compiling iconv.cpp linking iconv iconv.o: In function `main': iconv.cpp:(.text+0x1a): undefined reference to `libiconv_open' iconv.cpp:(.text+0x3a): undefined reference to `libiconv' iconv.cpp:(.text+0x43): undefined reference to `libiconv_close' collect2: ld returned 1 exit status make: *** [iconv] Error 1 POSIX iconv disabled. GNU libiconv auto-detection... () compiling gnu-libiconv.cpp gnu-libiconv.cpp: In function 'int main(int, char**)': gnu-libiconv.cpp:13: error: invalid conversion from 'const char**' to 'char**' gnu-libiconv.cpp:13: error: initializing argument 2 of 'size_t libiconv(void*, char**, size_t*, char**, size_t*)' make: *** [gnu-libiconv.o] Error 1 GNU libiconv disabled. Iconv support cannot be enabled due to functionality tests! Turn on verbose messaging (-v) to ./configure to see the final report. If you believe this message is in error you may use the continue switch (-continue) to ./configure to continue. Reproducible: Always
This looks invalid: libiconv is KEYWORDS="~sparc-fbsd ~x86-fbsd" for a very good reason, and you still seem to have put it somewhere it was found by qt4 configure.
Portage 2.1.6.7 (default/linux/amd64/2008.0, gcc-4.3.3, glibc-2.9_p20081201-r1, 2.6.28-gentoo-r1 x86_64) ================================================================= System uname: Linux-2.6.28-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7300_@_2.00GHz-with-glibc2.2.5 Timestamp of tree: Fri, 30 Jan 2009 21:00:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 3.2_p17-r1 dev-java/java-config: 1.3.7-r1, 2.1.7 dev-lang/python: 2.4.3-r4, 2.5.2-r8 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r8 dev-util/cmake: 2.6.2-r1 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.2.4-r10 sys-apps/sandbox: 1.3.3 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.19 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.28-r1 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=core2 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/bind" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=core2 -O2 -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--alphabetical" FEATURES="autoconfig buildpkg ccache digest distlocks fixpackages keepwork loadpolicy metadata-transfer parallel-fetch prelink protect-owned sandbox sfperms splitdebug strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="pl_PL" LC_ALL="pl_PL" LDFLAGS="-Wl,-O1" LINGUAS="pl" MAKEOPTS="-j3 -s" PKGDIR="/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage /usr/local/portage-arcon /usr/portage/local/layman/sabayon /usr/portage/local/layman/java-overlay /usr/local/betelgeuse /usr/portage/local/layman/sunrise /usr/local/portage/layman/berkano /usr/local/portage/layman/voyageur /usr/local/portage/layman/zen-overlay" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="7zip X a52 aac acl acpi aiglx alsa amarok amd64 amr amrnb apache2 berkdb bluetooth branding bzip2 cairo ccache cdr cdrom cli cracklib crypt cups dar64 dbus distribution dri dvd dvdr encode fat ffmpeg fortran gadu gdbm gif gpm gps gtk gzip hal hddtemp icc iconv ipod ipv6 irda isdnlog java java6 jpeg kde lm_sensors midi mmx mono mp3 mp4 mpeg2 mudflap multilib ncurses nls nptl nptlonly nsplugin nvidia opengl openmp opera pam pcre pdf perl plugins png pppd pptp python qt3 qt4 rar readline reflection reiserfs sandbox scanner session spl sse sse2 ssl ssse3 sysfs tcpd tiff unicode unzip usb vga vmware wifi xorg xvmc zip zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl" USERLAND="GNU" VIDEO_CARDS="nvidia vmware nv vga vesa" Unset: CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS AG1S portage # emerge -pv x11-libs/qt These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] x11-libs/qt-4.4.2 USE="dbus opengl qt3support" 0 kB
(In reply to comment #1) > This looks invalid: > libiconv is KEYWORDS="~sparc-fbsd ~x86-fbsd" for a very good reason, > and you still seem to have put it somewhere it was found by qt4 configure. You should have a look at virtual/libiconv. 8-)
(In reply to comment #3) > (In reply to comment #1) > > This looks invalid: > > libiconv is KEYWORDS="~sparc-fbsd ~x86-fbsd" for a very good reason, > > and you still seem to have put it somewhere it was found by qt4 configure. > > You should have a look at virtual/libiconv. 8-) > Not really, on a glibc system iconv is provided by glibc, what's provided by libiconv is in conflict with that, that's why the KEYWORDS look, the way they do.
(In reply to comment #4) > (In reply to comment #3) > > (In reply to comment #1) > > > This looks invalid: > > > libiconv is KEYWORDS="~sparc-fbsd ~x86-fbsd" for a very good reason, > > > and you still seem to have put it somewhere it was found by qt4 configure. > > > > You should have a look at virtual/libiconv. 8-) > > > Not really, on a glibc system iconv is provided by glibc, > what's provided by libiconv is in conflict with that, > that's why the KEYWORDS look, the way they do. > What can I do ??
If you didn't emerge it, simply put it somewhere, try putting it in a different place. This test seems to fail, cause it finds iconv.h header from libiconv, instead of the one from glibc.
*** Bug 257059 has been marked as a duplicate of this bug. ***
Unmerge dev-libs/libiconv as suggested and the issue should be resolved. If it isn't, reopen.