Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 250306 - dev-util/devhelp-0.21 - x86_64-pc-linux-gnu/bin/ld: .libs/libdevhelp_1_la-Yelper.o: relocation R_X86_64_PC32 against `gtk_moz_embed_get_nsIWebBrowser' can not be used when making a shared object; recompile with -fPIC
Summary: dev-util/devhelp-0.21 - x86_64-pc-linux-gnu/bin/ld: .libs/libdevhelp_1_la-Yel...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2008-12-08 17:34 UTC by Bryan Green
Modified: 2009-03-21 22:14 UTC (History)
9 users (show)

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


Attachments
emerge --info (einfo.txt,4.16 KB, text/plain)
2008-12-08 17:35 UTC, Bryan Green
Details
the build log (build.log,80.97 KB, text/plain)
2008-12-08 17:36 UTC, Bryan Green
Details
Buildlog (build.log,75.40 KB, text/plain)
2008-12-08 22:24 UTC, Stefan Bauer
Details
Buildlog devhelp-0.20 (build.log,75.40 KB, text/plain)
2008-12-08 22:38 UTC, Stefan Bauer
Details
configure.in patch (devhelp-0.21-xulrunner-1.9.patch,1.25 KB, patch)
2009-03-17 18:32 UTC, Serkan Kaba (RETIRED)
Details | Diff
Patch against 0.21 ebuild (devhelp.patch,1008 bytes, patch)
2009-03-17 18:33 UTC, Serkan Kaba (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bryan Green 2008-12-08 17:34:16 UTC
Emerging devhelp-0.21 fails with this error:

/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.4/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/libdevhelp_1_la-Yelper.o: relocation R_X86_64_PC32 against `gtk_moz_embed_get_nsIWebBrowser' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.4/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Bad value



Reproducible: Always
Comment 1 Bryan Green 2008-12-08 17:35:33 UTC
Created attachment 174654 [details]
emerge --info
Comment 2 Bryan Green 2008-12-08 17:36:52 UTC
Created attachment 174656 [details]
the build log
Comment 3 Stefan Bauer 2008-12-08 22:22:38 UTC
I can acknowledge that there's a bug. Exactly the same here.

$ emerge --info
Portage 2.1.4.5 (default/linux/amd64/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.27 x
86_64)
=================================================================
System uname: 2.6.27 x86_64 AMD Athlon(tm) 64 Processor 3200+
Timestamp of tree: Mon, 08 Dec 2008 20:37:04 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r7
dev-util/cmake:      2.4.6-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -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/shu
tdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gcon
f /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict unme
rge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.tu-chemnitz.de/pub/linux/gentoo/"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress 
--force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclu
de=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi afs alsa amd64 bash-completion berkdb bzi
p2 cairo caps cdda cddb cdio cgraph cli cracklib crypt cscope css cups curl dbus
 devhelp dga djvu dri dvd dvdr dvdread fontconfig gd gdbm geoip gif gmp gtk hal 
iconv id3tag idn inherit-graph isdnlog java java5 java6 jpeg jpeg2k kde latex lm
_sensors lzo midi mmx mmxext mp2 mp3 mpeg mudflap multilib ncurses nls nptl nptl
only nsplugin ogg opengl openmp pam pcre pdf plotutils png ppds pppd qt3 qt4 rea
dline reflection resolvconf session sourceview spell spl sse sse2 ssl subversion
 svg sysfs theora threads tiff toolbar truetype unicode valgrind vcd vcdinfo vcd
x vim-syntax visualization vorbis wifi x264 xml xorg xprint xulrunner xv xvid xv
mc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu
10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 
trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asy
m copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat l
inear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE
2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_defau
lt authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner aut
hz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires e
xt_filter file_cache filter headers include info log_config logio mem_cache mime
 mime_magic negotiation rewrite setenvif speling status unique_id userdir usertr
ack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD
_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
 LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_CO
MPRESS, PORTAGE_COMPRESS_FLAGS
Comment 4 Stefan Bauer 2008-12-08 22:24:57 UTC
Created attachment 174675 [details]
Buildlog

The build log.
Comment 5 Stefan Bauer 2008-12-08 22:37:22 UTC
devhelp-0.20 fails the same way.
Comment 6 Stefan Bauer 2008-12-08 22:38:41 UTC
Created attachment 174676 [details]
Buildlog devhelp-0.20

