Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 224569 - x11-libs/qt-demo - ld: cannot find -lQtGui
Summary: x11-libs/qt-demo - ld: cannot find -lQtGui
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: HPPA Linux
: High normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords: InVCS, KEYWORDREQ
Depends on:
Blocks: 223557
  Show dependency tree
 
Reported: 2008-06-02 04:25 UTC by Jeroen Roovers (RETIRED)
Modified: 2009-04-01 05:02 UTC (History)
2 users (show)

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


Attachments
x11-libs:qt-demo-4.4.0:20080528-195425.log.gz [hppa] (20080528-195425.log.gz,14.50 KB, application/x-tar)
2008-06-02 04:27 UTC, Jeroen Roovers (RETIRED)
Details
x11-libs:qt-demo-4.4.0:20080529-172620.log.gz [hppa] (20080529-172620.log.gz,14.51 KB, application/x-tar)
2008-06-02 04:28 UTC, Jeroen Roovers (RETIRED)
Details
x11-libs:qt-demo-4.4.0:20080530-094401.log.gz [hppa] (20080530-094401.log.gz,11.26 KB, application/x-tar)
2008-06-02 04:30 UTC, Jeroen Roovers (RETIRED)
Details
fix qmake .pro file (qt-demo-4.4.0-r1-plugandpaint.patch,476 bytes, patch)
2008-06-23 12:29 UTC, Gabi Shaar
Details | Diff
ebuild with patch code (qt-demo-4.4.0-r1.ebuild,1.49 KB, patch)
2008-06-23 12:40 UTC, Gabi Shaar
Details | Diff
qt-demo-4.4.0.ebuild.patch (qt-demo-4.4.0.ebuild.patch,542 bytes, patch)
2008-07-04 21:19 UTC, Bernd Steinhauser
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jeroen Roovers (RETIRED) gentoo-dev 2008-06-02 04:25:42 UTC
Build logs to follow.

Mon Jun  2 06:19:29 CEST 2008
Portage 2.1.5.3 (default-linux/hppa/2007.0, gcc-4.1.2, glibc-2.7-r2, 2.6.25-gentoo-r2-JeR parisc)
=================================================================
System uname: 2.6.25-gentoo-r2-JeR parisc PA8700 (PCX-W2)
Timestamp of tree: Sun, 01 Jun 2008 15:45:01 +0000
distcc 2.18.3 hppa2.0-unknown-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p33
dev-lang/python:     2.5.2-r4
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
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.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="hppa"
CBUILD="hppa2.0-unknown-linux-gnu"
CFLAGS="-O2 -pipe -mschedule=8000 -march=2.0 -g -ggdb -Wall"
CHOST="hppa2.0-unknown-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 /var/bind /var/spool/torque /var/www/localhost/htdocs/wordpress/wp-config.php"
CONFIG_PROTECT_MASK="/etc/env.d /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/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -mschedule=8000 -march=2.0 -g -ggdb -Wall"
DISTDIR="/keeps/gentoo/distfiles"
FEATURES="autoaddcvs buildpkg cvs distlocks fixpackages notitles parallel-fetch preserve-libs sandbox sfperms splitdebug strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://mirror.muntinternet.net/pub/gentoo/ http://gentoo.tiscali.nl/"
LC_ALL="en_US.UTF-8"
LDFLAGS=""
LINGUAS="en nl he"
MAKEOPTS="-j4"
PKGDIR="/keeps/gentoo/packages/elmer"
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="/mnt/alt/portage-tmp"
PORTDIR="/keeps/gentoo/portage"
PORTDIR_OVERLAY="/keeps/gentoo/local"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="7zip X Xaw3d a52 aac aalib accessibility ads alsa amr amrnb amrwb ao aoss apache2 ares arts asf async asyncns audiofile audit automount avfs bash-completion berkdb bidi bittorrent bl bluetooth bzip2 c++ cairo caps catalogs cblas cdb cddb cdparanoia cdr chardet cjk cli cpudetection cracklib crypt cups curl custom-cflags dbtool dbus device-mapper dga dia directfb djbfft domainkeys dts dv dvd dvdr dvdread dxr3 edl elf emacs enca encode esd examples exif expat fam fame fastbuild fastcgi fbcon ffmpeg filter flac fontconfig foomaticdb fortran ftp gadu galago gd gdbm geoip ggi gif gimp gimpprint glep glib glut gmp gnome gnutls gphoto2 gpm gs gsl gtk gtk2 gtkhtml hal hesiod hppa ical icecast iconv idea idn imagemagick imlib immqt-bc inquisitio ipv6 isdnlog jack javascript jingle jpeg jpeg2k kde kerberos lapack lcms ldap leim libcaca libnotify libsamplerate libwww live logrotate logwatch lua lzo mad matroska memcache metis mhash midi mikmod mmap mng modplug motif mozbranding mp3 mpi mplayer mssql mudflap musepack mysql nas ncurses netpbm network-cron nfconntrack nfs nls nntp nptl nptlonly nsplugin offensive ogg openexr opengl openmp oss ots overlays pam pango pbs pcre pdf pdo-external perl php pic plotutils plugins png portage portaudio postgres povray ppds pppd pulseaudio python pyzord qdbm qt3 qt3support quotas raw readline recode reflection rpc rrdtool rtc ruby samba sasl scanner scim sdl seamonkey server session sid slang slp sms sndfile snmp soundex speex spell spl sqlite ssl startup-notification suhosin supernodal svg swat sysfs syslog talkfilters tcl tcpd test tga theora threads thunar-vfs tidy tiff timidity tk tools truetype twolame udev unicode unzip urandom usb userlocales utempter utf v4l v4l2 vanim vcd vidix vim-syntax vorbis wavpack webdav webinstall winbind wlan wma wmf xanim xchattext xcomposite xface xml xml2 xmpi xorg xpm xrandr xscreensaver xsettings xulrunner xv xvid xvmc zip zip-external zlib" ALSA_CARDS="ad1889 usb-audio" 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" 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 deflate 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 unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en nl he" USERLAND="GNU" VIDEO_CARDS="stifb fbdev matrox"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2008-06-02 04:27:20 UTC
Created attachment 155189 [details]
x11-libs:qt-demo-4.4.0:20080528-195425.log.gz [hppa]

