Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 88804 - doomlegacy needs -fPIC
Summary: doomlegacy needs -fPIC
Status: RESOLVED WONTFIX
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: 2005-04-11 20:11 UTC by Luke Worth
Modified: 2007-02-02 01:05 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 Luke Worth 2005-04-11 20:11:40 UTC
I get this error when installing doomlegacy-1.42 on amd64

make[1]: Leaving directory `/var/tmp/portage/doomlegacy-1.42/work/doomlegacy_14 2_src/linux_x/musserv'
gcc  -o ../bin/r_opengl.so -shared -nostartfiles ../objs/r_opengl.o ../objs/ogl _x11.o -L/usr/X11R6/lib -L/usr/local/lib -lX11 -lXext -lGL -lGLU -lm
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: ../objs/r_opengl.o: relocation R_X86_64_32S against `a local symbol' can not be  used when making a shared object; recompile with -fPIC
../objs/r_opengl.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [dll] Error 1
make: *** Waiting for unfinished jobs....

!!! ERROR: games-fps/doomlegacy-1.42 failed.
!!! Function src_compile, Line 80, Exitcode 2
!!! build failed


--------

When i DO recompile with -fPIC, i get this:
gcc -I. -Wall -march=athlon64 -O2 -pipe -fomit-frame-pointer -fPIC -c sequencer.c -o linux/sequencer.o/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: ../objs/r_opengl.o: relocation R_X86_64_32S against `a local symbol' can not be used when making a shared object; recompile with -fPIC
../objs/r_opengl.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [dll] Error 1
make: *** Waiting for unfinished jobs....
gcc -I. -Wall -march=athlon64 -O2 -pipe -fomit-frame-pointer -fPIC  \
linux/musserver.o \
linux/readwad.o \
linux/playmus.o \
linux/sequencer.o -o linux/musserver
make[1]: Leaving directory `/var/tmp/portage/doomlegacy-1.42/work/doomlegacy_142_src/linux_x/musserv'

!!! ERROR: games-fps/doomlegacy-1.42 failed.
!!! Function src_compile, Line 80, Exitcode 2
!!! build failed

Which is, in fact, the same error.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Portage 2.0.51.19 (default-linux/amd64/2005.0, gcc-3.4.3,
glibc-2.3.4.20041102-r1, 2.6.9-gentoo-r14 x86_64)
=================================================================
System uname: 2.6.9-gentoo-r14 x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Mar  2 2005, 08:31:06)]
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.5, 1.8.5-r3, 1.6.3, 1.9.4, 1.7.9-r1, 1.4_p6
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r4
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer -fPIC"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer -fPIC"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox"
GENTOO_MIRRORS="ftp://mirror.pacific.net.au/linux/Gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X Xaw3d aalib acpi alsa artswrappersuid artworkextra berkdb
bitmap-fonts cdr crypt cups curl doc dvd emacs encode esd extras fam flac
font-server foomaticdb fortran gdbm gif gnome gpm gprof gstreamer gtk gtk2 hal
howl imagemagick imlib jabber jack java jp2 jpeg junit kde kdeenablefinal
kdexdeltas libwww lzw lzw-tiff mad module motif mozilla mp3 mpeg ncurses
nozaptel nptl nptlonly ogg oggvorbis opengl oss pam perl png ppds python qt
readline sdl slang spell ssl tcltk tcpd tetex theora threads tiff truetype
truetype-fonts type1-fonts usb userlocales vorbis xine xml xml2 xmms xosd xpm
xrandr xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Jim Laflin 2005-08-01 13:25:43 UTC
Same problem here...probably why it isn't keyworded ~amd64...

Jim
Comment 2 Tristan Heaven (RETIRED) gentoo-dev 2007-02-02 01:05:09 UTC
Removed from the tree.