Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 123546

Summary: fPIC error when compiling dev-perl/Geo-IP-1.25
Product: Gentoo Linux Reporter: John Alberts <john.m.alberts>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: VERIFIED WORKSFORME    
Severity: normal CC: mreedsmith
Priority: High    
Version: 2005.1   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description John Alberts 2006-02-20 14:48:26 UTC
I recently got an fPIC error when compiling Geo-IP on my machine. I searched the forums and bugzilla, but didn't see anything about this error. I tried compiling the source from MaxMind and got the same error.

Here is the error I received from compiling Geo-IP-1.25:

Running Mkbootstrap for Geo::IP ()
chmod 644 IP.bs
rm -f blib/arch/auto/Geo/IP/IP.so
LD_RUN_PATH="/usr/local/lib64" x86_64-pc-linux-gnu-gcc  -shared IP.o  -o blib/arch/auto/Geo/IP/IP.so   -lGeoIP
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../lib64/libGeoIP.a(GeoIP.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../lib64/libGeoIP.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [blib/arch/auto/Geo/IP/IP.so] Error 1

!!! ERROR: dev-perl/Geo-IP-1.25 failed.
!!! Function perl-module_src_compile, Line 125, Exitcode 2 

Here is my emerge --info:

Portage 2.0.53 (default-linux/amd64/2005.1/vserver, gcc-3.4.4, glibc-2.3.5-r2, 2.6.14-vs2.0.1-gentoo x86_64)
=================================================================
System uname: 2.6.14-vs2.0.1-gentoo x86_64 Intel(R) Xeon(TM) CPU 3.40GHz
Gentoo Base System version 1.6.13
ccache version 2.3 [disabled]
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -fomit-frame-pointer -mfpmath=sse -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=nocona -O2 -fomit-frame-pointer -mfpmath=sse -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://mirrors.tds.net/gentoo http://mirror.datapipe.net/gentoo ftp://mirror.iawnet.sandia.gov/pub/gentoo/"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 apache2 berkdb bitmap-fonts bzip2 crypt curl eds emboss encode expat fastcgi fortran gd gdbm geoip gif gpm imlib ipv6 jpeg libwww lzw lzw-tiff mhash mysql ncurses nls nptl pam pcre pdflib perl php png python readline sdl session sftplogging spell ssl tcpd tiff truetype truetype-fonts type1-fonts usb userlocales vhosts xattr xml2 xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-02-20 14:53:56 UTC
fixed in >=dev-libs/geoip-1.3.13
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-02-22 17:48:39 UTC
*** Bug 123770 has been marked as a duplicate of this bug. ***
Comment 3 John Alberts 2006-02-22 20:44:40 UTC
>=dev-libs/geoip-1.3.13 compiles fine for me, but it doesn't seem to work with awstats.  I read in a forum post that you need both geoip and Geo-IP for geoip to work in awstats.
It's not clear to me what the actual difference is or why there are 2 packages with virtually the same name.
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-02-23 14:40:38 UTC
(In reply to comment #3)
> >=dev-libs/geoip-1.3.13 compiles fine for me, but it doesn't seem to work with awstats.

See Bug 103663, there's an ebuild with instructions.