# qpkg -I -i gtk+ x11-libs/gtk+-2.6.1 * Gimp ToolKit + [ http://www.gtk.org/ ] x11-libs/gtk+-1.2.10-r11 * The GIMP Toolkit [ http://www.gtk.org/ ] # emerge -v xchm [...] i686-pc-linux-gnu-g++ -march=athlon-xp -O2 -fomit-frame-pointer -pipe -W -Wall -o xchm chmapp.o chmfile.o chmframe.o chmfshandler.o chminputstream.o contenttaghandler.o chmfontdialog.o chmsearchpanel.o chmhtmlwindow.o chmfinddialog.o chmindexpanel.o chmlistctrl.o -pthread -lwx_gtk2u-2.4 -lchm /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/bin/ld: warning: libstdc++.so.5, needed by /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../libwx_gtk2u-2.4.so, may conflict with libstdc++.so.6 /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../libwx_gtk2u-2.4.so: undefined reference to `_gtk_accel_group_detach' /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../libwx_gtk2u-2.4.so: undefined reference to `_gtk_accel_group_attach' /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../libwx_gtk2u-2.4.so: undefined reference to `_gtk_rc_context_get_default_font_name' collect2: ld returned 1 exit status make[2]: *** [xchm] Error 1 make[2]: Leaving directory `/var/tmp/portage/xchm-0.9.7/work/xchm-0.9.7/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/xchm-0.9.7/work/xchm-0.9.7' make: *** [all] Error 2 Reproducible: Always Steps to Reproduce: Gentoo Base System version 1.6.8 Portage 2.0.51-r12 (default-linux/x86/2004.0, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10-gentoo-r4 i686) ================================================================= System uname: 2.6.10-gentoo-r4 i686 AMD Athlon(tm) XP 2000+ Python: dev-lang/python-2.3.4 [2.3.4 (#1, Aug 11 2004, 16:20:21)] dev-lang/python: 2.3.4 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r2 sys-devel/libtool: 1.5.10-r2 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O2 -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -O2 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig buildpkg ccache collision-protect distlocks sandbox sfperms strict usersandbox" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="3dnow X Xaw3d aac aalib acl acpi alsa apm audiofile avi berkdb bitmap-fonts bonobo cdr crypt cups divx4linux dvd edl emacs emacs-w3 encode esd f77 faad fam fbcon fbdev ffmpeg flac font-server foomaticdb gcj gdbm gif gimpprint glut gnome gpm gstreamer gtk gtk2 gtkhtml guile imagemagick imap imlib imlib2 ipv6 java javascript jpeg kde libcaca libg++ libwww lirc lzo mad mbox md5sum mikmod mmx mng motif mozilla mpeg ncurses neXt nls nntp nptl oggvorbis opengl pam pcre pdflib perl png python qt quicktime readline rplay rtc samba sdl silverxp slang spell sse ssl stroke svg svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts unicode v4l2 wmf x86 xface xine xml xml2 xmms xosd xv xvid zlib linguas_en linguas_fr linguas_de" Unset: LDFLAGS
gcc 3.3 and 3.4 compatibility issue. run `revdep-rebuild --soname libstdc++.so.5` (takes a while) and `revdep-rebuild -p` to be sure that there are no broken reverse dependencies. If it's still an issue afterwards, reopen please.
Ad comment #1: Not true -- libstdc++ part is warning only, the important part of this report are the *errors* below it. The undefined references have obviously no relation to C++ at all; they are caused by a bug in wxGTK 2.4.x, that is already fixed in Portage since 2004-12-05 (bug #46737).
In fact re-emerging wxGTK solves the problem. But why a new release of wxGTK was not commited to portage when bug #46737 was fixed? If so, this one would not have happened. Thanks for the help.
Reemerging current stable wxGTK-2.4.2-r2 does *not* help. You need to unmask wxGTK-2.4.2-r3 (it's still in ~x86), emerge it, and then emerge xchm. Worked for me (tm).
emerge wxGTK xchm works for me too