x11-libs/qt-demo stops building and doesn't even declare an error.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2008-06-02 04:28:18 UTC
Created attachment 155191 [details]
x11-libs:qt-demo-4.4.0:20080529-172620.log.gz [hppa]

Another try with no changes that are known to be relevant. Same error.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2008-06-02 04:30:11 UTC
Created attachment 155193 [details]
x11-libs:qt-demo-4.4.0:20080530-094401.log.gz [hppa]

This time with MAKEOPTS=-j1 the build stops a lot earlier and does display an error message:

moc plugindialog.h
compiling .moc/release-shared/moc_plugindialog.cpp
linking plugandpaint
/usr/lib/gcc/hppa2.0-unknown-linux-gnu/4.1.2/../../../../hppa2.0-unknown-linux-g
nu/bin/ld: cannot find -lQtGui
collect2: ld returned 1 exit status
make[2]: *** [plugandpaint] Error 1
make[2]: Leaving directory `/mnt/alt/portage-tmp/portage/x11-libs/qt-demo-4.4.0/
work/qt-x11-opensource-src-4.4.0/examples/tools/plugandpaint'
make[1]: *** [sub-plugandpaint-make_default-ordered] Error 2
make[1]: Leaving directory `/mnt/alt/portage-tmp/portage/x11-libs/qt-demo-4.4.0/
work/qt-x11-opensource-src-4.4.0/examples/tools'
make: *** [sub-tools-make_default] Error 2
 *
 * ERROR: x11-libs/qt-demo-4.4.0 failed.
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2008-06-02 04:50:53 UTC
[ebuild   R   ] x11-libs/qt-gui-4.4.0  USE="accessibility cups dbus glib mng nas qt3support tiff -debug -nis -pch -xinerama" INPUT_DEVICES="(-wacom)" 0 kB
Comment 5 Gabi Shaar 2008-06-23 12:29:32 UTC
Created attachment 158103 [details, diff]
fix qmake .pro file
Comment 6 Gabi Shaar 2008-06-23 12:40:13 UTC
Created attachment 158107 [details, diff]
ebuild with patch code
Comment 7 Bernd Steinhauser 2008-07-04 20:48:00 UTC
(In reply to comment #5)
> Created an attachment (id=158103) [edit]
> fix qmake .pro file
> 

If you fix something, do it properly. ;)
(You left the sed there. ;))


