| Summary: | kde-base/kdelibs-3.5.5-r9 refuse to compile - libkdefx.so.4:undefined symbol: _ZN12QPaintDevice13setResolutionEi | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Wai Ling <simotsa> |
| Component: | [OLD] KDE | Assignee: | Gentoo KDE team <kde> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | major | CC: | centic, d0wnsp0ut, jakub |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: |
kdelibs-3.5.5-r9 error messages
/var/log/portage/kde-base:kdelibs-3.5.5-r10:20070809-145708.log |
||
|
Description
Wai Ling
2007-03-19 02:27:22 UTC
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 *** |