I haven't been able to emerge gnome-cups-manager for a good 5 months now, I guess. Since everything else has stabilized on my gnome desktop, I figure it's time to report it as a bug. Here's the error: /bin/sh ../libtool --mode=link distcc -O2 -march=athlon-xp -mtune=athlon-xp -pipe -fomit-frame-pointer -o gnome-cups-add -Wl,--export-dynamic -pthread -lgnomeui-2 -lSM -lICE -lbonoboui-2 -lgnomecanvas-2 -lart_lgpl_2 -lpangoft2-1.0 -lgnome-2 -lpopt -lgnomevfs-2 -lgconf-2 -lglade-2.0 -lgtk-x11-2.0 -lxml2 -lpthread -lz -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lbonobo-2 -lbonobo-activation -lORBit-2 -lm -lgmodule-2.0 -ldl -lgthread-2.0 -lgnomecups-1.0 -lcups -lssl -lcrypto -lnsl -lgobject-2.0 -lgnome-keyring -lglib-2.0 ../libgnomecups/libgnomecupsui-1.0.la add-printer.o druid-helper.o mkdir .libs distcc -O2 -march=athlon-xp -mtune=athlon-xp -pipe -fomit-frame-pointer -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/libpangoft2-1.0.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 -lpthread -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/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 `__cxa_free_exception' ../libgnomecups/.libs/libgnomecupsui-1.0.so: undefined reference to `operator new[](unsigned int)' ../libgnomecups/.libs/libgnomecupsui-1.0.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(char const*, unsigned int)' ../libgnomecups/.libs/libgnomecupsui-1.0.so: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)' ../libgnomecups/.libs/libgnomecupsui-1.0.so: undefined reference to `__cxa_rethrow' ../libgnomecups/.libs/libgnomecupsui-1.0.so: undefined reference to `__gnu_cxx::__exchange_and_add(int volatile*, int)' ../libgnomecups/.libs/libgnomecupsui-1.0.so: undefined reference to `std::_Rb_tree_decrement(std::_Rb_tree_node_base*)' ../libgnomecups/.libs/libgnomecupsui-1.0.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' ../libgnomecups/.libs/libgnomecupsui-1.0.so: undefined reference to `__cxa_call_unexpected' ../libgnomecups/.libs/libgnomecupsui-1.0.so: undefined reference to `std::cerr' ../libgnomecups/.libs/libgnomecupsui-1.0.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::find(char const*, unsigned int, unsigned int) const' ../libgnomecups/.libs/libgnomecupsui-1.0.so: undefined reference to `std::basic_ostream<char, std::char_traits<char> >::operator<<(unsigned long)' ../libgnomecups/.libs/libgnomecupsui-1.0.so: undefined reference to `typeinfo for std::bad_alloc' ../libgnomecups/.libs/libgnomecupsui-1.0.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' ../libgnomecups/.libs/libgnomecupsui-1.0.so: undefined reference to `vtable for __cxxabiv1::__si_class_type_info' ../libgnomecups/.libs/libgnomecupsui-1.0.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()' ../libgnomecups/.libs/libgnomecupsui-1.0.so: undefined reference to `operator delete(void*)' ../libgnomecups/.libs/libgnomecupsui-1.0.so: undefined reference to `std::__throw_length_error(char const*)' ../libgnomecups/.libs/libgnomecupsui-1.0.so: undefined reference to `__cxa_end_catch' ../libgnomecups/.libs/libgnomecupsui-1.0.so: undefined reference to `__gxx_personality_v0' ../libgnomecups/.libs/libgnomecupsui-1.0.so: undefined reference to `std::_List_node_base::unhook()' ../libgnomecups/.libs/libgnomecupsui-1.0.so: undefined reference to `std::_List_node_base::hook(std::_List_node_base*)' ../libgnomecups/.libs/libgnomecupsui-1.0.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage' ../libgnomecups/.libs/libgnomecupsui-1.0.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_max_size' ../libgnomecups/.libs/libgnomecupsui-1.0.so: undefined reference to `__cxa_pure_virtual' ../libgnomecups/.libs/libgnomecupsui-1.0.so: undefined reference to `vtable for std::bad_alloc' ../libgnomecups/.libs/libgnomecupsui-1.0.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_mutate(unsigned int, unsigned int, unsigned int)' ../libgnomecups/.libs/libgnomecupsui-1.0.so: undefined reference to `std::ios_base::Init::Init()' ../libgnomecups/.libs/libgnomecupsui-1.0.so: undefined reference to `vtable for __cxxabiv1::__class_type_info' ../libgnomecups/.libs/libgnomecupsui-1.0.so: undefined reference to `__cxa_throw' ../libgnomecups/.libs/libgnomecupsui-1.0.so: undefined reference to `std::_Rb_tree_insert_and_rebalance(bool, std::_Rb_tree_node_base*, std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)' ../libgnomecups/.libs/libgnomecupsui-1.0.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' ../libgnomecups/.libs/libgnomecupsui-1.0.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&)' ../libgnomecups/.libs/libgnomecupsui-1.0.so: undefined reference to `std::_Rb_tree_rebalance_for_erase(std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)' ../libgnomecups/.libs/libgnomecupsui-1.0.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_leak_hard()' ../libgnomecups/.libs/libgnomecupsui-1.0.so: undefined reference to `vtable for __cxxabiv1::__vmi_class_type_info' ../libgnomecups/.libs/libgnomecupsui-1.0.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, unsigned int)' ../libgnomecups/.libs/libgnomecupsui-1.0.so: undefined reference to `std::ios_base::Init::~Init()' ../libgnomecups/.libs/libgnomecupsui-1.0.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, unsigned int, std::allocator<char> const&)' ../libgnomecups/.libs/libgnomecupsui-1.0.so: undefined reference to `__cxa_begin_catch' ../libgnomecups/.libs/libgnomecupsui-1.0.so: undefined reference to `__cxa_allocate_exception' ../libgnomecups/.libs/libgnomecupsui-1.0.so: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::endl<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&)' ../libgnomecups/.libs/libgnomecupsui-1.0.so: undefined reference to `std::_Rb_tree_increment(std::_Rb_tree_node_base*)' ../libgnomecups/.libs/libgnomecupsui-1.0.so: undefined reference to `operator new(unsigned int)' ../libgnomecups/.libs/libgnomecupsui-1.0.so: undefined reference to `std::bad_alloc::~bad_alloc()' ../libgnomecups/.libs/libgnomecupsui-1.0.so: undefined reference to `std::__throw_out_of_range(char const*)' ../libgnomecups/.libs/libgnomecupsui-1.0.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::find(char, unsigned int) const' ../libgnomecups/.libs/libgnomecupsui-1.0.so: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <char, std::char_traits<char>, std::allocator<char> >(std::basic_ostream<char, std::char_traits<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' ../libgnomecups/.libs/libgnomecupsui-1.0.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_M_destroy(std::allocator<char> const&)' ../libgnomecups/.libs/libgnomecupsui-1.0.so: undefined reference to `__dynamic_cast' ../libgnomecups/.libs/libgnomecupsui-1.0.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(char const*, unsigned int)' collect2: ld returned 1 exit status distcc[4132] ERROR: compile (null) on localhost failed distcc[4131] ERROR: compile (null) on localhost failed make[2]: *** [gnome-cups-add] Error 1 make[2]: Leaving directory `/var/tmp/portage/gnome-cups-manager-0.30/work/gnome-cups-manager-0.30/gnome-cups-add' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/gnome-cups-manager-0.30/work/gnome-cups-manager-0.30' make: *** [all] Error 2 !!! ERROR: net-print/gnome-cups-manager-0.30 failed. !!! Function gnome2_src_compile, Line 40, Exitcode 2 !!! compile failure !!! If you need support, post the topmost build error, NOT this status message. Here's my emerge info: # emerge info Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.4.3-20050110, glibc-2.3.5-r0, 2.6.11-gentoo-r9 i686) ================================================================= System uname: 2.6.11-gentoo-r9 i686 mobile AMD Athlon(tm) XP-M 2000+ Gentoo Base System version 1.6.12 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] dev-lang/python: 2.4.1 sys-apps/sandbox: 1.2.8 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.16 sys-devel/libtool: 1.5.18 virtual/os-headers: 2.6.11 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-xp -mtune=athlon-xp -pipe -fomit-frame-pointer" 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.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="-O2 -march=athlon-xp -mtune=athlon-xp -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distcc distlocks sfperms strict" GENTOO_MIRRORS="ftp://mirrors.tds.net/gentoo http://mirror.datapipe.net/gentoo http://mirrors.tds.net/gentoo" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage /usr/local/overlays/bmg-main /usr/local/overlays/fluidportage" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" USE="x86 3dnow S3TC X aac aalib acl acpi adns aim alsa apache2 apm arts avi bash-completion berkdb bitmap-fonts bluetooth bonobo caps cddb cdf cdr chroot cle266 crypt cups curl dba dbus dga directfb divx4linux dv dvd dvdr eds emacs emboss encode esd evo expat faad fam fastcgi fbcon fbdev ffmpeg flac flash fluidsynth fmod foomaticdb fortran freetds freetype fs gcj gd gdbm geoip ggi gif gimp gimpprint glade glut gnome gnomedb gphoto2 gpm gps graphviz gstreamer gtk gtk2 gtkhtml guile hal hbci icq ieee1394 imagemagick imap imlib imlib2 innodb jabber jack jack-tmpfs jpeg lcd lcms ldap libclamav libg++ libgda libwww lirc lua mad mbox md5sum mdb mikmod mmx mng mono mozdevelop mozilla moznocompose moznoirc moznomail mozsvg mozxmlterm mp3 mpeg mpeg4 msn mssql mysql nas ncurses nls nntp nodrm nomotif nptl odbc ofx ogg oggvorbis openal opengl opie oscar oss pam pcre pda pdflib perl plotutils png pnp postgis postgres psyco pthreads python qt quicktime readline rogue ruby samba sasl scanner sdl slang speedo speex spell sqlite sse ssl stencil-buffer svg svga tcpd tetex theora tiff transcode truetype truetype-fonts type1 type1-fonts unichrome usb v4l v4l2 vda vhosts virus-scan vorbis wmf wxwin wxwindows xine xml xml2 xmms xprint xv xvid yahoo yv12 zeo zlib zvbi video_cards_via userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS and my libgnomecups has always emerged cleanly: # emerge libgnomecups -pv [ebuild R ] net-print/libgnomecups-0.2.0 -debug 0 kB Any help would be greatly appreciated. I haven't printed from my Gentoo system, ever, and am only missing it now. Thank. Reproducible: Always Steps to Reproduce: 1. 2. 3.
what pkgconfig version are you using ?
you should probably try & recompile libgnomecups first (that is the lib that is erroring).
[foser] what pkgconfig version are you using ? # emerge pkgconfig -pv [ebuild R ] dev-util/pkgconfig-0.17.2-r1 -debug -hardened 0 kB [foser] you should probably try & recompile libgnomecups first (that is the lib that is erroring). # genlop -t libgnomecups * net-print/libgnomecups Mon May 31 12:12:23 2004 >>> net-print/libgnomecups-0.1.6 merge time: 21 seconds. Sun Jul 18 12:31:53 2004 >>> net-print/libgnomecups-0.1.8 merge time: 25 seconds. Thu Aug 19 10:28:31 2004 >>> net-print/libgnomecups-0.1.10 merge time: 44 seconds. Mon Dec 27 11:12:13 2004 >>> net-print/libgnomecups-0.1.14 merge time: 1 minute. Thu Mar 10 08:52:07 2005 >>> net-print/libgnomecups-0.2.0 merge time: 1 minute and 11 seconds. Sun May 22 14:40:41 2005 >>> net-print/libgnomecups-0.2.0 merge time: 1 minute and 5 seconds.
Hmmm... It just worked for me. Those are failures to find standard C++ library code. Did you somehow get the nocxx flag set on a gcc build?
No I don't have gcc 'nocxx' set. I don't discount the possibility that it could be some wrong configuration with my toolchain, it builds reliably most of the time, and revdeprebuild is clear right now. If you can suggest any toolchain tests I'll try them. # emerge glibc libtool binutils binutils-config gcc-config gcc -pv [ebuild R ] sys-libs/glibc-2.3.5 -build -debug -erandom -hardened (-multilib) +nls -nomalloccheck +nptl +nptlonly -pic +userlocales 0 kB [ebuild R ] sys-devel/libtool-1.5.18 0 kB [ebuild R ] sys-devel/binutils-2.16 -debug -multislot -multitarget +nls -test 136 kB [ebuild R ] sys-devel/binutils-config-1.8-r2 0 kB [ebuild R ] sys-devel/gcc-config-1.3.10-r2 0 kB [ebuild R ] sys-devel/gcc-3.4.3.20050110-r2 (-altivec) -bootstrap -boundschecking -build -debug +fortran +gcj +gtk -hardened -ip28 (-multilib) -multislot (-n32) (-n64) +nls -nocxx -objc -static (-uclibc) 0 kB
It was a shot in the dark. All those errors appears to be related to fairly advanced C++ standard lib features (templates, exceptions, etc.), so a test would be to compile any fairly complex c++ code. One example is dev-cpp/bakery, or any part of kde.
I do have the current 3.4.0 kdelibs, arts and a few assorted C++ Qt applications installed (I needed umbrello, mainly). I'm waiting for the actual tarballs for 3.4.1, but then I'm going to compile that, too. In general, I haven't noticed any recent problems with C++ compilation. FWIW, I've tested this gnome-cups-manager compilation with distcc turned off, too.
are you still having this problem?
[ebuild R ] net-print/gnome-cups-manager-0.30 -debug Mon Jun 6 00:30:21 2005 >>> net-print/gnome-cups-manager-0.30 merge time: 1 minute and 39 seconds. I do have it emerged now. I don't recall the exact circumstances of its recompilation, but you can close the bug from my point of view. Thanks.