Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 31981 - sys-libs/libcap-1.10-r3 needs -fPIC to emerge on ~amd64
Summary: sys-libs/libcap-1.10-r3 needs -fPIC to emerge on ~amd64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-25 10:35 UTC by Emmanuel Roger
Modified: 2003-11-04 17:23 UTC (History)
1 user (show)

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 Emmanuel Roger 2003-10-25 10:35:13 UTC
emerge libcap (which is a dependency of net-misc/ntp) fails 

Reproducible: Always
Steps to Reproduce:
1. emerge libcap
2.
3.
Actual Results:  
emerging libcap produces the following error:

ld -x -shared -o libcapmodule.so libcap_wrap.o cap_alloc.o cap_proc.o
cap_extint.o cap_flag.o cap_text.o cap_sys.o
ld: libcap_wrap.o: relocation R_X86_64_32 can not be used when making a shared
object; recompile with -fPIC
libcap_wrap.o: could not read symbols: Bad value
make[1]: *** [libcapmodule.so] Error 1
make[1]: Leaving directory `/var/tmp/portage/libcap-1.10-r3/work/libcap-1.10/libcap'
make: *** [all] Error 2
 
!!! ERROR: sys-libs/libcap-1.10-r3 failed.
!!! Function src_compile, Line 44, Exitcode 2
!!! (no error message)

Expected Results:  
emerging with:  CFLAGS="-O2 -pipe -fPIC" emerge libcap

>>> sys-libs/libcap-1.10-r3 merged.

Portage 2.0.49-r15 (default-amd64-1.4, gcc-3.3.1, glibc-2.3.2-r6, 2.4.22)
=================================================================
System uname: 2.4.22 x86_64 5
Gentoo Base System version 1.4.3.11
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.skynet.be/gentoo-portage"
USE="amd64 3dnow apm crypt gif imlib jpeg libg++ libwww mmx mpeg ncurses nls
pdflib png spell sse truetype xml2 zlib gdbm berkdb slang readline gpm tcpd pam
ssl perl python imlib2 tiff -oss -arts -avi --cups -encode -foomaticdb -gtk
--java -kde -gnome -mikmod -motif -oggvorbis -opengl --qt -quicktime -sdl -X
-xmms -xv"
Comment 1 Brad House 2003-11-04 17:23:34 UTC
done