Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 230287 - net-www/gnash-0.8.3 - ld: recompile with -fPIC
Summary: net-www/gnash-0.8.3 - ld: recompile with -fPIC
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: HPPA Linux
: High normal (vote)
Assignee: Stefan Schweizer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on: 230529
Blocks: 229427
  Show dependency tree
 
Reported: 2008-07-01 03:42 UTC by Jeroen Roovers (RETIRED)
Modified: 2009-09-08 05:25 UTC (History)
4 users (show)

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


Attachments
net-www:gnash-0.8.3:20080630-150954.log [hppa] (20080630-150954.log,256.64 KB, text/plain)
2008-07-01 03:43 UTC, Jeroen Roovers (RETIRED)
Details
net-www:gnash-0.8.3:20080626-195001.log.gz [hppa] (20080626-195001.log.gz,8.96 KB, text/plain)
2008-07-01 04:24 UTC, Jeroen Roovers (RETIRED)
Details
gnash-0.8.3-boost-dynamic-link-v2.patch (gnash-0.8.3-boost-dynamic-link-v2.patch,1.44 KB, patch)
2008-07-01 05:09 UTC, Peter Alfredsen (RETIRED)
Details | Diff
net-www:gnash-0.8.3:20080701-162409.log.gz (20080701-162409.log.gz,212.70 KB, text/plain)
2008-07-02 14:17 UTC, Jeroen Roovers (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeroen Roovers (RETIRED) gentoo-dev 2008-07-01 03:42:52 UTC
hppa2.0-unknown-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -DPLUGINSDIR=\"/usr/lib/
gnash/plugins\" -DSYSCONFDIR=\"/etc\" -I.. -I. -I.. -I../libnet -I../libamf -I..
/server -I../server/swf -pthread -I/usr/include/libxml2 -I/usr/include/SDL -D_GN
U_SOURCE=1 -D_REENTRANT -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pth
read -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/i
nclude -I/usr/include/libxml2 -I/usr/X11R6/include -O2 -fno-omit-frame-pointer -
pipe -mschedule=8000 -march=2.0 -g -ggdb -Wall -pthread -pthread -W -Wall -Wcast
-align -Wcast-qual -Wpointer-arith -Wreturn-type -fvisibility-inlines-hidden -MT
 libgnashbase_la-arg_parser.lo -MD -MP -MF .deps/libgnashbase_la-arg_parser.Tpo
-c arg_parser.cpp -o libgnashbase_la-arg_parser.o >/dev/null 2>&1
mv -f .deps/libgnashbase_la-arg_parser.Tpo .deps/libgnashbase_la-arg_parser.Plo
mv -f .deps/libgnashbase_la-FLVParser.Tpo .deps/libgnashbase_la-FLVParser.Plo
/bin/sh ../libtool --tag=CXX   --mode=link hppa2.0-unknown-linux-gnu-g++  -O2 -f
no-omit-frame-pointer -pipe -mschedule=8000 -march=2.0 -g -ggdb -Wall -pthread -
pthread     -W     -Wall     -Wcast-align     -Wcast-qual     -Wpointer-arith
  -Wreturn-type      -fvisibility-inlines-hidden -release 0.8.3 -Wl,--as-needed
-o libgnashbase.la -rpath /usr/lib/gnash  libgnashbase_la-extension.lo libgnashb
ase_la-image.lo  libgnashbase_la-jpeg.lo libgnashbase_la-log.lo libgnashbase_la-
memory.lo libgnashbase_la-rc.lo libgnashbase_la-shm.lo libgnashbase_la-sharedlib
.lo libgnashbase_la-string_table.lo libgnashbase_la-tu_file.lo  libgnashbase_la-
ClockTime.lo libgnashbase_la-WallClockTimer.lo libgnashbase_la-utf8.lo libgnashb
ase_la-utility.lo libgnashbase_la-curl_adapter.lo libgnashbase_la-noseek_fd_adap
ter.lo libgnashbase_la-zlib_adapter.lo libgnashbase_la-URL.lo libgnashbase_la-Lo
adThread.lo libgnashbase_la-FLVParser.lo libgnashbase_la-GC.lo libgnashbase_la-B
itsReader.lo libgnashbase_la-arg_parser.lo -ljpeg  -L/lib -lz  -lcurl   -lltdl -
lboost_thread-mt-s -lboost_date_time-mt-s -lpthread   -lc -lrt -lX11 -lXi -lm
hppa2.0-unknown-linux-gnu-g++ -shared -nostdlib /usr/lib/gcc/hppa2.0-unknown-lin
ux-gnu/4.1.2/../../../crti.o /usr/lib/gcc/hppa2.0-unknown-linux-gnu/4.1.2/crtbeg
inS.o  .libs/libgnashbase_la-extension.o .libs/libgnashbase_la-image.o .libs/lib
gnashbase_la-jpeg.o .libs/libgnashbase_la-log.o .libs/libgnashbase_la-memory.o .libs/libgnashbase_la-rc.o .libs/libgnashbase_la-shm.o .libs/libgnashbase_la-sharedlib.o .libs/libgnashbase_la-string_table.o .libs/libgnashbase_la-tu_file.o .libs/libgnashbase_la-ClockTime.o .libs/libgnashbase_la-WallClockTimer.o .libs/libgnashbase_la-utf8.o .libs/libgnashbase_la-utility.o .libs/libgnashbase_la-curl_adapter.o .libs/libgnashbase_la-noseek_fd_adapter.o .libs/libgnashbase_la-zlib_adapter.o .libs/libgnashbase_la-URL.o .libs/libgnashbase_la-LoadThread.o .libs/libgnashbase_la-FLVParser.o .libs/libgnashbase_la-GC.o .libs/libgnashbase_la-BitsReader.o .libs/libgnashbase_la-arg_parser.o  /usr/lib/libjpeg.so -L/lib -lz /usr/lib/libcurl.so -L/usr/lib /usr/lib/libltdl.so -lboost_thread-mt-s -lboost_date_time-mt-s -lpthread -lrt /usr/lib/libX11.so /usr/lib/libXi.so -L/usr/lib/gcc/hppa2.0-unknown-linux-gnu/4.1.2 -L/usr/lib/gcc/hppa2.0-unknown-linux-gnu/4.1.2/../../../../hppa2.0-unknown-linux-gnu/lib -L/usr/lib/gcc/hppa2.0-unknown-linux-gnu/4.1.2/../../.. -lstdc++ -lm -lgcc -lc -lgcc_s /usr/lib/gcc/hppa2.0-unknown-linux-gnu/4.1.2/crtendS.o /usr/lib/gcc/hppa2.0-unknown-linux-gnu/4.1.2/../../../crtn.o  -mschedule=8000 -march=2.0 -pthread -pthread -Wl,--as-needed -Wl,-soname -Wl,libgnashbase-0.8.3.so -o .libs/libgnashbase-0.8.3.so
/usr/lib/gcc/hppa2.0-unknown-linux-gnu/4.1.2/../../../../hppa2.0-unknown-linux-gnu/bin/ld: /usr/lib/libboost_thread-mt-s.a(thread.o): relocation R_PARISC_DPREL21L can not be used when making a shared object; recompile with -fPIC
/usr/lib/libboost_thread-mt-s.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [libgnashbase.la] Error 1
make[2]: Leaving directory `/mnt/alt/portage-tmp/portage/net-www/gnash-0.8.3/work/gnash-0.8.3/libbase'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/alt/portage-tmp/portage/net-www/gnash-0.8.3/work/gnash-0.8.3'
make: *** [all] Error 2
 *
 * ERROR: net-www/gnash-0.8.3 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3003:  Called die
 * The specific snippet of code:
 *       emake || die "emake failed"
 *  The die message:
 *   emake failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/keeps/gentoo/emergelogs/elmer/net-www:gnash-0.8.3:20080630-150954.log'.
 * The ebuild environment file is located at '/mnt/alt/portage-tmp/portage/net-www/gnash-0.8.3/temp/environment'.

Tue Jul  1 05:41:28 CEST 2008
Portage 2.2_rc1 (default-linux/hppa/2007.0, gcc-4.1.2, glibc-2.7-r2, 2.6.25-gentoo-r5-JeR parisc)
=================================================================
System uname: Linux-2.6.25-gentoo-r5-JeR-parisc-PA8700_-PCX-W2-with-glibc2.2
Timestamp of tree: Tue, 01 Jul 2008 00:16: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-r5
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-r2
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 -fno-omit-frame-pointer -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 -fno-omit-frame-pointer -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 agg 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 ithreads 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 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 subversion 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-07-01 03:43:30 UTC
Created attachment 159047 [details]
net-www:gnash-0.8.3:20080630-150954.log [hppa]
Comment 2 Peter Alfredsen (RETIRED) gentoo-dev 2008-07-01 04:18:14 UTC
I'll just scratch myself and go: "huh?". This looks so like the amd64 problem that was solved in tree with gnash-0.8.3-boost-dynamic-link.patch, so even though I know your emerge --info says you synced today, I have to ask if you're sure of the info.
If so, could you give me the output of:
ls -la /usr/lib/libboost_thread*.so
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2008-07-01 04:24:44 UTC
Created attachment 159051 [details]
net-www:gnash-0.8.3:20080626-195001.log.gz [hppa]

(In reply to comment #2)
> I'll just scratch myself and go: "huh?". This looks so like the amd64 problem
> that was solved in tree with gnash-0.8.3-boost-dynamic-link.patch, so even
> though I know your emerge --info says you synced today, I have to ask if you're
> sure of the info.

I am quite sure. As proof, I attach a similar build log that is a few days older than that patch's inclusion. :)

> If so, could you give me the output of:
> ls -la /usr/lib/libboost_thread*.so

-rwxr-xr-x 1 root root 79072 2008-06-25 20:19 /usr/lib/libboost_thread-mt.so
lrwxrwxrwx 1 root root    21 2008-06-25 20:25 /usr/lib/libboost_thread.so -> libboost_thread-mt.so
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2008-07-01 04:43:58 UTC
I haven't finished building yet (takes around an hour on this system), but with -fPIC -DPIC in CFLAGS/CXXFLAGS, the build easily cruises past where it fails to compile/link libgnash in the attached build logs.
Comment 5 Peter Alfredsen (RETIRED) gentoo-dev 2008-07-01 05:09:50 UTC
Created attachment 159055 [details, diff]
gnash-0.8.3-boost-dynamic-link-v2.patch

Could I possibly lure you into trying this patch instead of the original. I'm guessing that somehow shlibext gets set to "a" on hppa and that y'all need the blunt way of telling what to link against.
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2008-07-02 14:17:52 UTC
Created attachment 159325 [details]
net-www:gnash-0.8.3:20080701-162409.log.gz

It still fails, if later in the process.
Comment 7 Peter Alfredsen (RETIRED) gentoo-dev 2008-07-02 14:59:40 UTC
(In reply to comment #6)
> Created an attachment (id=159325) [edit]
> net-www:gnash-0.8.3:20080701-162409.log.gz
> 
> It still fails, if later in the process.
> 

That's boost failing, see bug 230529.
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2008-07-02 15:45:27 UTC
(In reply to comment #7)
> (In reply to comment #6)
> > Created an attachment (id=159325) [edit]
> > net-www:gnash-0.8.3:20080701-162409.log.gz
> > 
> > It still fails, if later in the process.
> > 
> 
> That's boost failing, see bug 230529.

I assumed as much. I downgraded boost to the current stable and am now yet again building gnash. If that works (and maybe displays some annoying ads in firefox) then we can probably commit this patch and close the bug. :)
Comment 9 Jeroen Roovers (RETIRED) gentoo-dev 2008-07-03 10:16:15 UTC
Against =dev-libs/boost-1.34.1-r2 it does build. Of course, it ran out of space on /dev/shm while installing, so I haven't been able to test it yet[1], but so far so good.

[1] Is the test suite any good?
Comment 10 Peter Alfredsen (RETIRED) gentoo-dev 2008-07-07 19:25:10 UTC
(In reply to comment #9)

> [1] Is the test suite any good?


If you read the ewarn at the end about the expected failures. I suspect they have to do with our missing test-programs.
Comment 11 Peter Alfredsen (RETIRED) gentoo-dev 2008-09-01 21:13:29 UTC
Bug 230529 is fixed, I have committed the updated dynamic-link patch
+  01 Sep 2008; Peter Alfredsen <loki_val@gentoo.org>
+  files/gnash-0.8.3-boost-dynamic-link.patch:
+  Update dynamic link patch to always link dynamic, bug 230287
+
Marking as fixed.
Comment 12 Chí-Thanh Christopher Nguyễn gentoo-dev 2009-09-08 05:25:43 UTC
gnash-0.8.5 dropped the patch and now suffers from this problem again.