Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 123065 - kde packages fail on undefined reference to __cxa_get_exception_ptr
Summary: kde packages fail on undefined reference to __cxa_get_exception_ptr
Status: VERIFIED DUPLICATE of bug 64615
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
: 114225 121854 123319 131280 135367 136302 136871 137491 139237 142135 142382 142749 143130 146127 147185 147434 149116 152298 152585 152874 152943 153505 155227 155414 155467 155709 155714 156328 156462 157872 158693 159612 234874 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-02-16 10:53 UTC by Dariusz Dwornikowski
Modified: 2008-08-16 01:49 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dariusz Dwornikowski 2006-02-16 10:53:23 UTC
L/usr/kde/3.5/lib -L/usr/qt/3/lib -L/usr/lib    khelpcenter.la.o libkdeinit_khelpcenter.la
/usr/kde/3.5/lib/libkhtml.so: undefined reference to `__cxa_get_exception_ptr@CXXABI_1.3.1'
collect2: ld returned 1 exit status
make[3]: *** [khelpcenter] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/var/tmp/portage/kdebase-3.5.1-r1/work/kdebase-3.5.1/khelpcenter'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/kdebase-3.5.1-r1/work/kdebase-3.5.1/khelpcenter'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kdebase-3.5.1-r1/work/kdebase-3.5.1'
make: *** [all] Error 2

!!! ERROR: kde-base/kdebase-3.5.1-r1 failed.
Call stack:
  ebuild.sh, line 1894:   Called dyn_compile
  ebuild.sh, line 941:   Called src_compile
  kdebase-3.5.1-r1.ebuild, line 108:   Called kde_src_compile
  kde.eclass, line 104:   Called kde_src_compile 'compile'
  kde.eclass, line 221:   Called kde_src_compile 'all' 'myconf' 'configure'

!!! died running emake, kde_src_compile:make
!!! If you need support, post the topmost build error, and the call stack if relevant.

[ebuild     U ] kde-base/kdebase-3.5.1-r1 [3.5.0-r1] USE="arts* cups hal opengl pam -debug -ieee1394 -java* -kdeenablefinal -ldap -lm_sensors -logitech-mouse -openexr -samba* -ssl -xcomposite% -xinerama -xscreensaver% -zeroconf" 0 kB

emerge info :
Portage 2.1_pre4-r1 (default-linux/x86/2005.1, gcc-4.0.2, glibc-2.3.6-r2, 2.6.15-gentoo-r1 i686)
=================================================================
System uname: 2.6.15-gentoo-r1 i686 Intel(R) Pentium(R) M processor 1400MHz
Gentoo Base System version 1.12.0_pre15
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5, 2.4.2-r1
sys-apps/sandbox:    1.2.17
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-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer -ffast-math -msse2 -falign-functions=64"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer -ffast-math -msse2 -falign-functions=64"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy ccache distlocks moo parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="pl_PL"
LC_ALL="pl_PL"
LINGUAS="pl"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X acpi alsa apm arts avi berkdb bitmap-fonts bluetooth crypt cups dbus dvd eds emboss encode extras foomaticdb freetype gdbm gif gpm gtk2 hal imlib ipv6 jabber jpeg libg++ libwww mad mikmod mmx motif mp3 mpeg ncurses nls nptl nptlonly ogg oggvorbis opengl oss pam pdflib perl pic png python qt quicktime readline sdl spell sse sse2 ssl tcpd truetype truetype-fonts type1-fonts unicode userlocales vorbis xml2 xmms xv zlib elibc_glibc kernel_linux linguas_pl userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LDFLAGS, PORTDIR_OVERLAY
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-02-16 11:25:27 UTC

*** This bug has been marked as a duplicate of 64615 ***
Comment 2 Dariusz Dwornikowski 2006-02-19 03:17:50 UTC
no it is not a duplicate - i did all from the duplicated bug and still have errors - also after recompiling kdelibs with gcc 3.4.4 and 4.0.2
Comment 3 Caleb Tennis (RETIRED) gentoo-dev 2006-02-23 08:37:00 UTC
*** Bug 123319 has been marked as a duplicate of this bug. ***
Comment 4 Caleb Tennis (RETIRED) gentoo-dev 2006-02-23 08:38:55 UTC
*** Bug 121854 has been marked as a duplicate of this bug. ***
Comment 5 Caleb Tennis (RETIRED) gentoo-dev 2006-02-23 08:39:37 UTC
*** Bug 114225 has been marked as a duplicate of this bug. ***
Comment 6 Caleb Tennis (RETIRED) gentoo-dev 2006-02-23 08:40:26 UTC
Okay, now that the duped bugs are listed here, while I think this is gcc-4 related, I also think it needs to be fixed.  So, we'll combine efforts here.
Comment 7 Caleb Tennis (RETIRED) gentoo-dev 2006-02-23 08:40:58 UTC
The first obvious question is: can you re-emerge kdelibs and see if that fixes the problem with your packages?
Comment 8 John Sonnenschein 2006-02-23 09:44:48 UTC
(In reply to comment #7)
> The first obvious question is: can you re-emerge kdelibs and see if that fixes
> the problem with your packages?
> 

No, I've tried that. I've even gone as far as to recompile glibc, to no avail
Comment 9 Caleb Tennis (RETIRED) gentoo-dev 2006-02-23 12:25:09 UTC
Have you seen this thread?

http://forums.gentoo.org/viewtopic-t-407711-highlight-cxagetexceptionptr.html
Comment 10 Chris Torske 2006-04-25 16:29:13 UTC
*** Bug 131280 has been marked as a duplicate of this bug. ***
Comment 11 Sven Nguyen Van 2006-05-30 07:09:15 UTC
emerge --info:

Portage 2.1_pre9-r5 (default-linux/x86/2005.1, gcc-4.1.0, glibc-2.4-r2, 2.6.16-gentoo-r6 i686)
=================================================================
System uname: 2.6.16-gentoo-r6 i686 AMD Athlon(tm) XP 2000+
Gentoo Base System version 1.12.0_pre18
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.3
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r1
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
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-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -pipe -finline-functions -march=athlon-xp"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/NX/etc /usr/NX/home /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/X11/xkb /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe -finline-functions -march=athlon-xp"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.gentoo.mesh-solutions.com/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/"
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/nx"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X acpi adsl akode alsa amd amuled ansi apache apache2 apm arts automount avi bash-completion beep berkdb bind-mysql bindist bitmap-fonts bluetooth browserplugin c++ c3p0 calendar ccache cdda cddb clamav clamd cli cpulimit crypt css cups cvsgraph dbus dbx dedicated dga dhcp dio disk-cache dnd dnsdb dpms dri eds elf emboss encode enscript escreen etwin exif extraengine fame fastcgi fat fbcon fbdev firefox flac font-server fontconfig foomaticdb fortran ftp gcj gdbm gif ginac glibc-compat20 glibc-omitfp gpm gstreamer gtk gtk2 hpn icq imlib innodb inode ipv6 irc isdnlog jabber java javacomm javascript jfs jms jpeg kerberos libg++ libwww mad mccp mikmod mmx motif mozcalendar moznocompose moznomail mp3 mpeg multipleip mysql mysqli nas nat ncurses net netboot network nforce2 nls nodrm nptl nptlonly oav offensive ogg oggvorbis opengl oscar pam pcre pdflib perl png pppd python qt quicktime readline real reflection reiserfs rtc sdl session sox spell spl sse sse2 ssl sysfs tcpd teamarena toolbar truetype truetype-fonts type1-fonts unicode userlocales vcd vorbis vorbis-psy win32codecs winbind wma wmf xml xml2 xorg zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_s3virge video_cards_vesa video_cards_vga"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 12 Boky 2006-05-31 03:45:21 UTC
Maybe this will help any other desparate soul:

I did (generally all previous compilers that might have been used):
fix_libtool_files.sh 3.4.4
fix_libtool_files.sh 4.0.2
fix_libtool_files.sh 4.0.3
fix_libtool_files.sh 4.1.0
fix_libtool_files.sh 4.1.0-r1

(installed GCC is 4.1.1)

After that:
cat /usr/portage/kde-base/kdelibs/kdelibs-3.5.2-r6

Looked at DEPENDS
rememerged everything in depends (careful: some packages are virtual and you must reemerge/recompile the target package, not just the virutal itself; first case of this is the libstdc++)

then reemerged kdelibs and - yey! - works!
Comment 13 Gregorio Guidi (RETIRED) gentoo-dev 2006-06-03 06:32:41 UTC
*** Bug 135367 has been marked as a duplicate of this bug. ***
Comment 14 Gregorio Guidi (RETIRED) gentoo-dev 2006-06-11 08:24:21 UTC
*** Bug 136302 has been marked as a duplicate of this bug. ***
Comment 15 Caleb Tennis (RETIRED) gentoo-dev 2006-06-15 03:59:01 UTC
*** Bug 136871 has been marked as a duplicate of this bug. ***
Comment 16 Piotr Jaroszyński (RETIRED) gentoo-dev 2006-06-15 06:10:45 UTC
emerge -e world after gcc upgrade from 3.4 to 4.1 is necessary to omit such problems with incompatible ABIs.
Comment 17 Sven Nguyen Van 2006-06-15 08:26:36 UTC
i did the emerge -e system and emerge -e world, but already had those compile errors during that.

using fix_libtool_files.sh like Boky said, did the trick for me
Comment 18 Pierrick C. 2006-06-17 12:10:06 UTC
Same problem with kdelibs-3.5.3-r2, but using fix_libtool_files.sh and re-emerging everything in depends like Boky, doesn't change anything.

emerge kdelibs:
...
ecma/.libs/libkjs_html.a(kjs_binding.o): In function `KJS::DOMFunction::call(KJS::ExecState*, KJS::Object&, KJS::List const&)':
kjs_binding.cpp:(.text+0x1bcb): undefined reference to `__cxa_get_exception_ptr'
kjs_binding.cpp:(.text+0x1e82): undefined reference to `__cxa_get_exception_ptr'
kjs_binding.cpp:(.text+0x22c1): undefined reference to `__cxa_get_exception_ptr'
kjs_binding.cpp:(.text+0x254d): undefined reference to `__cxa_get_exception_ptr'
ecma/.libs/libkjs_html.a(kjs_binding.o): In function `KJS::DOMFunction::get(KJS::ExecState*, KJS::Identifier const&) const':
kjs_binding.cpp:(.text+0x28d1): undefined reference to `__cxa_get_exception_ptr'
ecma/.libs/libkjs_html.a(kjs_binding.o):kjs_binding.cpp:(.text+0x2c32): more undefined references to `__cxa_get_exception_ptr' follow
collect2: ld returned 1 exit status
make[3]: *** [libkhtml.la] Error 1
make[3]: Leaving directory `/var/tmp/portage/kdelibs-3.5.3-r2/work/kdelibs-3.5.3/khtml'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/kdelibs-3.5.3-r2/work/kdelibs-3.5.3/khtml'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kdelibs-3.5.3-r2/work/kdelibs-3.5.3'
make: *** [all] Error 2

