Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 189232 - [fPIC] dev-util/kdesvn-0.11.2 fails to compile
Summary: [fPIC] dev-util/kdesvn-0.11.2 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-17 14:19 UTC by Fábio L. Custódio
Modified: 2007-10-10 13:29 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fábio L. Custódio 2007-08-17 14:19:51 UTC
Emerging dev-util/kdesvn-0.11.2 fails at:

Linking CXX shared library ../../lib/libsvnqt.so
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libX11.a(AllCells.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/lib64/libX11.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: ** [lib/libsvnqt.so.3.1.1] Erro 1
make[1]: ** [src/svnqt/CMakeFiles/svnqt.dir/all] Erro 2
make: ** [all] Erro 2

Reproducible: Always

Steps to Reproduce:
1.emerge kdesvn
2.
3.

Actual Results:  
Linking CXX shared library ../../lib/libsvnqt.so
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libX11.a(AllCells.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/lib64/libX11.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: ** [lib/libsvnqt.so.3.1.1] Erro 1
make[1]: ** [src/svnqt/CMakeFiles/svnqt.dir/all] Erro 2
make: ** [all] Erro 2

!!! ERROR: dev-util/kdesvn-0.11.2 failed.
Call stack:
  ebuild.sh, line 1632:   Called dyn_compile
  ebuild.sh, line 983:   Called qa_call 'src_compile'
  ebuild.sh, line 44:   Called src_compile
  kdesvn-0.11.2.ebuild, line 42:   Called die


Expected Results:  
Compile.

=================================================================
System uname: 2.6.22-gentoo-r2-flc x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System release 1.12.9
Timestamp of tree: Fri, 17 Aug 2007 11:30:01 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.3.5-r3, 2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.17
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.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer"
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/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"
CXXFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS=" http://mirror.datapipe.net/gentoo http://www.las.ic.unicamp.br/pub/gentoo/ http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://mirror.datapipe.net/gentoo"
LANG="pt_BR.UTF-8"
LDFLAGS="-Wl,--as-needed"
LINGUAS="pt_BR en"
PKGDIR="/usr/portage/packages"
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext GAPING_SECURITY_HOLE S3TC X Xaw3d a52 aac aalib acl acpi acpi4linux aim alsa amd amd64 aotuv async atlas auctex audiofile avi bash-completion berkdb bidi bitmap-fonts bittorrent blas bootsplash branding bzip2 bzlib c++ cap ccache cddb cdparanoia cdr cdrom cgi chroot clisp cln codecs crypt ctype cups dbus dga divx4linux dlloader dnd dnsdb doc double-precision dri dv dvd dvdr dvdread edl emul-linux en encode expat ext-png ext-zlib f2c f77 faad fastcgi fbcon fbdev ffmpeg fftw font-server foomaticdb foreign-package fortran freetype fuse gcj gcl gd gdbm gif gimpprint ginac glade glgd glibc-omitfp glut gmail gnomedb gnuplot gphoto2 gpm gsl gtk gtk2 hal hdf5 icq idea ieee1394 imagemagick imap imlib imlib2 immqt-bc innodb java javascript jpeg jpeg2k kde kdehiddenvisibility kdepim latex lcms leim libcaca libgda live ltsp lzo mad matroska md5sum mdb metalink midi mime ming mmx mmx2 mmxext mng motif mozcalendar mozilla moznopango mozsvg mp3 mpeg mpeg4 mplayer msn mupad-noscilab musepack musicbrainz ncurses network nls nomalloccheck noreiserfs nptl nptlonly nsplugin nvidia objc offensive ogg oggvorbis openal opengl operanom2 oscar pam parse-clocks pcre pdflib perl php pic plotutils plugins png posix povray ppds pthreads python qt qt3 readline roundrobin rss rtc samba sasl sdl skey slang slp speedo speex spell sse sse2 ssl startup-notification stencil-buffer subversion svg sysvipc t1lib tcltk tcpd tetex tga theora tiff tlen transcode truetype truetype-fonts type1 type1-fonts unicode v4l v4l2 vcd videos vim-with-x visualization vorbis wmf wsconvert wxwindows xchatdccserver xchattext xcomposite xfs xine xml xml2 xmlrpc xorg xosd xscreensaver xsl xv xvid yahoo yaz zlib" ALSA_CARDS="emu10k1" ALSA_PCM_PLUGINS="alisp midi 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" LINGUAS="pt_BR en" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Tiago Cunha (RETIRED) gentoo-dev 2007-08-17 15:22:31 UTC
Works for me.

BTW, you missed the first line from emerge --info.

Portage 2.1.2.11 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.5-r4, 2.6.21-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.21-gentoo-r4 x86_64 Intel(R) Pentium(R) D CPU 3.00GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Thu, 16 Aug 2007 01:50:01 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  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.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=nocona -pipe"
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/init.d /etc/pam.d /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=nocona -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="-k"
FEATURES="ccache collision-protect distlocks metadata-transfer multilib-strict parallel-fetch sandbox sfperms strict test userfetch userpriv usersandbox"
GENTOO_MIRRORS="ftp://mirrors1.netvisao.pt/gentoo http://darkstar.ist.utl.pt/pub/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X acl acpi alsa amd64 arts bash-completion bitmap-fonts branding cairo cdr cli cracklib crypt dbus dri dts dvd dvdr dvdread eds emboss encode evo fam firefox flac gdbm gif gpm hal iconv ipv6 isdnlog jpeg kde kdeenablefinal kdehiddenvisibility mad midi mikmod mmx mp3 mpeg mudflap musepack musicbrainz ncurses nptl nptlonly offensive ogg opengl openmp pam pcre pdf perl png postgres pppd python qt3 qt3support qt4 quicktime readline reflection sdl session spell spl sse sse2 ssl svg tcpd test tiff truetype truetype-fonts type1-fonts unicode vorbis xcomposite xinerama xml xorg xscreensaver xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="i810"
Unset:  CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 2 Fábio L. Custódio 2007-08-17 16:10:49 UTC
(In reply to comment #1)
> Works for me.
> 
> BTW, you missed the first line from emerge --info.

;)

Portage 2.1.2.11 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.5-r4, 2.6.22-gentoo-r2-flc x86_64)
Comment 3 Christoph Mende (RETIRED) gentoo-dev 2007-08-17 16:18:08 UTC
something looks really borked there, could you recompile libX11 and try again?
Comment 4 Fábio L. Custódio 2007-08-17 18:19:26 UTC
(In reply to comment #3)
> something looks really borked there, could you recompile libX11 and try again?
> 

Just did. Same problem.
Comment 5 Fábio L. Custódio 2007-08-20 12:52:17 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > something looks really borked there, could you recompile libX11 and try again?
> > 
> 
> Just did. Same problem.
> 

Recompiled libX11 and libXext with -fPIC. Got a different error msg:

[ 14%] Building CXX object src/svnqt/CMakeFiles/svnqt.dir/repositorylistener.o
[ 15%] Building CXX object src/svnqt/CMakeFiles/svnqt.dir/svnstream.o
[ 15%] Building CXX object src/svnqt/CMakeFiles/svnqt.dir/svnfilestream.o
Linking CXX shared library ../../lib/libsvnqt.so
/usr/lib64/libX11.a(ConnDis.o): In function `_X11TransConnectDisplay':
(.text+0x9be): undefined reference to `XauDisposeAuth'
/usr/lib64/libX11.a(ConnDis.o): In function `_X11TransConnectDisplay':
(.text+0xc49): undefined reference to `XauGetBestAuthByAddr'
/usr/lib64/libX11.a(ConnDis.o): In function `_X11TransConnectDisplay':
(.text+0xe10): undefined reference to `XdmcpWrap'
collect2: ld returned 1 exit status
make[2]: ** [lib/libsvnqt.so.3.1.1] Erro 1
make[1]: ** [src/svnqt/CMakeFiles/svnqt.dir/all] Erro 2
make: ** [all] Erro 2
Comment 6 Togge 2007-09-03 14:21:44 UTC
Perhaps a stupid question: but have you tried to recompile without ccache in FEATURES?

If so can you reproduce without: LDFLAGS="-Wl,--as-needed", Unsupported?
Comment 7 Fábio L. Custódio 2007-09-03 16:07:06 UTC
(In reply to comment #6)
> Perhaps a stupid question: but have you tried to recompile without ccache in
> FEATURES?
> 
> If so can you reproduce without: LDFLAGS="-Wl,--as-needed", Unsupported?
> 

Just did, recompiled both libX11 and kdesvn-0.13.0 and got the same error.


[ 14%] Building CXX object src/svnqt/CMakeFiles/svnqt.dir/svnstream.o
[ 15%] Building CXX object src/svnqt/CMakeFiles/svnqt.dir/svnfilestream.o
Linking CXX shared library ../../lib/libsvnqt.so
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libX11.a(AllCells.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/lib64/libX11.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: ** [lib/libsvnqt.so.3.2.0] Erro 1
make[1]: ** [src/svnqt/CMakeFiles/svnqt.dir/all] Erro 2
make: ** [all] Erro 2

!!! ERROR: dev-util/kdesvn-0.13.0 failed.
Call stack:
  ebuild.sh, line 1638:   Called dyn_compile
  ebuild.sh, line 985:   Called qa_call 'src_compile'
  ebuild.sh, line 44:   Called src_compile
  kdesvn-0.13.0.ebuild, line 39:   Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/dev-util/kdesvn-0.13.0/temp/build.log'.
Comment 8 Fábio L. Custódio 2007-10-10 13:29:02 UTC
The problem was caused by orphan /lib/lib*.a which cmake were trying to use instead of /usr/lib64/lib*.a

Solved the problem by:

cd /lib
mv libFS.a libfontenc.a liboldX.a libX11.a libXau.a libXcursor.a libXdamage.a libXdmcp.a libXevie.a libxf86config.a libXfixes.a libXfont.a libXft.a libXi.a libXinerama.a libxkbfile.a libxkbui.a libXmu.a libXmuu.a libXp.a libXpm.a libXprintAppUtil.a libXprintUtil.a libXrandr.a libXRes.a libXss.a libXt.a libXTrap.a libXtst.a libXv.a libXvMC.a libXxf86dga.a libXxf86misc.a libXxf86vm.a /root/a-bak