| Summary: | emerge kword failed with compiler error | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Andrew <andrew.hunter> |
| Component: | [OLD] KDE | Assignee: | Gentoo KDE team <kde> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | major | CC: | m.labhard |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
Another one: /bin/sh ../../../libtool --silent --mode=link --tag=CXX 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=athlon-xp -pipe -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 libmswordimport.la -rpath /usr/lib/kde3 -module -avoid-version -module -no-undefined -Wl,--no-undefined -Wl,--allow-shlib-undefined -R /usr/lib -R /usr/kde/3.4/lib -R /usr/qt/3/lib -R /usr/lib mswordimport.lo document.lo conversion.lo texthandler.lo tablehandler.lo graphicshandler.lo ../../../lib/kofficeui/libkofficeui.la ../../../lib/kofficecore/libkofficecore.la ../../../lib/store/libkstore.la -L/usr/lib -lwv2 -lgsf-1 -lgobject-2.0 -lxml2 -lpthread -lz -lm -lglib-2.0 .libs/mswordimport.o: In function `MSWordImport::convert(QCString const&, QCString const&)': mswordimport.cpp:(.text+0x9fe): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage' mswordimport.cpp:(.text+0xdfb): undefined reference to `__gnu_cxx::__exchange_and_add(int volatile*, int)' collect2: ld returned 1 exit status make[4]: *** [libmswordimport.la] Error 1 make[4]: Leaving directory `/var/tmp/portage/kword-1.4.2/work/kword-1.4.2/filters/kword/msword' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/var/tmp/portage/kword-1.4.2/work/kword-1.4.2/filters/kword' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/kword-1.4.2/work/kword-1.4.2/filters' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/kword-1.4.2/work/kword-1.4.2' make: *** [all] Error 2 !!! ERROR: app-office/kword-1.4.2 failed. emerge --info: Portage 2.0.51.22-r3 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r2, 2.6.12-gentoo-r4 x86_64) ================================================================= System uname: 2.6.12-gentoo-r4 x86_64 AMD Opteron(tm) Processor 246 Gentoo Base System version 1.6.13 ccache version 2.3 [enabled] dev-lang/python: 2.3.5-r2, 2.4.2 sys-apps/sandbox: 1.2.12 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.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /opt/resin/conf /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/lib64/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2" DISTDIR="/opt/no_archive/portage/distfiles" FEATURES="autoconfig buildpkg ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://gentoo.llarian.net/ ftp://gentoo.llarian.net/pub/gentoo http://gentoo.ccccom.com http://gentoo.osuosl.org/" MAKEOPTS="-j2" PKGDIR="/opt/no_archive/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 X acl alsa arts audiofile avi berkdb bitmap-fonts bzip2 cdr crypt cups curl doc eds emboss encode esd exif expat fam flac foomaticdb fortran gd gdbm gif glut gmp gnome gphoto2 gpm gstreamer gtk gtk2 guile idn imagemagick imlib ipv6 java jpeg junit kde lcms ldap libg++ libwww log4cpp lzw lzw-tiff mad mhash mikmod mng motif mozilla mp3 mpeg mysql nas ncurses nls ogg opengl pam pcre pdflib perl plotutils png postgres python qt quicktime readline ruby sdl slang spell ssl svg tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts udev usb userlocales vorbis wxwindows xine xinerama xml2 xmms xpm xv xvid zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS The second error is bug 69475. The original error could definitely be caused by the Samsung driver as reported here: http://forums.gentoo.org/viewtopic-t-357360.html Please try without that driver. On my machine, at least, this does not look like a samsung problem: Error: /bin/sh ../../../libtool --silent --mode=compile --tag=CXX i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I. -I../../../lib/kofficeui -I../../../lib/kofficeui -I../../../lib/kofficecore -I../../../lib/kofficecore -I../../../lib/store -I../../../lib/store -I../../../lib/kwmf -I../../../lib/kwmf -I/usr/include -I/usr/include/libgsf-1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/kde/3.4/include -I/usr/qt/3/include -I. -I/usr/kde/3.4/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 -O2 -march=athlon-xp -pipe -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 -c -o graphicshandler.lo `test -f 'graphicshandler.cpp' || echo './'`graphicshandler.cpp /bin/sh ../../../libtool --silent --mode=link --tag=CXX 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=athlon-xp -pipe -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 libmswordimport.la -rpath /usr/lib/kde3 -module -avoid-version -module -no-undefined -Wl,--no-undefined -Wl,--allow-shlib-undefined -R /usr/lib -R /usr/kde/3.4/lib -R /usr/qt/3/lib -R /usr/lib -R /usr/kde/3.4/lib mswordimport.lo document.lo conversion.lo texthandler.lo tablehandler.lo graphicshandler.lo ../../../lib/kofficeui/libkofficeui.la ../../../lib/kofficecore/libkofficecore.la ../../../lib/store/libkstore.la -L/usr/lib -lwv2 -lgsf-1 -lgobject-2.0 -lxml2 -lpthread -lz -lm -lglib-2.0 .libs/mswordimport.o: In function `MSWordImport::convert(QCString const&, QCString const&)': mswordimport.cpp:(.text+0x9fe): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage' mswordimport.cpp:(.text+0xdfb): undefined reference to `__gnu_cxx::__exchange_and_add(int volatile*, int)' collect2: ld returned 1 exit status make[4]: *** [libmswordimport.la] Error 1 make[4]: Leaving directory `/var/tmp/portage/kword-1.4.2-r6/work/kword-1.4.2/filters/kword/msword' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/var/tmp/portage/kword-1.4.2-r6/work/kword-1.4.2/filters/kword' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/kword-1.4.2-r6/work/kword-1.4.2/filters' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/kword-1.4.2-r6/work/kword-1.4.2' make: *** [all] Error 2 !!! ERROR: app-office/kword-1.4.2-r6 failed. !!! Function kde_src_compile, Line 226, Exitcode 2 !!! died running emake, kde_src_compile:make !!! If you need support, post the topmost build error, NOT this status message. coyote ~ # ls /usr/lib/libqt* ls: /usr/lib/libqt*: No such file or directory coyote ~ # ls /usr/local/bin/ coyote ~ # emerge --info Portage 2.0.54 (default-linux/x86/2005.1, gcc-3.4.5, glibc-2.3.5-r3, 2.6.12-gentoo-r10 i686) ================================================================= System uname: 2.6.12-gentoo-r10 i686 AMD Athlon(tm) MP 2200+ Gentoo Base System version 1.6.14 dev-lang/python: 2.3.5-r2, 2.4.2 sys-apps/sandbox: 1.2.12 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 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-xp -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /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/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon-xp -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.osuosl.org/" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" USE="x86 X alsa apm arts audiofile avi berkdb bitmap-fonts bzip2 cdr crypt cups curl doc dri eds emboss encode expat fam foomaticdb fortran gd gdbm gif gnome gpm gstreamer gtk gtk2 idn imagemagick imlib ipv6 isdnlog java jpeg kde lcms libg++ libwww log4cpp mad mhash mikmod mng motif mozilla mp3 mpeg multiline nas ncurses nls ntpl ogg oggvorbis opengl oss pam pcre pdflib perl plotutils png postgres pppd python qt quicktime readline sdl spell ssl svg tcltk tcpd tiff truetype truetype-fonts type1-fonts udev usb vorbis wxwindows xinerama xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY (In reply to comment #3) > On my machine, at least, this does not look like a samsung problem: As Gregorio said, see bug 64615. Andrew, is this still an issue? Did you try without the driver installed? . |
Attempt to install kword with "emerge kword" crashes with the following output. /bin/sh ../../libtool --silent --mode=compile --tag=CXX i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../lib/kofficecore -I../../lib/kofficecore -I../../lib/kofficeui -I../../lib/kofficeui -I../../lib/store -I../../lib/store -I/usr/kde/3.4/include -I/usr/qt/3/include -I. -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -O2 -march=athlon-xp -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -fexceptions -c -o koChangeCaseDia.lo `test -f 'koChangeCaseDia.cc' || echo './'`koChangeCaseDia.cc In file included from kovariable.cc:23: timeformatwidget_impl.h:6: error: syntax error before `{' token timeformatwidget_impl.h:7: error: virtual outside class declaration timeformatwidget_impl.h:7: error: non-member function `const char* className()' cannot have `const' method qualifier timeformatwidget_impl.h:7: error: virtual outside class declaration timeformatwidget_impl.h:7: error: virtual outside class declaration timeformatwidget_impl.h:7: error: virtual outside class declaration timeformatwidget_impl.h:7: error: virtual outside class declaration timeformatwidget_impl.h: In function `QObject* qObject()': timeformatwidget_impl.h:7: error: invalid use of `this' in non-member function timeformatwidget_impl.h: At global scope: timeformatwidget_impl.h:7: error: syntax error before `private' timeformatwidget_impl.h:11: error: destructors must be member functions timeformatwidget_impl.h:14: error: syntax error before `public' timeformatwidget_impl.h:20: error: syntax error before `}' token In file included from kovariable.cc:24: dateformatwidget_impl.h:6: error: syntax error before `{' token dateformatwidget_impl.h:7: error: virtual outside class declaration dateformatwidget_impl.h:7: error: non-member function `const char* className()' cannot have `const' method qualifier dateformatwidget_impl.h:7: error: virtual outside class declaration dateformatwidget_impl.h:7: error: virtual outside class declaration dateformatwidget_impl.h:7: error: virtual outside class declaration dateformatwidget_impl.h:7: error: virtual outside class declaration dateformatwidget_impl.h: In function `QObject* qObject()': dateformatwidget_impl.h:7: error: redefinition of `QObject* qObject()' timeformatwidget_impl.h:7: error: `QObject* qObject()' previously defined here dateformatwidget_impl.h:7: error: redefinition of `QObject* qObject()' timeformatwidget_impl.h:7: error: `QObject* qObject()' previously defined here dateformatwidget_impl.h:7: error: invalid use of `this' in non-member function dateformatwidget_impl.h: At global scope: Reproducible: Always Steps to Reproduce: 1. emerge kword 2. wait and see 3. Actual Results: Emerge fails Expected Results: Compile and install kword I have installed the non-GPL Samsung SCX-4100 drivers. Could this be related?