!!! ERROR: kde-base/kdelibs-3.5.3-r2 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  kdelibs-3.5.3-r2.ebuild, line 123:   Called kde_src_compile
  kde.eclass, line 164:   Called kde_src_compile 'all'
  kde.eclass, line 299:   Called kde_src_compile 'myconf' 'configure' 'make'
  kde.eclass, line 295:   Called die

emerge --info:
Portage 2.1 (default-linux/x86/2006.0, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.16-gentoo-r9-aro i686)
=================================================================
System uname: 2.6.16-gentoo-r9-aro i686 AMD Athlon(tm) XP 1800+
Gentoo Base System version 1.12.1
ccache version 2.4 [enabled]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
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-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://mirror.ovh.net/gentoo-distfiles/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/ http://gentoo.mirror.intouch.nl/gentoo/"
LINGUAS="fr"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X acpi alsa apache2 audiofile avi berkdb bitmap-fonts browserplugin bzip2 cairo cli crypt dbus dri dts dvd dvdr dvdread emboss encode esd ffmpeg flac foomaticdb fortran ftp gdbm gif gnome gphoto2 gpm gstreamer gtk gtk2 hal ieee1394 imagemagick imlib isdnlog java jpeg kde libg++ libwww lm_sensors mad md5sum mikmod mime mmx motif mp3 mpeg ncurses nls nptl nptlonly nvidia ogg oggvorbis openal opengl oss pam pcre pdflib perl pic png posix pppd python qt quicktime readline reflection sdl session spell spl sse ssl symlink tcpd theora tiff truetype truetype-fonts type1-fonts udev unicode usb userlocales v4l vcd videos vidix vorbis xcomposite xface xinerama xml xml2 xorg xv xvid zlib elibc_glibc input_devices_-acecad input_devices_-aiptek input_devices_-calcomp input_devices_-citron input_devices_-digitaledge input_devices_-dmc input_devices_-dynapro input_devices_-elo2300 input_devices_-elographics input_devices_evdev input_devices_-fpit input_devices_-hyperpen input_devices_-jamstudio input_devices_-joystick input_devices_keyboard input_devices_-magellan input_devices_-magictouch input_devices_-microtouch input_devices_mouse input_devices_-mutouch input_devices_-palmax input_devices_-penmount input_devices_-spaceorb input_devices_-summa input_devices_-synaptics input_devices_-tek4957 input_devices_-ur98 input_devices_-vmmouse input_devices_-void input_devices_-wacom kernel_linux linguas_fr userland_GNU video_cards_-i810 video_cards_nvidia video_cards_-via"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 19 Ricardo 2006-06-24 04:39:26 UTC
The problem is that gcc 4.1.1 doesn't have a libstdc++.la file.

