Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 317389 - dev-libs/libdbusmenu-qt-0.3.2: fails to build: ld: cannot find -lQtCore
Summary: dev-libs/libdbusmenu-qt-0.3.2: fails to build: ld: cannot find -lQtCore
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-27 00:47 UTC by Ai Locke Shinseiko (Wizzleby)
Modified: 2010-11-09 15:12 UTC (History)
8 users (show)

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


Attachments
build.log (build.log,6.65 KB, text/plain)
2010-04-27 00:49 UTC, Ai Locke Shinseiko (Wizzleby)
Details
build.log (build.log,31.44 KB, text/plain)
2010-04-27 01:52 UTC, Ai Locke Shinseiko (Wizzleby)
Details
Patch to fix linker problem in libdbusmenu-qt (libdbusmenu-qt-qjson_ldflags.patch,290 bytes, patch)
2010-09-23 20:49 UTC, Peter Levine
Details | Diff
Patch the cmake file to do what it actually says in the comment (FindQJSON.patch,796 bytes, patch)
2010-09-26 11:53 UTC, Peter Grasch
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ai Locke Shinseiko (Wizzleby) 2010-04-27 00:47:40 UTC
linking stage fails, unable to find QtCore to with -lQtCore
Comment 1 Ai Locke Shinseiko (Wizzleby) 2010-04-27 00:48:03 UTC
Portage 2.2_rc67 (default/linux/amd64/10.0/desktop/kde, gcc-4.4.3, glibc-2.11.1-r0, 2.6.33-zen1 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.33-zen1-x86_64-AMD_Athlon-tm-_7850_Dual-Core_Processor-with-gentoo-2.0.1
Timestamp of tree: Tue, 27 Apr 2010 00:15:03 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 2.4 [disabled]
app-shells/bash:     4.1_p5
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.5-r1, 3.1.2-r2
dev-python/pycrypto: 2.1.0
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.1-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1
sys-devel/gcc:       4.4.3-r2, 4.5.0
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL skype-eula LOKI-EULA dlj-1.1 PREY sun-bcla-java-vm"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -ggdb -Wno-pointer-sign"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y --ask-enter-invalid"
FEATURES="assume-digests distlocks fixpackages metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo http://chi-10g-1-mirror.fastsoft.net/pub/linux/gentoo/gentoo-distfiles/ http://mirror.datapipe.net/gentoo http://gentoo.mirrors.tds.net/gentoo "
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu"
LINGUAS="en en_US en_GB ga_IE ga"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/sunrise /var/lib/layman/qting-edge /var/lib/layman/multimedia /var/lib/layman/jokey /var/lib/layman/gamerlay /var/lib/layman/tcl-8.6 /var/lib/layman/kde /usr/local/portage/shinseiko"
Comment 2 Ai Locke Shinseiko (Wizzleby) 2010-04-27 00:49:18 UTC
Created attachment 229333 [details]
build.log
Comment 3 Rafał Mużyło 2010-04-27 01:07:02 UTC
Ahh..the joys of short output...
Mind attaching a build log, while VERBOSE=1,
so we could see the full command, that's failing ?
Check also if ld.so.conf includes path to qt4 libs
(it should, unless something went wrong while emerging
qt splits).
Comment 4 Ai Locke Shinseiko (Wizzleby) 2010-04-27 01:52:50 UTC
Created attachment 229337 [details]
build.log

with VERBOSE=1, MAKEOPTS="-j1" (for clarity)
ld.so.conf does contain the proper paths to find the libQtCore shared object as expected.
Comment 5 Ai Locke Shinseiko (Wizzleby) 2010-04-27 04:20:35 UTC
Upon realizing that this is filed against a package only in kde overlay, setting the right component and reassigning to kde@g.o
Comment 6 Jean-Baptiste Rouault 2010-04-27 07:09:02 UTC
I made a patch last night which can be seen here : http://is.gd/bJr6Y
Comment 7 Ai Locke Shinseiko (Wizzleby) 2010-04-27 09:59:23 UTC
(In reply to comment #6)
> I made a patch last night which can be seen here : http://is.gd/bJr6Y
> 
Patch from Jean-Baptiste Rouault is currently applied to 0.3.2 and -9999 (until upstream fixes it)
Comment 8 Maciej Mrozowski gentoo-dev 2010-04-27 13:50:12 UTC
FindQJSON.cmake is broken, fixed in tree.
Comment 9 Vasilis Lourdas 2010-09-21 17:44:15 UTC
This happens again with version 0.6.3:

[ 70%] [ 74%] [ 77%] Building CXX object tools/testapp/CMakeFiles/dbusmenubench-qtapp.dir/main.cpp.o
Generating dbusmenuimportertest.moc
Generating dbusmenuexportertest.moc
Scanning dependencies of target dbusmenushortcuttest
Scanning dependencies of target dbusmenuimportertest
Scanning dependencies of target dbusmenuexportertest
Linking CXX executable dbusmenubench-qtapp
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.4/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lQtCore
collect2: ld returned 1 exit status
make[2]: *** [tools/testapp/dbusmenubench-qtapp] Error 1
make[1]: *** [tools/testapp/CMakeFiles/dbusmenubench-qtapp.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 81%] Building CXX object tests/CMakeFiles/slowmenu.dir/slowmenu.cpp.o
[ 85%] Building CXX object tests/CMakeFiles/dbusmenushortcuttest.dir/dbusmenushortcuttest.cpp.o
[ 88%] [ 92%] [ 96%] Building CXX object tests/CMakeFiles/dbusmenuexportertest.dir/dbusmenuexportertest.cpp.o
Building CXX object tests/CMakeFiles/dbusmenuexportertest.dir/testutils.cpp.o
Building CXX object tests/CMakeFiles/dbusmenuimportertest.dir/dbusmenuimportertest.cpp.o
[100%] Building CXX object tests/CMakeFiles/dbusmenuimportertest.dir/testutils.cpp.o
Linking CXX executable dbusmenushortcuttest
[100%] Built target dbusmenushortcuttest
Linking CXX executable slowmenu
[100%] Built target slowmenu
Linking CXX executable dbusmenuimportertest
[100%] Built target dbusmenuimportertest
Linking CXX executable dbusmenuexportertest
[100%] Built target dbusmenuexportertest
make: *** [all] Error 2
emake failed
 * ERROR: dev-libs/libdbusmenu-qt-0.6.3 failed:
 *   Make failed!
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 2951:  Called cmake-utils_src_compile
 *   environment, line  763:  Called _execute_optionaly 'src_compile'
 *   environment, line  229:  Called enable_cmake-utils_src_compile
 *   environment, line 1116:  Called cmake-utils_src_make
 *   environment, line  782:  Called die
 * The specific snippet of code:
 *           emake "$@" || die "Make failed!";
 * 
 * If you need support, post the output of 'emerge --info =dev-libs/libdbusmenu-qt-0.6.3',
 * the complete build log and the output of 'emerge -pqv =dev-libs/libdbusmenu-qt-0.6.3'.
 * This ebuild is from an overlay named 'kde': '/var/lib/layman/kde/'
 * The complete build log is located at '/var/tmp/portage/dev-libs/libdbusmenu-qt-0.6.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/libdbusmenu-qt-0.6.3/temp/environment'.
 * S: '/var/tmp/portage/dev-libs/libdbusmenu-qt-0.6.3/work/libdbusmenu-qt-0.6.3'


emerge --info
Portage 2.1.9.9 (default/linux/amd64/10.0/desktop, gcc-4.4.4, glibc-2.11.2-r0, 2.6.35-gentoo-r7 x86_64)
=================================================================
System uname: Linux-2.6.35-gentoo-r7-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8400_@_3.00GHz-with-gentoo-2.0.1
Timestamp of tree: Tue, 21 Sep 2010 17:00:01 +0000
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.3
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.6.3-r1, 1.7.9-r2, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 sun-bcla-java-vm skype-eula AdobeFlash-10.1"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe -msse4.1"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /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 /etc/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 /etc/texmf/web2c"
CXXFLAGS="-march=core2 -O2 -pipe -msse4.1"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.leaseweb.com/gentoo/ http://mirror.jamit.de/gentoo/ http://gentoo.mneisen.org/ http://ftp.ntua.gr/pub/linux/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://mirror.cambrium.nl/pub/os/linux/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://de-mirror.org/distro/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed"
LINGUAS="en en_GB en_US el"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/arcon /var/lib/layman/kde /var/lib/layman/lcd-filtering /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi additions alsa amd64 apache2 asf bash-completion berkdb branding bzip2 bzlib cairo calendar caps cdr charconv chm cli consolekit contrast cracklib crypt css ctype cups cupsddk curl custom-optimization cxx dba dbus dcc_video dmi dri dts dvd dvdr dvdread ebook effects emboss encode exif expat extras faac faad fam fat fbcon ffmpeg fftw filter firefox firefox3 flac flatfile fontconfig foomaticdb ftp gcj gd gdbm gif gimp gimpprint glib glx gmp gnomedb gnutls gocr gphoto2 gpm gtk hddtemp hotpixels howl iconv icu id3tag imagemagick imap imlib innodb inotify jabber java java6 javascript jpeg jpeg2k json kde kdehiddenvisibility kipi lame lcdfilter lcms lensfun libsamplerate libwww lm_sensors mad madwifi maildir mailwrapper maps melt mhash mikmod mime mmx mmxext modules motif mozbranding mozdevelop mozilla mozsvg mp3 mp4 mpeg mplayer mpm-worker mudflap multilib multiuser mysql mysqli ncurses newspr nls no-old-linux nodrm nomalloccheck nptl nptlonly ntfs objc offensive ofx ogg opengl openmp optimization pam pango pcmcia pcntl pcre pdf pdo pear perl php plasma pmu png policykit posix postgres ppds pppd python qt3support qt4 quicktime rar raw rdesktop readline redeyes reflection reiserfs reports ruby sasl scanner sdl semantic-desktop server session sha512 sharedext simplexml slang smp sndfile soap sockets speex spell spreadsheet sqlite sqlite3 srt sse sse2 sse3 ssl ssse3 startup-notification subtitles subversion svg symlink sysfs syslog tcltk tcpd templates tetex theora threads tidy tiff tokenizer tordns truetype udev unicode usb userlocales vda vdpau vnc vncviewer vorbis wmf wv wxgtk1 x264 xcomposite xfs xine xml xmlreader xmlrpc xmlwriter xorg xpdf-headers xpm xprint xscreensaver xsl xulrunner xv xvid xvnc zip zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias version" APACHE2_MPMS="prefork" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB en_US el" NETBEANS_MODULES="cnd php ide nb webcommon xml gsf harness websvccommon" RUBY_TARGETS="ruby18" SANE_BACKENDS="snapscan" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 10 Theo Chatzimichos (RETIRED) archtester gentoo-dev Security 2010-09-21 17:59:15 UTC
confirmed
Comment 11 Peter Levine 2010-09-23 20:49:22 UTC
Created attachment 248475 [details, diff]
Patch to fix linker problem in libdbusmenu-qt

The QJSON_LIBRARIES variable adds "-lQtCore" from pkgconfig, but omits the preceeding "-L/usr/lib/qt4" path, which causes the build to look in "/usr/lib" only. This patch changes it to use the QJSON_LDFLAGS variable, which includes both.
Comment 12 Peter Levine 2010-09-23 21:17:38 UTC
Also reported upstream at https://bugs.launchpad.net/libdbusmenu-qt/+bug/646381
Comment 13 Peter Grasch 2010-09-26 11:52:32 UTC
This also happens with libdbusmenu-qt-0.6.3 (kde overlay).

The attached patch (FindQJSON.patch) fixes it for me and is imho a cleaner solution to the problem. It also matches with the authors comment in the .cmake file.
Comment 14 Peter Grasch 2010-09-26 11:53:27 UTC
Created attachment 248666 [details, diff]
Patch the cmake file to do what it actually says in the comment
Comment 15 Theo Chatzimichos (RETIRED) archtester gentoo-dev Security 2010-11-09 15:12:55 UTC
try 0.6.4 should be fixed there, please reopen if not