Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 39255 - kudzu recompile with -fPIC
Summary: kudzu recompile with -fPIC
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High major
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-24 09:21 UTC by anthony
Modified: 2004-02-06 07:24 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 anthony 2004-01-24 09:21:06 UTC
From amd64-tech-notes.html:
"  There used to be issues with the lack of -fPIC being specified when building shared objects, the reasoning is in this mailing list post: 
 Porting to Hammer -- scan down to "Shared libraries must be compiled with -fPIC". 
 If you find any packages that complain about needing -fPIC to run/link properly, please notify us immediately, as we need to update that package. Please do not specify -fPIC in your global CFLAGS as that is not an acceptable solution, and just a workaround. "

Reproducible: Always
Steps to Reproduce:
1. emerge sys-apps/kudzu


Actual Results:  
ranlib libkudzu_loader.a 
for ver in python2.2 ; do \ 
        if [ ! -f "$ver/_kudzumodule.so" -o libkudzu.a -nt 
"$ver/_kudzumodule.so" ]; then \ 
                mkdir -p $ver ;\ 
                gcc  -Wall -D_GNU_SOURCE -g -I. -DVERSION=\"0.99.99\" 
-I/usr/include/$ver -fpic -c -o $ver/kudzumodule.o kudzumodule.c ;\ 
                gcc -o $ver/_kudzumodule.so $ver/kudzumodule.o -shared 
-Wl,-soname,_kudzumodule.so -L. -lkudzu -lpci ;\ 
        fi ; \ 
done 
kudzumodule.c:61: warning: `numClassEntries' defined but not used 
kudzumodule.c:85: warning: `numBusEntries' defined but not used 
kudzumodule.c:93: warning: `numModeEntries' defined but not used 
/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.2/../../../../x86_64-pc-linux-gnu/bin/ld: /lib64/libpci.a(access.o): 
relocation R_X86_64_32S can not be used when making a shared object; recompile 
with -fPIC 
/lib64/libpci.a: could not read symbols: Bad value 
collect2: ld returned 1 exit status 
make: *** [_kudzumodule.so] Error 1 
 
!!! ERROR: sys-apps/kudzu-0.99.99 failed. 
!!! Function src_compile, Line 18, Exitcode 2 
!!! (no error message) 
 

Expected Results:  
Compiled 

root@insanity anthony # emerge info 
Portage 2.0.49-r21 (default-amd64-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.1-gentoo) 
================================================================= 
System uname: 2.6.1-gentoo x86_64 4 
Gentoo Base System version 1.4.3.12 
ACCEPT_KEYWORDS="amd64" 
AUTOCLEAN="yes" 
CFLAGS="-O2 -pipe" 
CHOST="x86_64-pc-linux-gnu" 
COMPILER="gcc3" 
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 
CXXFLAGS="-O2 -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs ccache sandbox" 
GENTOO_MIRRORS="http://gentoo.oregonstate.edu 
http://distro.ibiblio.org/pub/Linux/distributions/gentoo" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="3dnow X alsa amd64 apm arts avi berkdb cdr crypt cups dvd encode 
foomaticdb gdbm gif gpm gtk2 imlib jpeg kde libg++ libwww mikmod mmx motif mpeg 
ncurses nls oggvorbis opengl pam pda pdflib perl png python qt quicktime 
readline samba sdl slang spell sse ssl tcpd tif truetype xml2 xmms xv zlib"
Comment 1 Daniel Ahlberg (RETIRED) gentoo-dev 2004-02-06 07:24:27 UTC
pciutils was fixed 2004/01/25, re-emerge pciutils and kudzu should compile.