For me, the error occurs when I try to emerge kdelibs, and I get a series of
lines that read:

libtool: link: warning: libstdc++.la seems to be moved

and the package will fail to emerge.  Even after I run fix_libtool_files.sh and
recompile all the packages that kdelibs depends on anew, the emerge still fails.

I took the liberty of snooping around /usr/lib and found that while
/usr/lib/gcc/i686-pc-linux-gnu/3.4.6 does contain a copy of libstdc++.la, 4.1.1
does not.  is it that gcc 4.1.1 is broken?

-Ricardo-
Comment 20 Jakub Moc (RETIRED) gentoo-dev 2006-06-26 10:56:34 UTC
*** Bug 137491 has been marked as a duplicate of this bug. ***
Comment 21 Aaron Peterson 2006-07-03 23:07:37 UTC
I've been fighting this bug for a long time.


I've remerged system -e   world -e

done the libtool fix thingie...  I've had this sytem up for so long.. maybe there are a heck of a lot of small versions lying about?  I have no idea what version of gcc to specify in that fix script.

I've chopped out useflags.... it still just plain arsed doesn't work.

Comment 22 Aaron Peterson 2006-07-03 23:56:39 UTC
ok.. 3.4.4 had a few fixes.. and 3.4.5 had one...

I already ran it for a few older and newer versions.

