kdelibs-3.5.5-r9 would not compile due to undefined symbol error. I am currently using KDE 3.5.2 with QT3, with the latest stable GCC (4.1.1). Please find attached for the full error log. Reproducible: Always Steps to Reproduce: 1.emerge kdelibs 2. 3. Here's the revelant error message: make[2]: Entering directory `/var/portage/portage/kdelibs-3.5.5-r9/work/kdelibs-3.5.5/dnssd' ../kdecore/kconfig_compiler/kconfig_compiler ./kcm_kdnssd.kcfg ./settings.kcfgc; ret=$?; \ if test "$ret" != 0; then rm -f settings.h ; exit $ret ; fi /var/portage/portage/kdelibs-3.5.5-r9/work/kdelibs-3.5.5/kdecore/kconfig_compiler/.libs/lt-kconfig_compiler: symbol lookup error: /var/portage/portage/kdelibs-3.5.5-r9/work/kdelibs-3.5.5/kdefx/.libs/libkdefx.so.4: undefined symbol: _ZN12QPaintDevice13setResolutionEi make[2]: *** [settings.h] Error 127 make[2]: Leaving directory `/var/portage/portage/kdelibs-3.5.5-r9/work/kdelibs-3.5.5/dnssd' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/portage/portage/kdelibs-3.5.5-r9/work/kdelibs-3.5.5' make: *** [all] Error 2 Here's my emerge info: Portage 2.1.1 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.3.6-r4, 2.6.17-hardened-r1 i686) ================================================================= System uname: 2.6.17-hardened-r1 i686 AMD Athlon(tm) Processor Gentoo Base System version 1.6.15 Last Sync: Thu, 15 Mar 2007 11:30:01 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] app-admin/eselect-compiler: [Not Present] dev-java/java-config: 1.3.7, 2.0.30 dev-lang/python: 2.3.5-r3, 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.3 dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.13-r2 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r5 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=i686 -mtune=athlon -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-O2 -march=i686 -mtune=athlon -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LDFLAGS="-Wl,-O1" LINGUAS="en zh_TW" 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/portage" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage /usr/local/portage-xgl /usr/local/got /usr/local/proaudio /usr/local/portage-kpex" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowext X acpi alsa alsa_cards_ali5451 alsa_cards_als4000 alsa_cards_atiixp alsa_cards_atiixp-modem alsa_cards_bt87x alsa_cards_ca0106 alsa_cards_cmipci alsa_cards_emu10k1 alsa_cards_emu10k1x alsa_cards_ens1370 alsa_cards_ens1371 alsa_cards_es1938 alsa_cards_es1968 alsa_cards_fm801 alsa_cards_hda-intel alsa_cards_intel8x0 alsa_cards_intel8x0m alsa_cards_maestro3 alsa_cards_trident alsa_cards_usb-audio alsa_cards_via82xx alsa_cards_via82xx-modem alsa_cards_ymfpci alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol apache2 apm berkdb bitmap-fonts cairo cjk cli cracklib crypt cups dga divx4linux dri dvd dvdr elibc_glibc emboss encode fastcgi flac font-server foo2zjs_devices_hp1020 foomaticdb fortran gif gimp gimpprint glitz gphoto2 gpm gstreamer gtk gtk2 hal iconv imlib input_devices_joystick input_devices_keyboard input_devices_mouse input_devices_wacom ipv6 isdnlog jack java jpeg kde kdehiddenvisibility kernel_linux kipi ladcca lash latex lcd_devices_bayrad lcd_devices_cfontz lcd_devices_cfontz633 lcd_devices_glk lcd_devices_hd44780 lcd_devices_lb216 lcd_devices_lcdm001 lcd_devices_mtxorb lcd_devices_ncurses lcd_devices_text lcms libg++ libwww linguas_en linguas_zh_TW lm_sensors mad matroska midi mikmod mmap mmx motif mozilla mp3 mpeg ncurses nls nptl ogg opengl pam pcre perl png ppds pppd python qt qt3 quicktime radeon readline reflection samba sdl session sndfile spell spl sqlite3 sse ssl svg svga tcltk tcpd theora threads tiff truetype truetype-fonts type1-fonts unicode usb userland_GNU video_cards_fbdev video_cards_radeon video_cards_v41 video_cards_vesa video_cards_vga vorbis wmf x264 xcomposite xml xml2 xorg xscreensaver xv xvid zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 113750 [details] kdelibs-3.5.5-r9 error messages
The missing symbol translates to QPaintDevice::setResolution(int) which indicates this to be missing in the qt-library where it usually should be. Can you try to re-emerge qt and then try again?
Hi, I recompiled qt and tried again, but I got a different error message. /bin/sh ../libtool --silent --tag=CXX --mode=compile i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../dcop -I../kdecore -I../kio/kssl -I../kjs -I../kdefx -I../interfaces -I../dcop -I../libltd l -I../kdefx -I../kdecore -I../kdecore -I../kdecore/network -I../kdeui -I../kio -I../kio/kio -I../k io/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-subs cripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -march=i686 -mtune=athlon -pipe -Wforma t-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-com mon -fvisibility=hidden -fvisibility-inlines-hidden -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_N O_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -c -o kshortcutdialog.lo kshortcutdialog.cpp kshortcutdialog.cpp: In constructor ‘KShortcutDialog::KShortcutDialog(const KShortcut&, bool, QWidg et*, const char*)’: kshortcutdialog.cpp:78: error: invalid use of undefined type ‘struct KShortcutDialogSimple’ kshortcutdialog.h:28: error: forward declaration of ‘struct KShortcutDialogSimple’ kshortcutdialog.cpp:80: error: invalid use of undefined type ‘struct KShortcutDialogAdvanced’ kshortcutdialog.h:29: error: forward declaration of ‘struct KShortcutDialogAdvanced’ kshortcutdialog.cpp:81: error: invalid use of undefined type ‘struct KShortcutDialogAdvanced’ kshortcutdialog.h:29: error: forward declaration of ‘struct KShortcutDialogAdvanced’ ... kshortcutdialog.h:29: error: forward declaration of ‘struct KShortcutDialogAdvanced’ make[3]: *** [kshortcutdialog.lo] Error 1 make[3]: Leaving directory `/var/portage/portage/kdelibs-3.5.5-r9/work/kdelibs-3.5.5/kdeui' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/portage/portage/kdelibs-3.5.5-r9/work/kdelibs-3.5.5/kdeui' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/portage/portage/kdelibs-3.5.5-r9/work/kdelibs-3.5.5' make: *** [all] Error 2 !!! ERROR: kde-base/kdelibs-3.5.5-r9 failed. Call stack: ebuild.sh, line 1546: Called dyn_compile ebuild.sh, line 937: Called src_compile kdelibs-3.5.5-r9.ebuild, line 160: Called kde_src_compile kde.eclass, line 171: Called kde_src_compile 'all' kde.eclass, line 341: Called kde_src_compile 'myconf' 'configure' 'make' kde.eclass, line 337: Called die !!! died running emake, kde_src_compile:make !!! If you need support, post the topmost build error, and the call stack if relevant.
try it with MAKEOPTS="-j1". I think parallel make is killing you here
Tried emerging kde-base/kdelibs = failed. Used MAKEOPTS="-j1" in /etc/make.conf !!! ERROR: kde-base/kdelibs-3.5.5-r9 failed. Call stack: ebuild.sh, line 1614: Called dyn_compile ebuild.sh, line 971: Called qa_call 'src_compile' environment, line 4739: Called src_compile kdelibs-3.5.5-r9.ebuild, line 160: Called kde_src_compile kde.eclass, line 170: Called kde_src_compile 'all' kde.eclass, line 340: Called kde_src_compile 'myconf' 'configure' 'make' kde.eclass, line 336: Called die Top-most error: /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 -O2 -march=pentium3 -fomit-frame-pointer -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 libartskde.la -rpath /usr/kde/3.5/lib -L/usr/kde/3.5/lib -L/usr/qt/3/lib -L/usr/lib -no-undefined -Wl,--no-undefined -Wl,--allow-shlib-undefined -version-info 3:0:2 artskde.lo kioinputstream_impl.lo kplayobject.lo kplayobjectfactory.lo kartsfloatwatch.lo kartsdispatcher.lo kaudiorecordstream.lo kaudioplaystream.lo kartsserver.lo kdatarequest_impl.lo kaudioconverter.lo kvideowidget.lo kplayobjectcreator.lo kaudiomanagerplay.lo ../../kio/libkio.la -lqtmcop -lsoundserver_idl .libs/artskde.o: In function `Arts::KIOInputStream_base::_fromReference(Arts::ObjectReference, bool)': artskde.cc:(.text+0x1a1b): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage' artskde.cc:(.text+0x1b24): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage' [...] My emerge --info: Portage 2.1.2.2 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.5-r0, 2.6.19-gentoo-r5 i686) ================================================================= System uname: 2.6.19-gentoo-r5 i686 Pentium III (Coppermine) Gentoo Base System release 1.12.9 Timestamp of tree: Mon, 26 Mar 2007 14:00:06 +0000 dev-lang/python: 2.3.5-r3, 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.14 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/share/X11/xkb" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -march=pentium3 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" MAKEOPTS="-j1" PKGDIR="/opt/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 --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X alsa apache2 apm arts berkdb bitmap-fonts bzip2 cli cracklib crypt cups curl dri eds emboss encode esd expat fam foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 iconv imlib ipv6 isdnlog jpeg kde libg++ libwww mad midi mikmod mmap motif mp3 mpeg ncurses nls nptl nptlonly ogg opengl oss pam pcre perl png pppd python qt3 qt4 quicktime readline reflection sdl session sockets spell spl ssl svga sysvipc tcpd truetype truetype-fonts type1-fonts unicode v4l vorbis x86 xml xml2 xmlrpc xorg xsl xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nv vesa fbdev" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
I used -j1, and the old error returns. Making all in dnssd make[2]: Entering directory `/var/portage/portage/kdelibs-3.5.5-r10/work/kdelibs-3.5.5/dnssd' ../kdecore/kconfig_compiler/kconfig_compiler ./kcm_kdnssd.kcfg ./settings.kcfgc; ret=$?; \ if test "$ret" != 0; then rm -f settings.h ; exit $ret ; fi /var/portage/portage/kdelibs-3.5.5-r10/work/kdelibs-3.5.5/kdecore/kconfig_compiler/.libs/lt-kconfig_compiler: symbol lookup error: /var/portage/portage/kdelibs-3.5.5-r10/work/kdelibs-3.5.5/kdefx/.libs/libkdefx.so.4: undefined symbol: _ZN12QPaintDev ice13setResolutionEi make[2]: *** [settings.h] Error 127 make[2]: Leaving directory `/var/portage/portage/kdelibs-3.5.5-r10/work/kdelibs-3.5.5/dnssd' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/portage/portage/kdelibs-3.5.5-r10/work/kdelibs-3.5.5' make: *** [all] Error 2 !!! ERROR: kde-base/kdelibs-3.5.5-r10 failed. Is it because I have LD_LIBRARY_PATH="/usr/qt/3/lib" in my environment? But uic will fail if I don't have that PATH.
What is the output of `ldd /var/portage/portage/kdelibs-3.5.5-r10/work/kdelibs-3.5.5/kdefx/.libs/libkdefx.so.4 | grep wt` ?
I did an emerge --sync this morning (6 April 2007) and tried to emerge kdelibs 3.5.5-r10. Build error: /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 -O2 -march=pentium3 -fomit-frame-pointer -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 libartskde.la -rpath /usr/kde/3.5/lib -L/usr/kde/3.5/lib -L/usr/qt/3/lib -L/usr/lib -no-undefined -Wl,--no-undefined -Wl,--allow-shlib-undefined -version-info 3:0:2 artskde.lo kioinputstream_impl.lo kplayobject.lo kplayobjectfactory.lo kartsfloatwatch.lo kartsdispatcher.lo kaudiorecordstream.lo kaudioplaystream.lo kartsserver.lo kdatarequest_impl.lo kaudioconverter.lo kvideowidget.lo kplayobjectcreator.lo kaudiomanagerplay.lo ../../kio/libkio.la -lqtmcop -lsoundserver_idl .libs/artskde.o: In function `Arts::KIOInputStream_base::_fromReference(Arts::ObjectReference, bool)': artskde.cc:(.text+0x1a1b): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage' artskde.cc:(.text+0x1b24): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage' # cd /var/tmp/portage/kde-base/kdelibs-3.5.5-r10/work/kdelibs-3.5.5/kdefx/.libs # ldd libkdefx.so.4.2.0 linux-gate.so.1 => (0xffffe000) libqt-mt.so.3 => /usr/qt/3/lib/libqt-mt.so.3 (0xb785e000) libmng.so.1 => /usr/lib/libmng.so.1 (0xb77ff000) libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xb77e0000) libXi.so.6 => /usr/lib/libXi.so.6 (0xb77d8000) libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0xb77d4000) libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0xb77c9000) libXft.so.2 => /usr/lib/libXft.so.2 (0xb77b6000) libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb7747000) libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb771c000) libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb76f9000) libz.so.1 => /lib/libz.so.1 (0xb76d4000) libXext.so.6 => /usr/lib/libXext.so.6 (0xb76c5000) libSM.so.6 => /usr/lib/libSM.so.6 (0xb76bc000) libICE.so.6 => /usr/lib/libICE.so.6 (0xb76a4000) libpthread.so.0 => /lib/libpthread.so.0 (0xb768d000) libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb7684000) libX11.so.6 => /usr/lib/libX11.so.6 (0xb7590000) libXau.so.6 => /usr/lib/libXau.so.6 (0xb758c000) libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb7587000) libdl.so.2 => /lib/libdl.so.2 (0xb7583000) libstdc++.so.6 => /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/libstdc++.so.6 (0xb74a2000) libm.so.6 => /lib/libm.so.6 (0xb747d000) libc.so.6 => /lib/libc.so.6 (0xb7354000) libgcc_s.so.1 => /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/libgcc_s.so.1 (0xb7348000) libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0xb7343000) libxml2.so.2 => /usr/lib/libxml2.so.2 (0xb7228000) /lib/ld-linux.so.2 (0x80000000) a grep for wt returned nothing.
That was a typo, meant 'qt' of course, but please don't spam this bug report, Jeff your problem is bug 64615.
Wai, is this still a problem for you?
Please reopen if this is still an issue for you.
Created attachment 127370 [details] /var/log/portage/kde-base:kdelibs-3.5.5-r10:20070809-145708.log
Yes. This is still a problem. I tried 3.5.5-r10, but it still wouldn't compile. I recompiled QT3, and even tried setting QTDIR and LDPATH to /usr/qt/3, but it doesn't work. make[3]: Leaving directory `/var/portage/portage/kde-base/kdelibs-3.5.5-r10/work/kdelibs-3.5.5/arts/knotify' make[3]: Entering directory `/var/portage/portage/kde-base/kdelibs-3.5.5-r10/work/kdelibs-3.5.5/arts' make[3]: Nothing to be done for `all-am'. make[3]: Leaving directory `/var/portage/portage/kde-base/kdelibs-3.5.5-r10/work/kdelibs-3.5.5/arts' make[2]: Leaving directory `/var/portage/portage/kde-base/kdelibs-3.5.5-r10/work/kdelibs-3.5.5/arts' Making all in dnssd make[2]: Entering directory `/var/portage/portage/kde-base/kdelibs-3.5.5-r10/work/kdelibs-3.5.5/dnssd' ../kdecore/kconfig_compiler/kconfig_compiler ./kcm_kdnssd.kcfg ./settings.kcfgc; ret=$?; \ if test "$ret" != 0; then rm -f settings.h ; exit $ret ; fi /var/portage/portage/kde-base/kdelibs-3.5.5-r10/work/kdelibs-3.5.5/kdecore/kconfig_compiler/.libs/lt-kconfig_compiler: symbol lookup error: /var/portage/portage/kde-base/kdelibs-3.5.5-r10/work/kdelibs-3.5.5/kdefx/.libs/libkdefx.so.4: undefined symbol: _ZN12QPaintDevice13setResolutionEi make[2]: *** [settings.h] Error 127 make[2]: Leaving directory `/var/portage/portage/kde-base/kdelibs-3.5.5-r10/work/kdelibs-3.5.5/dnssd' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/portage/portage/kde-base/kdelibs-3.5.5-r10/work/kdelibs-3.5.5' make: *** [all] Error 2 !!! ERROR: kde-base/kdelibs-3.5.5-r10 failed. Call stack: ebuild.sh, line 1632: Called dyn_compile ebuild.sh, line 983: Called qa_call 'src_compile' ebuild.sh, line 44: Called src_compile kdelibs-3.5.5-r10.ebuild, line 165: Called kde_src_compile kde.eclass, line 170: Called kde_src_compile 'all' kde.eclass, line 340: Called kde_src_compile 'myconf' 'configure' 'make' kde.eclass, line 336: Called die !!! died running emake, kde_src_compile:make !!! If you need support, post the topmost build error, and the call stack if relevant. !!! A complete build log is located at '/var/log/portage/kde-base:kdelibs-3.5.5-r10:20070809-145708.log'.
Are you sure your problem isn't caused by mixing different gcc versions as suggested on comment #9 by Carlo?
Who is Carlo? I don't see any comments about gcc. I only have one version of gcc installed since months ago. Recompiling the entire system is not feasible either because most of the packages are outdated and the patchsets cannot be downloaded anymore. I don't think I should format my computer just to get kdelibs compile (which by itself will take a few days, recompiling everything takes a few weeks), so there must be a way to figure out which package is causing the problem.
Oh, I found Carlo (Carsten Lohrke). Sorry about the delay, I missed Carsten's comments. The output of "ldd libkdefx.so.4 | grep qt" is: libqt-mt.so.3 => /usr/qt/3/lib/libqt-mt.so.3 Thanks.
(In reply to comment #0) > Here's my emerge info: > Portage 2.1.1 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.3.6-r4, > 2.6.17-hardened-r1 i686) > ================================================================= > System uname: 2.6.17-hardened-r1 i686 AMD Athlon(tm) Processor > ccache version 2.3 [enabled] > dev-util/ccache: 2.3 > ACCEPT_KEYWORDS="x86" > CBUILD="i686-pc-linux-gnu" > CFLAGS="-O2 -march=i686 -mtune=athlon -pipe" > CHOST="i686-pc-linux-gnu" > CXXFLAGS="-O2 -march=i686 -mtune=athlon -pipe" > FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict" > LDFLAGS="-Wl,-O1" > USE="x86 3dnow 3dnowext X acpi alsa ... kde kdehiddenvisibility ... nls nptl Do you still have the above in your emerge --info? If so, you should start by removing the kdehiddenvisibility use flag and disabling ccache before trying to emerge again. Your profile is becoming very old, so you should update it to the 2007.0 profile. A small tip to save you compile time is to add the nptlonly use flag so that you only build glibc once (nptl and no linuxthreads) and to include in your make.conf ALSA_CARDS so that you don't build the support for all cards. To check the gcc versions, try running the following: strings -a /usr/qt/3/lib64/libqt*.so* | grep -i gcc strings -a /usr/kde/3.5/bin/* | grep -i gcc
To find out the gcc version you used to build qt and kdelibs, run the following instead: bzcat /var/db/pkg/x11-libs/qt-<version>/environment.bz2 | sed -n '/PATH/s:.*/gcc-bin/\([^:]*\).*:\1:pg' bzcat /var/db/pkg/kde-base/kdelibs-<version>/environment.bz2 | sed -n '/PATH/s:.*/gcc-bin/\([^:]*\).*:\1:pg'
(In reply to comment #17) > Do you still have the above in your emerge --info? If so, you should start by > removing the kdehiddenvisibility use flag and disabling ccache before trying to > emerge again. Your profile is becoming very old, so you should update it to the > 2007.0 profile. > A small tip to save you compile time is to add the nptlonly use flag so that > you only build glibc once (nptl and no linuxthreads) and to include in your > make.conf ALSA_CARDS so that you don't build the support for all cards. > > To check the gcc versions, try running the following: > strings -a /usr/qt/3/lib64/libqt*.so* | grep -i gcc > strings -a /usr/kde/3.5/bin/* | grep -i gcc > strings -a ... returns GCC 4.1.1-r3 as expected. I've tried with kdehiddenvisibility removed and it didn't affect the compilation. I will try to recompile kdelibs with nptlonly without ccache.
I wouldn't waste any time on 3.5.5 anymore. 3.5.7 is probably going stable on x86 tonight.
I tried compiling kdelibs with distcc. Both kdelibs 3.5.5 and 3.5.7 fails with the same error. I guess I have to format my computer afterall.
Upgrade your binutils to 2.17 at least before trying anything again.
Unreproducible, suppose local toolchain problem...
okay, I will upgrade my binutils and try again. Thanks for the suggestion.
Upgrading binutils doesn't help >_<. I will compile kdelibs on another machine and install the binary version instead.
Did you install Samsung printer drivers on this box by chance? :)
(In reply to comment #26) > Did you install Samsung printer drivers on this box by chance? :) > Yes. I did. Can printer driver affect kdelibs?
(In reply to comment #27) > Yes. I did. Can printer driver affect kdelibs? Yes. It's breaks QT3, overwriting its libs by bundled broken junk.
*** This bug has been marked as a duplicate of bug 144185 ***