Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 294388 - games-fps/quakeforge won't build without -fPIC on amd64
Summary: games-fps/quakeforge won't build without -fPIC on amd64
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-24 10:19 UTC by Anton Romanov
Modified: 2012-06-17 11:27 UTC (History)
3 users (show)

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


Attachments
info (info,3.91 KB, text/plain)
2009-11-24 10:20 UTC, Anton Romanov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Romanov 2009-11-24 10:19:54 UTC
/bin/sh ../../../libtool --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc -prefer-pic -march=native -O2 -pipe -pipe -Wall -fno-common -version-info 1:0:0 -rpath /usr/games/lib64/quakeforge -module -avoid-version -Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -Wl,--as-needed -o cd_file.la cd_file.o  -lm

*** Warning: Linking the shared library cd_file.la against the non-libtool
*** objects  cd_file.o is not portable!
libtool: link: x86_64-pc-linux-gnu-gcc -shared   cd_file.o   -Wl,--as-needed -lm  -march=native -Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common   -Wl,-soname -Wl,cd_file.so -o .libs/cd_file.so
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.2/../../../../x86_64-pc-linux-gnu/bin/ld: cd_file.o: relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
cd_file.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
Comment 1 Anton Romanov 2009-11-24 10:20:59 UTC
Created attachment 211048 [details]
info

=emerge --info
Comment 2 Brent Busby 2010-06-25 15:04:09 UTC
This looks like a re-emergence (no pun intended) of bug #165523, which similarly caused a failed build because the Makefile was trying to compile without -fPIC.  It seems like there are a lot of places in the Quakeforge code that are like this, since it was originally written for x86 only.

The earlier bug #165523 was fixed by using a patch that FreeBSD's packages are using to fix the same bug in Quakeforge.  Could something like that be done again here with cd_file.so?  I've only recently started using Gentoo heavily, so I don't know where in the ebuild structure such patching would go, to try this myself.  It makes me wonder how many -fPIC's need to be put in there to fix it all.
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2012-06-17 11:27:02 UTC
This doesn't seem to be an issue anymore with quakeforge-0.5.5-r2.