if the fixlibtool script is a part of libtool... then should we dedicate this bug to having fixlibtool run after every gcc update?

or have a "*" option for it so it fixes all of the prior versions of gcc?

I know gentoo isn't an install and forget distro... but there is no reason why it shouldn't be.

(compiling)

fix_libtool_files.sh 3
even had a few fixes...

still does not work for me.

same error!
Comment 23 VitYa 2006-07-05 06:12:39 UTC
I've removed an old gcc version:

emerge --prune gcc

result:

>>> kde-base/kdelibs-3.5.3-r3 merged.

Good luck :)
Comment 24 Aaron Peterson 2006-07-05 10:16:50 UTC
I emerge gcc --pruned and now I get a new error!

/bin/sh ../libtool --silent --tag=CXX --mode=compile i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I. -I../kdecore -I../kio/kssl -I../kjs -I../dcop -I../libltdl -I../kdefx -I../kdecore -I../kdecore -I../kdeui -I../kio -I../kio/kio -I../kio/kfile -I.. -I/usr/qt/3/include -I. -I/usr/kde/3.5/include   -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -march=athlon-xp -O2 -fomit-frame-pointer -Wall -pipe -fno-unit-at-a-time -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -fvisibility=hidden -fvisibility-inlines-hidden  -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION  -c -o libDCOP_la.all_cpp.lo libDCOP_la.all_cpp.cpp
dcopserver.cpp: In constructor 'DCOPServer::DCOPServer(bool)':
dcopserver.cpp:1051: warning: 'dcopServerFileOld' is deprecated (declared at ./dcopclient.h:728)
dcopserver.cpp: In function 'int kdemain(int, char**)':
dcopserver.cpp:1708: warning: 'dcopServerFileOld' is deprecated (declared at ./dcopclient.h:728)
dcopserver.cpp:1711: warning: 'dcopServerFileOld' is deprecated (declared at ./dcopclient.h:728)
./dcopglobal.h:69: warning: 'DCOPServerAuthProcs' defined but not used
/bin/sh ../libtool --silent --tag=CXX --mode=link i686-pc-linux-gnu-g++  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -march=athlon-xp -O2 -fomit-frame-pointer -Wall -pipe -fno-unit-at-a-time -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -fvisibility=hidden -fvisibility-inlines-hidden  -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION    -o libDCOP.la -rpath /usr/kde/3.5/lib -R /usr/kde/3.5/lib -R /usr/kde/3.5/lib -R /usr/qt/3/lib -R /usr/lib -version-info 6:0:2 -no-undefined -Wl,--no-undefined -Wl,--allow-shlib-undefined -L/usr/kde/3.5/lib -L/usr/qt/3/lib -L/usr/lib    libDCOP_la.all_cpp.lo  KDE-ICE/libkICE.la -lqt-mt  -lz -lpng -lz -lm -lXext -lX11  -lSM -lICE -lpthread
i686-pc-linux-gnu-g++: /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/libstdc++.so: No such file or directory
make[4]: *** [libDCOP.la] Error 1
make[4]: Leaving directory `/mnt/sata2/portage_tempdir/portage/kdelibs-3.5.3-r3/work/kdelibs-3.5.3/dcop'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/mnt/sata2/portage_tempdir/portage/kdelibs-3.5.3-r3/work/kdelibs-3.5.3/dcop'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/mnt/sata2/portage_tempdir/portage/kdelibs-3.5.3-r3/work/kdelibs-3.5.3/dcop'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/sata2/portage_tempdir/portage/kdelibs-3.5.3-r3/work/kdelibs-3.5.3'
make: *** [all] Error 2

!!! ERROR: kde-base/kdelibs-3.5.3-r3 failed.
Call stack:
  ebuild.sh, line 1545:   Called dyn_compile
  ebuild.sh, line 940:   Called src_compile
  kdelibs-3.5.3-r3.ebuild, line 123:   Called kde_src_compile
  kde.eclass, line 164:   Called kde_src_compile 'all'
  kde.eclass, line 306:   Called kde_src_compile 'myconf' 'configure' 'make'
  kde.eclass, line 302:   Called die

!!! died running emake, kde_src_compile:make
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 25 Gregorio Guidi (RETIRED) gentoo-dev 2006-07-05 10:46:52 UTC
*** Bug 139237 has been marked as a duplicate of this bug. ***
Comment 26 Aaron Peterson 2006-07-05 11:59:51 UTC
for my latest bugs... I had some symlinks in

/usr/lib/gcc/i686-pc-linux-gnu/

3.4.4 and 3.4.5
that were pointing nowhere...

4.1.1 is the only directory in there now.

and fix_libtool_files.sh did fix some 3.4.4 files after that.

I remerged libstdc++ again...

/usr/lib/libstdc++.la still contains:

# Directory that this library needs to be installed in:
libdir='/usr/lib/gcc/i686-pc-linux-gnu/3.4.4'

which is obviously wrong... 
Comment 27 Aaron Peterson 2006-07-05 19:56:38 UTC
ok.. I manualy edited the libstdc++.la to point to 4.1.1

recompiled kdelibs.. and it worked!

So.. this is a libtool bug.

The fix_libtool_files.sh said it was fixing stuff.. and it wasn't!
Comment 28 Albert Zeyer 2006-07-23 17:18:59 UTC
Got this error (on a PPC, but this should not be relevant in this case):
...
/bin/sh ../../libtool --silent --tag=CXX --mode=link powerpc-unknown-linux-gnu-g++  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe -fno-inline -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION    -o amarokapp -L/usr/kde/3.5/lib -L/usr/qt/3/lib -L/usr/lib    -L/usr/kde/3.5/lib -R /usr/lib -R /usr/kde/3.5/lib -R /usr/qt/3/lib -R /usr/lib -R /usr/kde/3.5/lib main.o ../../amarok/src/amarokcore/libamarokcore.la libamarok.la ../../amarok/src/analyzers/libanalyzers.la ../../amarok/src/plugin/libplugin.la ../../amarok/src/statusbar/libstatusbar.la ../../amarok/src/metadata/libmetadata.la -lkutils -lkio -lkdeui -lkdecore -lkhtml -lknewstuff -L/usr/lib -ltag -lGL  ../../amarok/src/sqlite/libsqlite.la
/usr/kde/3.5/lib/libkhtml.so: undefined reference to `__cxa_get_exception_ptr@CXXABI_1.3.1'
collect2: ld returned 1 exit status
make[4]: *** [amarokapp] Error 1
make[4]: Leaving directory `/var/tmp/portage/amarok-1.4.1-r2/work/amarok-1.4.1/amarok/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/amarok-1.4.1-r2/work/amarok-1.4.1/amarok/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/amarok-1.4.1-r2/work/amarok-1.4.1/amarok'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/amarok-1.4.1-r2/work/amarok-1.4.1'
make: *** [all] Error 2

!!! ERROR: media-sound/amarok-1.4.1-r2 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  amarok-1.4.1-r2.ebuild, line 77:   Called kde_src_compile
  kde.eclass, line 164:   Called kde_src_compile 'all'
  kde.eclass, line 314:   Called kde_src_compile 'myconf' 'configure' 'make'
  kde.eclass, line 310:   Called die

!!! died running emake, kde_src_compile:make
!!! If you need support, post the topmost build error, and the call stack if relevant.



I have the following gcc versions installed:
3.4.4-r1 4.1.1


So I tried the fix_libtool_files.sh script:
ibook ~ # fix_libtool_files.sh 3.4.4
 * Scanning libtool files for hardcoded gcc library paths...
 *   [1/10] Scanning /lib ...
 *   [2/10] Scanning /usr/lib ...
 *     FIXING: /usr/lib/kde3/libk3bflacdecoder.la ...[vl]
 *     FIXING: /usr/lib/xmms/Input/libmp4.la ...[vl]
 *     FIXING: /usr/lib/libid3.la ...[vl]
 *     FIXING: /usr/lib/libaspell.la ...[vl]
 *     FIXING: /usr/lib/libgmpxx.la ...[vl]
 *     FIXING: /usr/lib/enchant/libenchant_aspell.la ...[vl]
 *     FIXING: /usr/lib/enchant/libenchant_myspell.la ...[vl]
 *     FIXING: /usr/lib/enchant/libenchant_ispell.la ...[vl]
 *     FIXING: /usr/lib/libgnashasobjs.la ...[vl]
 *     FIXING: /usr/lib/libcdio++.la ...[vl]
 *     FIXING: /usr/lib/libusbpp.la ...[vl]
 *     FIXING: /usr/lib/libmusicbrainz.la ...[vl]
 *     FIXING: /usr/lib/gedit-2/plugins/libspell.la ...[vl]
 *     FIXING: /usr/lib/libmp4v2.la ...[vl]
 *     FIXING: /usr/lib/libiso9660++.la ...[vl]
 *     FIXING: /usr/lib/libOggFLAC++.la ...[vl]
 *     FIXING: /usr/lib/libgnashbackend.la ...[vl]
 *     FIXING: /usr/lib/libFLAC++.la ...[vl]
 *     FIXING: /usr/lib/libpspell.la ...[vl]
 *     FIXING: /usr/lib/libgnashgeo.la ...[vl]
 *     FIXING: /usr/lib/libgnashserver.la ...[vl]
 *     FIXING: /usr/lib/libgnashbase.la ...[vl]
 *     FIXING: /usr/lib/libfaac.la ...[vl]
 *   [3/10] Scanning //usr//lib/opengl/xorg-x11/lib ...
 *   [4/10] Scanning /opt/ibm-jdk-bin-1.4.2.5/jre/bin ...
 *   [5/10] Scanning /usr/athena/lib ...
 *   [6/10] Scanning /usr/games/lib ...
 *   [7/10] Scanning /usr/kde/3.5/lib ...
 *     FIXING: /usr/kde/3.5/lib/kde3/kspell_aspell.la ...[vl]
 *   [8/10] Scanning /usr/local/lib ...
 *   [9/10] Scanning /usr/powerpc-unknown-linux-gnu/lib ...
 *   [10/10] Scanning /usr/qt/3/lib ...



This did it, it compiles now.
Comment 29 Caleb Tennis (RETIRED) gentoo-dev 2006-07-29 18:04:47 UTC
*** Bug 142135 has been marked as a duplicate of this bug. ***
Comment 30 Jakub Moc (RETIRED) gentoo-dev 2006-08-01 00:51:37 UTC
*** Bug 142382 has been marked as a duplicate of this bug. ***
Comment 31 Jakub Moc (RETIRED) gentoo-dev 2006-08-01 01:05:19 UTC
(In reply to comment #27)
> ok.. I manualy edited the libstdc++.la to point to 4.1.1

Erm, first of all you should not have any libstdc++.la installed w/ gcc-4.1.1. So I assume the ones installed by older gcc versions are the problem here? 
Comment 32 Caleb Tennis (RETIRED) gentoo-dev 2006-08-04 07:57:16 UTC
*** Bug 142749 has been marked as a duplicate of this bug. ***
Comment 33 Jakub Moc (RETIRED) gentoo-dev 2006-08-07 12:52:31 UTC
*** Bug 143130 has been marked as a duplicate of this bug. ***
Comment 34 Jakub Moc (RETIRED) gentoo-dev 2006-08-21 01:53:18 UTC
*** Bug 144608 has been marked as a duplicate of this bug. ***
Comment 35 Jakub Moc (RETIRED) gentoo-dev 2006-09-04 09:25:24 UTC
*** Bug 146127 has been marked as a duplicate of this bug. ***
Comment 36 Cedric Godin 2006-09-04 13:19:50 UTC
just for the records, I had the same problem as comment 18 (kdelibs). Seems that some .so files were not unmerged ( /usr/lib64/libstdc++.so and /usr/lib64/libstdc++.so.6 ) equery didn't linked them to any package. Just deleted them and now kdelibs passed. Redoing my "-e world" now and hoping it will finish :D
Comment 37 Joern P. Meier 2006-09-09 20:19:17 UTC
I encountered this problem when trying to compile Amarok. I first tried recompiling kdelibs and even gcc to no avail. However, fix_libtool_files.sh (with 3.4 - 3.0 as argument) worked for me.
Comment 38 Jakub Moc (RETIRED) gentoo-dev 2006-09-11 10:12:29 UTC
*** Bug 147185 has been marked as a duplicate of this bug. ***
Comment 39 Ioannis Aslanidis (RETIRED) gentoo-dev 2006-09-13 06:53:57 UTC
*** Bug 147434 has been marked as a duplicate of this bug. ***
Comment 40 Jakub Moc (RETIRED) gentoo-dev 2006-09-25 14:17:44 UTC
*** Bug 149116 has been marked as a duplicate of this bug. ***
Comment 41 Matteo Modesti 2006-10-20 09:11:03 UTC
I had the same problem passing from gcc 3.4 to 4.1.

I recompiled virtual/libstdc++, sys-libs/libstdc++-v3 and, to be sure, app-emulation/emul-linux-x86-compat, then did fix_libtool_files.sh for all the previous versions of gcc.

It's compiling now! I'm compiling KDE 3.5.5.
Comment 42 Jakub Moc (RETIRED) gentoo-dev 2006-10-21 23:33:47 UTC
*** Bug 152298 has been marked as a duplicate of this bug. ***
Comment 43 Jakub Moc (RETIRED) gentoo-dev 2006-10-21 23:47:08 UTC
I frankly don't see why is this bug still open. 

- run fix_libtool_files.sh x.y.z (substitute x.y.z for any and all obsolete versions you had/still have installed and that might be causing the problem)

- run emerge -e {system,world} as advised by http://www.gentoo.org/doc/en/gcc-upgrading.xml

- check for any stale junk (symlinks etc.) left over from previous gcc versions

- check for stale .la files orphaned by the stupid fix_libtool_files.sh script

- if it still doesn't fix the problem, unmerge _all_ but the most recent gcc version once the above is complete and try again (portage will emerge virtual/libstdc++ for you if some binary cruft needs an obsolete libstdc++)

For me, this apparently is gcc-mixing issue (as in dupe of Bug 64615); not much that KDE folks could solve here.
Comment 44 Jakub Moc (RETIRED) gentoo-dev 2006-10-23 12:34:08 UTC
*** Bug 152585 has been marked as a duplicate of this bug. ***
Comment 45 Ioannis Aslanidis (RETIRED) gentoo-dev 2006-10-26 06:23:59 UTC
*** Bug 152874 has been marked as a duplicate of this bug. ***
Comment 46 Jakub Moc (RETIRED) gentoo-dev 2006-10-27 03:52:00 UTC
*** Bug 152943 has been marked as a duplicate of this bug. ***
Comment 47 Jakub Moc (RETIRED) gentoo-dev 2006-10-30 23:01:31 UTC
*** Bug 153505 has been marked as a duplicate of this bug. ***
Comment 48 Jakub Moc (RETIRED) gentoo-dev 2006-11-15 04:55:45 UTC
*** Bug 155227 has been marked as a duplicate of this bug. ***
Comment 49 Jakub Moc (RETIRED) gentoo-dev 2006-11-16 13:46:39 UTC
*** Bug 155414 has been marked as a duplicate of this bug. ***
Comment 50 Caleb Tennis (RETIRED) gentoo-dev 2006-11-17 03:55:52 UTC
*** Bug 155467 has been marked as a duplicate of this bug. ***
Comment 51 Jakub Moc (RETIRED) gentoo-dev 2006-11-19 13:30:54 UTC
*** Bug 155714 has been marked as a duplicate of this bug. ***
Comment 52 Caleb Tennis (RETIRED) gentoo-dev 2006-11-21 06:49:54 UTC
*** Bug 155709 has been marked as a duplicate of this bug. ***
Comment 53 Jakub Moc (RETIRED) gentoo-dev 2006-11-26 11:12:04 UTC
*** Bug 156328 has been marked as a duplicate of this bug. ***
Comment 54 Jakub Moc (RETIRED) gentoo-dev 2006-11-27 16:19:04 UTC
*** Bug 156462 has been marked as a duplicate of this bug. ***
Comment 55 Tristan Heaven (RETIRED) gentoo-dev 2006-12-11 18:27:46 UTC
*** Bug 157872 has been marked as a duplicate of this bug. ***
Comment 56 Jakub Moc (RETIRED) gentoo-dev 2006-12-12 09:46:50 UTC
(In reply to comment #43)

Another note: do NOT use sudo to emerge; do a regular su -
Comment 57 Steev Klimaszewski (RETIRED) gentoo-dev 2006-12-12 09:48:48 UTC
I've noticed this issue when having both 3.4.6 and 4.1.1-r1 installed on my system.

steev@sigma ~ % gcc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: /var/tmp/portage/gcc-4.1.1-r1/work/gcc-4.1.1/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.1.1 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/g++-v4 --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --disable-multilib --disable-libmudflap --disable-libssp --disable-libgcj --enable-languages=c,c++,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 4.1.1 (Gentoo 4.1.1-r1)

as a user

root@sigma ~ # gcc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: /var/tmp/portage/gcc-4.1.1-r1/work/gcc-4.1.1/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.1.1 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/g++-v4 --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --disable-multilib --disable-libmudflap --disable-libssp --disable-libgcj --enable-languages=c,c++,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 4.1.1 (Gentoo 4.1.1-r1)

as root

and as sudo gcc -v - I would get 3.4.6 - I unmerged 3.4.6 and now sudo replies with the 4.1.1 as above.  
Comment 58 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-12-16 17:05:10 UTC
Really, why this is still open? The solution is to have a clean system, and possibly only one selected GCC (or you get other failures too).
Comment 59 Jakub Moc (RETIRED) gentoo-dev 2006-12-16 17:08:58 UTC
Reopen to dupe.
Comment 60 Jakub Moc (RETIRED) gentoo-dev 2006-12-16 17:09:16 UTC

*** This bug has been marked as a duplicate of 64615 ***
Comment 61 Jakub Moc (RETIRED) gentoo-dev 2006-12-20 20:53:06 UTC
*** Bug 158693 has been marked as a duplicate of this bug. ***
Comment 62 Jakub Moc (RETIRED) gentoo-dev 2007-01-01 04:03:11 UTC
*** Bug 159612 has been marked as a duplicate of this bug. ***
Comment 63 The Sorcerer 2007-03-10 23:19:37 UTC
this is STILL a bug ...
kdemultimedia depends on libstdc++
libstdc++ ONLY works with gcc-3.3.6-r1 

emerge -p libstdc++  

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  NS   ] sys-devel/gcc-3.3.6-r1  USE="gcj gtk nls (-altivec) -bootstrap -boundschecking -build -doc -fortran (-hardened) -ip28 -ip32r10k (-multilib) -multislot (-n32) (-n64) -nocxx -nopie -nossp -objc -test -vanilla" 
[ebuild   R   ] virtual/libstdc++-3.3

if you unemerge all gcc versions but the last and then use fix_libtool_files.sh you gonna get missing libstdc++ in some gcc-4.1.1 subdirectory, if you make a link there you gonna get bug error, vicious circle

emerging -e world won't solve the problem:

emerge -pve world | grep -i gcc
[ebuild   R   ] sys-kernel/linux-headers-2.6.17-r2  USE="-gcc64" 40,347 kB
[ebuild   R   ] sys-devel/gcc-config-1.3.14  0 kB
[ebuild   R   ] x11-misc/gccmakedep-1.0.2  USE="-debug" 69 kB
[ebuild  NS   ] sys-devel/gcc-3.3.6-r1  USE="gcj gtk nls (-altivec) -bootstrap -boundschecking -build -doc -fortran (-hardened) -ip28 -ip32r10k (-multilib) -multislot (-n32) (-n64) -nocxx -nopie -nossp -objc -test -vanilla" 23,534 kB
[ebuild   R   ] sys-devel/gcc-4.1.1-r3  USE="gcj gtk nls (-altivec) -bootstrap -build -doc -fortran (-hardened) -ip28 -ip32r10k -mudflap (-multilib) -multislot (-n32) (-n64) -nocxx -objc -objc++ -objc-gc -test -vanilla" 38,326 kB


and by the way ... o wow:
emerge -pv kdemultimedia

These are the packages that would be merged, in order:

Calculating dependencies... done!

[ebuild  NS   ] sys-devel/gcc-3.3.6-r1  USE="gcj gtk nls (-altivec) -bootstrap -boundschecking -build -doc -fortran (-hardened) -ip28 -ip32r10k (-multilib) -multislot (-n32) (-n64) -nocxx -nopie -nossp -objc -test -vanilla" 23,534 kB 
[ebuild  NS   ] kde-base/kdemultimedia-3.5.5  USE="alsa arts audiofile encode flac gstreamer mp3 theora vorbis xine -akode -debug -kdeenablefinal -xinerama" 0 kB

and i had a emerge --sync just before all this commands
Comment 64 Jakub Moc (RETIRED) gentoo-dev 2007-03-11 14:26:36 UTC
Re-assign to bug-wrangler to prevent KDE folks being flooded by pointless noise.
Comment 65 Jakub Moc (RETIRED) gentoo-dev 2007-03-11 14:27:06 UTC

*** This bug has been marked as a duplicate of bug 64615 ***
Comment 66 Panagiotis Christopoulos (RETIRED) gentoo-dev 2008-08-16 01:49:29 UTC
*** Bug 234874 has been marked as a duplicate of this bug. ***