The build log for devhelp-0.20
Comment 7 Aggelos 2008-12-09 07:02:59 UTC
I switched to sys-devel/gcc-4.3.2 and recompiled all (system and then world) and this time devhelp emerged fine.
Comment 8 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-12-11 19:49:43 UTC
@all, could you rebuild xulrunner and see if devhelp still fails to build ?
Comment 9 Bryan Green 2008-12-17 18:28:33 UTC
(In reply to comment #8)
> @all, could you rebuild xulrunner and see if devhelp still fails to build ?
> 

I rebuilt xulrunner-1.9.0.4-r1, but got the same result when I then tried to emerge devhelp.
Comment 10 Vito Louis Sansevero 2009-03-01 07:44:48 UTC
I had to bump GCC for this as well. 
Comment 11 Marcello Magaldi 2009-03-11 16:02:21 UTC
(In reply to comment #8)
> @all, could you rebuild xulrunner and see if devhelp still fails to build ?
> 

which xulrunner ? On my system I have both 1.8 and 1.9 , I tried recompiling 1.9 and then devhelp but still the same issue.
Comment 12 Marcello Magaldi 2009-03-11 16:21:26 UTC
(In reply to comment #11)
> (In reply to comment #8)
> > @all, could you rebuild xulrunner and see if devhelp still fails to build ?
> > 
> 
> which xulrunner ? On my system I have both 1.8 and 1.9 , I tried recompiling
> 1.9 and then devhelp but still the same issue.
> 

I also rebuilt xulrunner-1.8 but still the same issue.

Comment 13 Marcello Magaldi 2009-03-14 06:42:38 UTC
here (on amd64) only devhelp 0.19 and 0.19.1 builds fine, building >0.19.1 comes out the same error: 
mv -f .deps/libdevhelp_1_la-dh-window.Tpo .deps/libdevhelp_1_la-dh-window.Plo
mv -f .deps/libdevhelp_1_la-eggfindbar.Tpo .deps/libdevhelp_1_la-eggfindbar.Plo
/bin/sh ../libtool --tag=CXX   --mode=link x86_64-pc-linux-gnu-g++ -pthread -DORBIT2=1 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/libglade-2.0 -I/usr/include/libxml2 -I/usr/include/gconf/2 -I/usr/include/orbit-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/libwnck-1.0 -I/usr/include/startup-notification-1.0   -DXPCOM_GLUE -fshort-wchar -I/usr/include/xulrunner-1.9/stable -I/usr/include/nspr    -march=athlon64 -msse3 -O2 -pipe   -Wl,-O1 -o libdevhelp-1.la -rpath /usr/lib64 libdevhelp_1_la-Yelper.lo libdevhelp_1_la-dh-gecko-utils.lo libdevhelp_1_la-bacon-message-connection.lo libdevhelp_1_la-dh-marshal-main.lo libdevhelp_1_la-dh-base.lo libdevhelp_1_la-dh-book-tree.lo libdevhelp_1_la-dh-error.lo libdevhelp_1_la-dh-html.lo libdevhelp_1_la-dh-keyword-model.lo libdevhelp_1_la-dh-link.lo libdevhelp_1_la-dh-search.lo libdevhelp_1_la-dh-parser.lo libdevhelp_1_la-dh-preferences.lo libdevhelp_1_la-dh-util.lo libdevhelp_1_la-dh-window.lo libdevhelp_1_la-eggfindbar.lo -pthread -lgthread-2.0 -lrt -lglade-2.0 -lxml2 -lgconf-2 -lwnck-1 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype -lz -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lglib-2.0   -L/usr/lib64/xulrunner-1.9/lib -lxpcomglue    
x86_64-pc-linux-gnu-g++ -shared -nostdlib /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../lib64/crti.o /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/crtbeginS.o  .libs/libdevhelp_1_la-Yelper.o .libs/libdevhelp_1_la-dh-gecko-utils.o .libs/libdevhelp_1_la-bacon-message-connection.o .libs/libdevhelp_1_la-dh-marshal-main.o .libs/libdevhelp_1_la-dh-base.o .libs/libdevhelp_1_la-dh-book-tree.o .libs/libdevhelp_1_la-dh-error.o .libs/libdevhelp_1_la-dh-html.o .libs/libdevhelp_1_la-dh-keyword-model.o .libs/libdevhelp_1_la-dh-link.o .libs/libdevhelp_1_la-dh-search.o .libs/libdevhelp_1_la-dh-parser.o .libs/libdevhelp_1_la-dh-preferences.o .libs/libdevhelp_1_la-dh-util.o .libs/libdevhelp_1_la-dh-window.o .libs/libdevhelp_1_la-eggfindbar.o  /usr/lib64/libgthread-2.0.so -lrt /usr/lib64/libglade-2.0.so /usr/lib64/libxml2.so /usr/lib64/libgconf-2.so /usr/lib64/libwnck-1.so /usr/lib64/libgtk-x11-2.0.so /usr/lib64/libgdk-x11-2.0.so /usr/lib64/libatk-1.0.so /usr/lib64/libgio-2.0.so /usr/lib64/libpangoft2-1.0.so /usr/lib64/libgdk_pixbuf-2.0.so /usr/lib64/libpangocairo-1.0.so /usr/lib64/libcairo.so /usr/lib64/libpango-1.0.so /usr/lib64/libfreetype.so -lz /usr/lib64/libfontconfig.so /usr/lib64/libgobject-2.0.so /usr/lib64/libgmodule-2.0.so /usr/lib64/libglib-2.0.so -L/usr/lib64/xulrunner-1.9/lib -lxpcomglue -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2 -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/crtendS.o /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../lib64/crtn.o  -pthread -march=athlon64 -msse3 -Wl,-O1 -pthread -Wl,-soname -Wl,libdevhelp-1.so.0 -o .libs/libdevhelp-1.so.0.0.0
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/libdevhelp_1_la-Yelper.o: relocation R_X86_64_PC32 against `gtk_moz_embed_get_nsIWebBrowser' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
distcc[23065] ERROR: compile (null) on localhost failed
make[3]: *** [libdevhelp-1.la] Error 1
make[3]: Leaving directory `/var/tmp/portage/dev-util/devhelp-0.20/work/devhelp-0.20/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/dev-util/devhelp-0.20/work/devhelp-0.20/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-util/devhelp-0.20/work/devhelp-0.20'
make: *** [all] Error 2
 * 
 * ERROR: dev-util/devhelp-0.20 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 1573:  Called gnome2_src_compile
 *             environment, line 1175:  Called die
 * The specific snippet of code:
 *       emake || die "compile failure"
 *  The die message:
 *   compile failure
 * 
 * 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/devhelp-0.20/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-util/devhelp-0.20/temp/environment'.
 * 

>>> Failed to emerge dev-util/devhelp-0.20, Log file:

>>>  '/var/tmp/portage/dev-util/devhelp-0.20/temp/build.log'

 * Messages for package dev-util/devhelp-0.20:

 * 
 * ERROR: dev-util/devhelp-0.20 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 1573:  Called gnome2_src_compile
 *             environment, line 1175:  Called die
 * The specific snippet of code:
 *       emake || die "compile failure"
 *  The die message:
 *   compile failure
 * 
 * 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/devhelp-0.20/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-util/devhelp-0.20/temp/environment'.
 * 
Comment 14 Serkan Kaba (RETIRED) gentoo-dev 2009-03-15 14:53:02 UTC
The ebuild started linking against libxul-embedding which the .pc file comments say a static lib. Maybe we should just revert the configure option to --with-gecko=xulrunner
Comment 15 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-03-15 21:09:23 UTC
that's for xulrunner-1.9 support. Unless you mean that passing xulrunner will link to xulrunner-1.9 too ?
Comment 16 Serkan Kaba (RETIRED) gentoo-dev 2009-03-17 18:21:08 UTC
(In reply to comment #15)
> that's for xulrunner-1.9 support. Unless you mean that passing xulrunner will
> link to xulrunner-1.9 too ?
> 

It didn't but I just got it working to link against libxul (the dynamic lib) with patches to configure.in and the ebuild. The patches will follow.
Comment 17 Serkan Kaba (RETIRED) gentoo-dev 2009-03-17 18:32:59 UTC
Created attachment 185331 [details, diff]
configure.in patch

Patch to allow linking against dynamic xulrunner-1.9
Comment 18 Serkan Kaba (RETIRED) gentoo-dev 2009-03-17 18:33:31 UTC
Created attachment 185332 [details, diff]
Patch against 0.21 ebuild
Comment 19 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-03-17 23:55:21 UTC
if others having this problem could also try those patch, that'd be much appreciated.
Comment 20 Robert Trace 2009-03-18 03:58:13 UTC
(In reply to comment #19)
> if others having this problem could also try those patch, that'd be much
> appreciated.

success++

Compiled, installed and working at least in a basic capacity.

Thanks for the patch.
Comment 21 Marcello Magaldi 2009-03-18 06:06:17 UTC
(In reply to comment #19)
> if others having this problem could also try those patch, that'd be much
> appreciated.
> 

Your patch works like a charm also here.
Comment 22 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-03-21 22:14:52 UTC
pushed in 0.21-r1. Thanks for reporting and producing a patch.