'emerge potracegui' fails with: ... MainWidgetBase.cpp:(.text+0x83b1): undefined reference to `QGridLayout::addWidget(QWidget*, int, int, int)' MainWidgetBase.cpp:(.text+0x83db): undefined reference to `KDoubleNumInput::KDoubleNumInput(QWidget*, char const*)' MainWidgetBase.cpp:(.text+0x8421): undefined reference to `QGridLayout::addWidget(QWidget*, int, int, int)' MainWidgetBase.cpp:(.text+0x8453): undefined reference to `QLabel::QLabel(QWidget*, char const*, unsigned int)' MainWidgetBase.cpp:(.text+0x84cc): undefined reference to `QGridLayout::addWidget(QWidget*, int, int, int)' ... MainWidgetBase.o:(.data.rel.ro+0x34): undefined reference to `static_QUType_QString' collect2: ld returned 1 exit status make[2]: *** [potracegui] Error 1 Reproducible: Always root@tarantel:/root(35)# emerge --info Portage 2.1.6.7 (hardened/linux/x86, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.29-rc3 i686) ================================================================= System uname: Linux-2.6.29-rc3-i686-AMD_Athlon-tm-_Processor-with-glibc2.1.3 Timestamp of tree: Sat, 28 Feb 2009 00:05:01 +0000 distcc 3.1 i686-pc-linux-gnu [disabled] ccache version 2.4 [disabled] app-shells/bash: 3.2_p48-r1 dev-java/java-config: 1.3.7-r1, 2.1.7 dev-lang/python: 2.4.4-r15, 2.5.4-r2 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r8 dev-util/cmake: 2.6.2-r1 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.4.3-r1 sys-apps/sandbox: 1.3.8 sys-devel/autoconf: 2.13, 2.63 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.2 sys-devel/binutils: 2.19.1 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.28-r1 ACCEPT_KEYWORDS="x86 ~x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon -fomit-frame-pointer" 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/config /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /e tc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /e tc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -march=athlon -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" FFLAGS="-O2 -march=athlon -fomit-frame-pointer" GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror http://ftp-stud.fht-esslingen.de/pub/Mirrors/gent oo/ rsync://ftp.fi.muni.cz/pub/linux/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo rsync://gd.tuwien.ac.at/opsys/li nux/gentoo ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo http://gento o.oregonstate.edu http://212.219.247.17/sites/www.ibiblio.org/gentoo/ ftp://ftp6.uni-erlangen.de/pub/mirrors/gentoo http:// ftp6.uni-erlangen.de/pub/mirrors/gentoo ftp://vlaai.snt.ipv6.utwente.nl/pub/os/linux/gentoo/ http://www.gigaload.org/gentoo .org/" LDFLAGS="-Wl,-O1" LINGUAS="de fr" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --tim eout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage/layman/zugaina /usr/local/portage/layman/java-overlay /usr/local/portage/layman/science /usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3dnowext X Xaw3d a52 aac acl acpi administrator afs aiglx alsa amrr ao aotuv apache2 asf atlas auctex audacious audiofile automount bash-completion beagle berkdb bjam blas bluetooth bonobo boo boost bzip2 c++ cairo cdda cddb cdf cdio c dparanoia cdr cgi chm cli corba cracklib cran crypt curl cxx daap dbus device-mapper dga dia divx djvu dlloader dmi doc dri ds3490 dv dvb dvd dvdr dvi dxr3 dynagraph eds effects elf emacs emboss encode epiphany esd evo examples exif expat extra f am fame ffmpeg fftw firefox fits flac fltk foomaticdb fpx galago gd gdal geos gif gimp gimpprint ginac glade glib glitz gml gmp gnokii gnome gnuplot gnutls gphoto2 graphics graphviz gs gsl gsm gstreamer gtk guile hal hardened harness hddtemp hdf hdf5 hlapi http iconv icq icu id3 ide imagemagick imap innodb irda irmc isdnlog ithreads jabber java jbig john jpeg jpeg2k kde4 kerberos kexi keyring ladspa lame lapack latex lcms ldap libffi libgda libsamplerate lirc lm_sensors lua lzo lzw mad m aildir mailwrapper math matroska midi mmx mmxext mng mod mono motif mozdevelop mozilla mozsvg mozxmlterm mp3 mp4 mp4live mp eg mpeg2 mplayer mudflap musicbrainz mysql mysqli nautilus ncurses neXt netcdf netpbm network networkmanager nfs nntp nptl nptlonly nsplugin ntfs numarray numeric obex ocaml octave odbc ogdi ogg ole opengl openmp pam pcre pda pdf perl pic plotuti ls plugins png posix postgres postscript pppd preview-latex proj projectx pstricks python qhull quicktime readline reflecti on reiserfs rhythmbox rle rpc rrdcgi rrdtool samba sasl science sdl session slang slp sndfile snmp soup sox speex spell spl sqlite ssl stlport subtitles subversion suexec svg sysfs t1lib tcl tcpd tex theora threads thunderbird tidy tiff tk truety pe unicode urandom userlocales utempter v4l2 vorbis webkit win32codecs wmf wxwindows x86 xattr xcb xemacs xext xine xml xml reader xmlrpc xorg xpm xulrunner xv xvid xvmc zlib zvbi" ALSA_CARDS="via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix d share dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route s hare shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_ file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd defl ate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status uniq ue_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse " KERNEL="linux" LCD_DEVICE S="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de fr" NETBEANS_MODULES="ide websvccommo n nb harness apisupport groovy gsf j2ee java xml" USERLAND="GNU" VIDEO_CARDS="ati vesa" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTA GE_RSYNC_EXTRA_OPTS
Created attachment 183490 [details] /var/tmp/portage/media-gfx/potracegui-1.3.4-r1/temp/build.log
Same problem here. Same as bug 255046. -r1 version didn't fix it!
Any news?
Linking works fine if all occurrences of /usr/lib are removed from the library search path. I assume the linker picks up the wrong version of libkdecore (and maybe other KDE libraries): it uses the library from /usr/lib instead of the KDE 3.5 library from /usr/kde/3.5/lib.
On a system where kde-base/kdelibs:4.2 is not installed, but only kde-base/kdelibs-3.5.10-r6 is, media-gfx/potracegui-1.3.4-r1 can be emerged without problems.
It is a dead kde3 project. Last release from 2005. I think, it is better to remove it from portage. Inkspace is already capable what this package does.
Created attachment 198679 [details, diff] Patch to work around the linking problem
Created attachment 198681 [details, diff] Patch for the ebuild file (potracegui-1.3.4-r1.ebuild to potracegui-1.3.4-r2.ebuild) to include the linking patch
On my system, the attached patches fix this problem. I haven’t looked deeply into it, but this is probably a bug/misconception in the build system or a general problem of conflicting library names. I’d say, that all_libraries should only include non-system library search directories. If someone comes up with a better patch, they’re welcome. :-)
Nico, your patch works for me (on x86). Thanks!
Thanks Nico. Your patches work on my ~amd64, too.
Hey Nico, the patch does not work for me. 'emerge potracegui' now fails with: ... ocona -O3 -pipe -fomit-frame-pointer -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -c -o options.o options.cpp In file included from /usr/qt/3/include/qvariant.h:45, from MainWidgetBase.h:12, from mainwidget.h:24, from mainwidget.cpp:22: /usr/qt/3/include/qstring.h: In member function 'char QChar::latin1() const': /usr/qt/3/include/qstring.h:197: warning: conversion to 'char' from 'int' may alter its value /usr/qt/3/include/qstring.h: In member function 'void QChar::setCell(uchar)': /usr/qt/3/include/qstring.h:222: warning: conversion to 'ushort' from 'int' may alter its value /usr/qt/3/include/qstring.h: In member function 'void QChar::setRow(uchar)': /usr/qt/3/include/qstring.h:223: warning: conversion to 'ushort' from 'int' may alter its value /usr/qt/3/include/qstring.h: In constructor 'QChar::QChar(uchar, uchar)': /usr/qt/3/include/qstring.h:267: warning: conversion to 'ushort' from 'int' may alter its valueIn file included from potracegui.cpp:40: /usr/kde/3.5/include/kedittoolbar.h: At global scope: ... /usr/qt/3/include/qstring.h:365: warning: conversion to 'unsigned int:30' from 'uint' may alter its value In file included from pixelview.h:26, from pixelview.cpp:20: /usr/qt/3/include/qimage.h: In member function 'bool QImageTextKeyLang::operator<(const QImageTextKeyLang&) const': /usr/qt/3/include/qimage.h:61: warning: suggest parentheses around '&&' within '||' make[2]: *** [mainwidget.o] Error 1 make[2]: *** Waiting for unfinished jobs.... In file included from /usr/qt/3/include/qobject.h:48, from /usr/qt/3/include/qwidget.h:46, from /usr/qt/3/include/qdialog.h:45, from /usr/kde/3.5/include/kdialog.h:26, from /usr/kde/3.5/include/kdialogbase.h:26, from thresholddialog.h:23, from thresholddialog.cpp:20: /usr/qt/3/include/qevent.h: In constructor 'QContextMenuEvent::QContextMenuEvent(QContextMenuEvent::Reason, const QPoint&, const QPoint&, int)': /usr/qt/3/include/qevent.h:432: warning: conversion to 'unsigned char' from 'uint' may alter its value /usr/qt/3/include/qevent.h: In member function 'void QDropEvent::setAction(QDropEvent::Action)': /usr/qt/3/include/qevent.h:523: warning: conversion to 'unsigned char' from 'uint' may alter its value make[2]: Leaving directory `/var/tmp/portage/media-gfx/potracegui-1.3.4-r2/work/potracegui-1.3.4/src' make[1]: *** [all-recursive] Error 1
Perhaps it’s just me, but … can anybody see the error message in comment 12? %-) Juergen, could you please attach a full build log? I am not a geek of compiler or linker flags or their order. Perhaps qa@ or some dev should have a look at this? graphics@, are you still with us? ;-)
Nico, thank you very much for this fix. Commited to the tree. JFI, this patch does not changes anything in program itself thus version bump is not needed.