Link error during emerge Reproducible: Always Steps to Reproduce: 1. emerge -uDav world 2. 3. Actual Results: i686-pc-linux-gnu-gcc -march=pentium4 -O3 -pipe -o .libs/gnome-cups-add -Wl,--export-dynamic add-printer.o druid-helper.o -pthread /usr/lib/libgnomeui-2.so -lSM -lICE /usr/lib/libbonoboui-2.so /usr/lib/libgnomecanvas-2.so /usr/lib/libart_lgpl_2.so /usr/lib/libgnome-2.so /usr/lib/libpopt.so /usr/lib/libgnomevfs-2.so /usr/lib/libgconf-2.so /usr/lib/libglade-2.0.so /usr/lib/libgtk-x11-2.0.so /usr/lib/libxml2.so -lz /usr/lib/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so /usr/lib/libgdk_pixbuf-2.0.so /usr/lib/libpangoxft-1.0.so /usr/lib/libpangox-1.0.so /usr/lib/libpangoft2-1.0.so /usr/lib/libpango-1.0.so /usr/lib/libbonobo-2.so /usr/lib/libbonobo-activation.so /usr/lib/libORBit-2.so -lm /usr/lib/libgmodule-2.0.so -ldl /usr/lib/libgthread-2.0.so /usr/lib/libgnomecups-1.0.so -lcups -lssl -lcrypto -lnsl /usr/lib/libgobject-2.0.so /usr/lib/libgnome-keyring.so /usr/lib/libglib-2.0.so ../libgnomecups/.libs/libgnomecupsui-1.0.so ../libgnomecups/.libs/libgnomecupsui-1.0.so: undefined reference to `std::char_traits<unsigned char>::length(unsigned char const*)' ../libgnomecups/.libs/libgnomecupsui-1.0.so: undefined reference to `std::char_traits<unsigned char>::compare(unsigned char const*, unsigned char const*, unsigned)' ../libgnomecups/.libs/libgnomecupsui-1.0.so: undefined reference to `std::char_traits<unsigned char>::assign(unsigned char*, unsigned, unsigned char)' ../libgnomecups/.libs/libgnomecupsui-1.0.so: undefined reference to `std::char_traits<unsigned char>::copy(unsigned char*, unsigned char const*, unsigned)' ../libgnomecups/.libs/libgnomecupsui-1.0.so: undefined reference to `std::char_traits<unsigned char>::move(unsigned char*, unsigned char const*, unsigned)' collect2: ld returned 1 exit status make[2]: *** [gnome-cups-add] Error 1 make[2]: Leaving directory `/var/tmp/portage/gnome-cups-manager-0.31/work/gnome-cups-manager-0.31/gnome-cups-add' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/gnome-cups-manager-0.31/work/gnome-cups-manager-0.31' make: *** [all] Error 2 Expected Results: success Portage 2.0.52-r1 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r1, 2.6.13-gentoo-r2 i686) ================================================================= System uname: 2.6.13-gentoo-r2 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 2.50GHz Gentoo Base System version 1.12.0_pre8 dev-lang/python: 2.3.5, 2.4.1-r1 sys-apps/sandbox: 1.2.13 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium4 -O3 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-march=pentium4 -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X adns alsa apache2 apm arts avi berkdb bitmap-fonts bonobo cdr cli crypt cups curl dba dga doc dvd eds elibc_glibc emacs emboss encode esd fam foomaticdb fortran gd gdbm gif gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hal howloss imagemagick imlib ipv6 java jpeg junit ldap libg++ libwww mad mikmod motif mozilla mp3 mpeg mysql ncurses nls odbc ogg oggvorbis opengl oss pam pdflib perl png postgres python quicktime readline samba scanner sdl slang snmp spell ssl svga tcpd tetex tiff truetype truetype-fonts type1-fonts unicode usb vorbis xine xml xml2 xmms xv zlib userland_GNU kernel_linux" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY
Works fine here. What version of libgnomecups do you have? Could you try re-emerging libgnomecups?
I got the same error's when compling gnome-cups-manager-0.31. The version of libgnomecups is 0.2.2, I'm running a ~86 system.
Based on your suggestion, I tried re-emerging libgnomecups and had the same results emerging the gnome-cups-manager-0.31. I also have: net-print/libgnomecups-0.2.2
(In reply to comment #3) > Based on your suggestion, I tried re-emerging libgnomecups and had the same > results emerging the gnome-cups-manager-0.31. > > I also have: net-print/libgnomecups-0.2.2 Same scenario here. Same errors and versions. ~x86 System, AthlonXP
I had the same problem - I found that switching my gcc version from i686-pc-linux-gnu-3.3.4 to i686-pc-linux-gnu-3.4.4 fixed the problem for me. Hope that helps.
(In reply to comment #5) > I had the same problem - I found that switching my gcc version from > i686-pc-linux-gnu-3.3.4 to i686-pc-linux-gnu-3.4.4 fixed the problem for me. > Hope that helps. I am confirming - the same here: switched to 3.4.4 profile that totaly resolved the issue.
switching to gcc 3.4.4 good for me too
Same issue here with gcc-3.3.6. Running an x86 system with select ~x86, so no gcc-3.4 installed here.
I did the same and switched to gcc 3.4.4 to successfully emerge this package. Let me spell it out for anybody (like me) who doesn't know how to switch gcc versions. Run: gcc-config -l to see the versions available. Look for the number that precedes gcc 3.4.4 (plain), and then run. gcc-config 3 substitute the correct number for 3. It should emerge without any issues.
from http://bugzilla.gnome.org/show_bug.cgi?id=315384 Can this patch being tested (if pass -->) included? http://bugzilla.gnome.org/attachment.cgi?id=51929&action=view
(In reply to comment #9) > I did the same and switched to gcc 3.4.4 to successfully emerge this package. > Let me spell it out for anybody (like me) who doesn't know how to switch gcc > versions. Run: > > gcc-config -l > > to see the versions available. Look for the number that precedes gcc 3.4.4 > (plain), and then run. > > gcc-config 3 > > substitute the correct number for 3. It should emerge without any issues. > > > (In reply to comment #9) > I did the same and switched to gcc 3.4.4 to successfully emerge this package. > Let me spell it out for anybody (like me) who doesn't know how to switch gcc > versions. Run: > > gcc-config -l > > to see the versions available. Look for the number that precedes gcc 3.4.4 > (plain), and then run. > > gcc-config 3 > > substitute the correct number for 3. It should emerge without any issues. > > > Indeed, the fix is immaculate. Domo.
For some reason, imho, it does'nt seems logical or practical to build||have another gcc for a 496K little app ... 496K little app is gone ATM ;)
comment #12: Could you test the patch in comment #10? I can't, because I'm on amd64, and therefore don't have a gcc 3.3.x
I confirmed the patch fix this issue. dang, please apply the patch.
Created attachment 73057 [details, diff] da patch! This is it!
Created attachment 73058 [details] da ebild with patch Needs formality on its header (and maybe add extraversion "-r1") C ya!
Upstream has said no to the patch. We wont apply this downstream either. However, as gcc-3.4 has been stablized on most arches, this really is no longer a big issue. The remaining arches are hppa, ia64, ppc64 and sparc.
Okay, added a warning to the ebuild. Depending on a gcc version is really bad, and as a result, marking as CANTFIX.
*** Bug 125418 has been marked as a duplicate of this bug. ***