Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 166451

Summary: [fPIC] media-sound/lastfmplayer-1.1.3 relocation error during build
Product: Gentoo Linux Reporter: Jose daLuz <jdaluz>
Component: New packagesAssignee: AMD64 Project <amd64>
Status: RESOLVED FIXED    
Severity: normal CC: bug.hunter, den_m, kevin.bowling, matrixhax0r
Priority: High    
Version: 2006.1   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: suggested new ebuild
suggested patch for new ebuild

Description Jose daLuz 2007-02-12 00:57:41 UTC
Emerging lastfmplayer 1.1.3 I get this error during build:

make[1]: Entering directory `/var/tmp/portage/media-sound/lastfmplayer-1.1.3/work/last.fm-1.1.3/src/webservice'
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC  -DQT_NO_DEBUG_STREAM -DQT_NO_DEBUG -DQT_PLUGIN -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I.. -I../libLastFMTools -I../build -I../build -o ../build/webservice.o webservice.cpp
webservice.cpp:116: warning: unused parameter ‘error’
webservice.cpp:116: warning: unused parameter ‘errorString’
webservice.cpp: In member function ‘void WebService::metaDataRadioFinished(const QByteArray&)’:
webservice.cpp:350: warning: unused variable ‘errCode’
webservice.cpp:351: warning: unused variable ‘discovery’
webservice.cpp: In member function ‘void WebService::neighboursFinished(int, bool)’:
webservice.cpp:1124: warning: converting to ‘int’ from ‘float’
webservice.cpp: In member function ‘void WebService::similarArtistsFinished(int, bool)’:
webservice.cpp:1706: warning: unused variable ‘streamable’
webservice.cpp: In member function ‘void WebService::searchTagFinished(int, bool)’:
webservice.cpp:1769: warning: converting to ‘int’ from ‘float’
webservice.cpp: In member function ‘void WebService::makeXmlRpcCall(QByteArray, const char*, bool, Http*)’:
webservice.cpp:2536: warning: unused variable ‘id’
/usr/bin/moc -DQT_NO_DEBUG_STREAM -DQT_NO_DEBUG -DQT_PLUGIN -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I.. -I../libLastFMTools -I../build -I../build webservice.h -o ../build/moc_webservice.cpp
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC  -DQT_NO_DEBUG_STREAM -DQT_NO_DEBUG -DQT_PLUGIN -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I.. -I../libLastFMTools -I../build -I../build -o ../build/moc_webservice.o ../build/moc_webservice.cpp
rm -f libservice_web.so
g++ -Wl,-rpath,/usr/lib64/qt4 -shared -o libservice_web.so ../build/webservice.o ../build/moc_webservice.o   -L/usr/lib64/qt4 -L../../bin -lLastFMTools ../build/Loqqer.o -lQtXml -L/usr/lib64 -L/usr/lib64/qt4 -lQtGui -L/usr/X11R6/lib -lpng -lSM -lICE -lXrender -lXrandr -lXfixes -lXcursor -lfreetype -lfontconfig -lXext -lX11 -lQtNetwork -lQtCore -lz -lm -ldl -lpthread 
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: ../build/Loqqer.o: relocation R_X86_64_32S against `QString::shared_null' can not be used when making a shared object; recompile with -fPIC
../build/Loqqer.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [../../bin/services/libservice_web.so] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-sound/lastfmplayer-1.1.3/work/last.fm-1.1.3/src/webservice'
make: *** [sub-src_webservice-make_default] Error 2