@Bug, sorry, that was my fault, I had that sed put there to fix it (thx to Gabi Shaar, I didn't spot the missing + there), when I created the qt-demo ebuild.
Unfortunately I forgot to put $(get_libdir) there instead of lib64.
So the following patch to the ebuild will fix the problem, using the hint that Gabi Shaar gave me.
Comment 8 Bernd Steinhauser 2008-07-04 21:19:12 UTC
Created attachment 159568 [details, diff]
qt-demo-4.4.0.ebuild.patch

- Don't hardcode the libdir.
- Fix the original LIBS statement instead of adding another one.

BTW:
I wonder how it did get a ~ppc keyword, it should have failed.
Comment 9 Jeroen Roovers (RETIRED) gentoo-dev 2008-07-05 15:56:06 UTC
(In reply to comment #8)
> BTW:
> I wonder how it did get a ~ppc keyword, it should have failed.

Shouldn't it have failed equally on the three other arches it has been keyworded for?
Comment 10 Bernd Steinhauser 2008-07-05 16:02:41 UTC
(In reply to comment #9)
> (In reply to comment #8)
> > BTW:
> > I wonder how it did get a ~ppc keyword, it should have failed.
> 
> Shouldn't it have failed equally on the three other arches it has been
> keyworded for?
> 
Well, tbh, the ~x86 might have sneaked through, because we didn't remove ~amd64 and ~x86 keywords.
(I tested it on amd64, obviously. Others working on qt4.4 used x86.)
Not sure about ~ppc64, since I don't know that arch, so if it has a lib64 dir, it might have worked.
But it should have failed on ~ppc.
Comment 11 Jeroen Roovers (RETIRED) gentoo-dev 2008-07-18 06:05:33 UTC
Er, so let's all reevaluate building x11-libs/qt-demo with this patch applied...
Comment 12 Jeroen Roovers (RETIRED) gentoo-dev 2008-07-18 06:21:44 UTC
This isn't a stable request. Please read the whole bug - the ~x86 keyword apparently never got validated in the first place (and the ~ppc keyword is a complete mistery. :)
Comment 13 Jeroen Roovers (RETIRED) gentoo-dev 2008-07-18 06:23:15 UTC
Also, the proper patch (last one in the list above) isn't in the tree yet. (With qt@'s permission I will commit it in a few minutes.)
Comment 14 Jeroen Roovers (RETIRED) gentoo-dev 2008-07-18 06:35:27 UTC
That last patch fixed it for HPPA. Marked ~hppa:


Index: qt-demo-4.4.0.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/x11-libs/qt-demo/qt-demo-4.4.0.ebuild,v
retrieving revision 1.3
diff -u -B -r1.3 qt-demo-4.4.0.ebuild
--- qt-demo-4.4.0.ebuild        13 Jun 2008 23:21:15 -0000      1.3
+++ qt-demo-4.4.0.ebuild        18 Jul 2008 06:32:41 -0000
@@ -10,7 +10,7 @@

 LICENSE="|| ( QPL-1.0 GPL-3 GPL-2 )"
 SLOT="4"
-KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+KEYWORDS="~amd64 ~hppa ~ppc64"
 IUSE=""

 DEPEND="
@@ -38,7 +38,7 @@

 src_compile() {
        # Doesn't find qt-gui and fails linking
-       sed -e '/QT_BUILD_TREE/ a LIBS+=-L/usr/lib64/qt4\n' \
+       sed -e '/QT_BUILD_TREE/ s:=:+=:' \
                -i "${S}"/examples/tools/plugandpaint/plugandpaint.pro \
                || die "Fixing plugandpaint example failed."
Comment 15 Bo Ørsted Andresen (RETIRED) gentoo-dev 2008-07-23 17:56:29 UTC
(In reply to comment #13)
> Also, the proper patch (last one in the list above) isn't in the tree yet.
> (With qt@'s permission I will commit it in a few minutes.)

Thanks!
Comment 16 Raúl Porcel (RETIRED) gentoo-dev 2008-07-24 18:02:49 UTC
~x86 done
Comment 17 Ben de Groot (RETIRED) gentoo-dev 2008-12-04 01:38:51 UTC
PPC: is this fixed in 4.4.2? Can we close this bug?
Comment 18 Joe Jezak (RETIRED) gentoo-dev 2009-02-25 19:51:23 UTC
Yes, it works fine on my ppc32 machine.