Portage 2.1.2-r9 (default-linux/amd64/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.19-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.19-gentoo-r4 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.13.0_alpha12
Timestamp of tree: Sun, 11 Feb 2007 19:50:01 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.31-r3
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.18.1
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.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.20
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe -ggdb"
CHOST="x86_64-pc-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"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=k8 -O2 -pipe -ggdb -ffriend-injection"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS=""
FEATURES="autoconfig ccache distlocks fixpackages parallel-fetch sandbox sfperms splitdebug strict"
GENTOO_MIRRORS="http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://gentoo.osuosl.org/ "
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=120"
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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/portage/local/layman/wrobel /usr/portage/local/layman/gnome-experimental /usr/portage/local/layman/break-my-gentoo-main /usr/local/overlays/myoverlay /usr/local/overlays/bmg-main"
SYNC="rsync://rsync.ca.gentoo.org/gentoo-portage"
USE="X a52 aac alsa amd64 amr bash-completion berkdb bitmap-fonts bzip2 cairo cdda cdr cli cracklib crypt css cups dbus debug dlloader dri dts dvd dvdr eds emboss encode esd fam ffmpeg firefox flac fortran gdbm gif glitz gnome gpm gstreamer gtk gtk2 hal iconv ipv6 isdnlog java jpeg kde kdehiddenvisibility ldap libg++ libnotify mad midi mikmod mono mp3 mpeg ncurses nls nptl nptlonly ogg opengl pam pcre perl pic png ppds pppd python qt3 qt4 quicktime readline reflection ruby samba sdl session spell spl sqlite ssl tcpd theora tiff truetype truetype-fonts type1-fonts udev unicode usb userlocales vcd vorbis x264 xcb xml xorg xv xvid zlib" ALSA_CARDS="emu10k1" 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 evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="vesa nvidia"
Unset:  CTARGET, INSTALL_MASK, LDFLAGS
Comment 1 Mehmet Kemal EROL 2007-02-12 02:06:00 UTC
Hey David, my young friend ... this is your call ;)

Please try the following attachments (ebuild + patch) and report back!
Comment 2 Mehmet Kemal EROL 2007-02-12 02:07:14 UTC
Created attachment 109919 [details]
suggested new ebuild
Comment 3 Mehmet Kemal EROL 2007-02-12 02:08:07 UTC
Created attachment 109921 [details, diff]
suggested patch for new ebuild
Comment 4 Jose daLuz 2007-02-12 02:25:46 UTC
Thanks, the patch works for me!
Comment 5 David Li 2007-02-12 05:44:27 UTC
This hack that fixed this was in the patch that was applied to the previous version. I told upstream about it, but it looks like they haven't fixed it.
Comment 6 Mehmet Kemal EROL 2007-02-12 13:08:42 UTC
David ... apparently upstream is ignoring your interventions: Should we make more noise?

Stefan ... in the time being I would suggest that you take out the `~amd64' flag for new builds, ie make an appropiate entry in `package.mask' with a call to test it on our arch: What do you think?
Comment 7 Simon Stelling (RETIRED) gentoo-dev 2007-02-12 13:56:40 UTC
Not so fast, guys. There's no need to mask the package, because it's fixed already.
Comment 8 Mehmet Kemal EROL 2007-02-12 19:19:54 UTC
Huh? -> ... suggest that you take out the `~amd64' flag for *new* builds ...
Comment 9 Simon Stelling (RETIRED) gentoo-dev 2007-02-12 20:10:46 UTC
i suggest that the maintainer just keeps the existing patch as long as the issue exists. really no reason to drop keywords because of a known issue
Comment 10 Mehmet Kemal EROL 2007-02-12 21:10:57 UTC
Again ... David (aka our `upstream-struggler') should speak here: This mess is drifting from a `known issue' to a state of `bad habit' ... but you sound reasonable, thank you Simon!

Btw, thus you have closed this bug I hope that you are on your way to make the appropriate commitment to our portage-tree ;)
Comment 11 David Li 2007-02-13 00:01:21 UTC
Well, I just told upstream about this bug. Hopefully they'll get around to fixing this.
Comment 12 Jakub Moc (RETIRED) gentoo-dev 2007-02-13 08:37:52 UTC
*** Bug 166626 has been marked as a duplicate of this bug. ***