Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 114591 - postgresql-8.0.3 emerge fails on AMD64 (-fpic problem?)
Summary: postgresql-8.0.3 emerge fails on AMD64 (-fpic problem?)
Status: RESOLVED DUPLICATE of bug 114371
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-05 20:30 UTC by Scott
Modified: 2007-09-22 23:43 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 Scott 2005-12-05 20:30:29 UTC
emerge postgresql fails with the following error:

make[3]: Entering directory `/var/tmp/portage/postgresql-8.0.3/work/postgresql-8
          .0.3/src/pl/plperl'
x86_64-pc-linux-gnu-gcc -march=athlon64 -O2 -pipe -Wall -Wmissing-prototypes -Wp
          ointer-arith -Wdeclaration-after-statement -Wold-style-definition
-Wendif-labels            -fno-strict-aliasing -fpic -I. -I../../../src/include
-D_GNU_SOURCE  -I/usr/lib           /perl5/5.8.7/x86_64-linux/CORE  -c -o
plperl.o plperl.c -MMD
x86_64-pc-linux-gnu-gcc -march=athlon64 -O2 -pipe -Wall -Wmissing-prototypes -Wp
          ointer-arith -Wdeclaration-after-statement -Wold-style-definition
-Wendif-labels            -fno-strict-aliasing -fpic -I. -I../../../src/include
-D_GNU_SOURCE  -I/usr/lib           /perl5/5.8.7/x86_64-linux/CORE  -c -o
spi_internal.o spi_internal.c -MMD
"/usr/bin/perl" /usr/lib/perl5/5.8.7/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.8
          .7/ExtUtils/typemap SPI.xs >SPI.c
x86_64-pc-linux-gnu-gcc -march=athlon64 -O2 -pipe -Wall -Wmissing-prototypes -Wp
          ointer-arith -Wdeclaration-after-statement -Wold-style-definition
-Wendif-labels            -fno-strict-aliasing -fpic -I. -I../../../src/include
-D_GNU_SOURCE  -I/usr/lib           /perl5/5.8.7/x86_64-linux/CORE  -c -o SPI.o
SPI.c -MMD
ar crs libplperl.a plperl.o spi_internal.o SPI.o
x86_64-pc-linux-gnu-ranlib libplperl.a
x86_64-pc-linux-gnu-gcc -march=athlon64 -O2 -pipe -Wall -Wmissing-prototypes -Wp
          ointer-arith -Wdeclaration-after-statement -Wold-style-definition
-Wendif-labels            -fno-strict-aliasing -fpic -shared
-Wl,-soname,libplperl.so.0  plperl.o spi_int           ernal.o SPI.o
-L../../../src/port /usr/lib/perl5/5.8.7/x86_64-linux/auto/DynaLoa          
der/DynaLoader.a -L/usr/lib/perl5/5.8.7/x86_64-linux/CORE -lperl -lpthread -lnsl
           -ldl -lm -lcrypt -lutil -lc 
-Wl,-rpath,/usr/lib/perl5/5.8.7/x86_64-linux/CORE            -o libplperl.so.0.0
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld: /
         
usr/lib/perl5/5.8.7/x86_64-linux/auto/DynaLoader/DynaLoader.a(DynaLoader.o): rel
          ocation R_X86_64_32 against `a local symbol' can not be used when
making a share           d object; recompile with -fPIC
/usr/lib/perl5/5.8.7/x86_64-linux/auto/DynaLoader/DynaLoader.a: could not read s
          ymbols: Bad value
collect2: ld returned 1 exit status
make[3]: *** [libplperl.so.0.0] Error 1
make[3]: Leaving directory `/var/tmp/portage/postgresql-8.0.3/work/postgresql-8.
          0.3/src/pl/plperl'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/postgresql-8.0.3/work/postgresql-8.
          0.3/src/pl'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/postgresql-8.0.3/work/postgresql-8.
          0.3/src'
make: *** [all] Error 2


Reproducible: Always
Steps to Reproduce:
1. emerge postgresql


Actual Results:  
See above - failure during linking.

Expected Results:  
Installed postgresql.

The problem appears to be the use of -fpic on compile; however, my CCFLAGS do
not specify fpic nor am I using the pic USE flag.  

# emerge info
Portage 2.0.51.22-r3 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r2,
2.6.9-gentoo-r6 x86_64)
=================================================================
System uname: 2.6.9-gentoo-r6 x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  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=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /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/lib64/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/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org/
ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo/
http://csociety-ftp.ecn.purdue.edu/pub/gentoo/
http://gentoo.chem.wisc.edu/gentoo/ http://mirrors.tds.net/gentoo
http://open-systems.ufl.edu/mirrors/gentoo http://gentoo.mirrored.ca
http://mirror.datapipe.net/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X aalib acl aim alsa apache2 apm arts audiofile avi berkdb
bitmap-fonts bonobo bzip2 cdr crypt cups curl curlwrappers divx4linux doc dvb
dvd dvdr eds emboss encode esd ethereal evo exif expat fam fbcon festival ffmpeg
flac foomaticdb fortran ftp gd gdbm glut gnome gphoto2 gpm gps gstreamer gtk
gtk2 guile icq idn imagemagick imlib ipv6 jabber java joystick jpeg junit kde
kerberos krb4 lcms libgda libwww lua lzw lzw-tiff mad maildir mbox memlimit
mhash mikmod mime mng mozilla mp3 mpeg msql mysql mysqli ncurses nls nsplugin
odbc offensive ofx ogg oggvorbis openal opengl pam pcre pda pdflib perl
plotutils png ppds prelude print python qt quicktime readline recode samba sdl
shape sharedmem slang slp soap sockets socks5 sox speex spell spl ssl tcltk tcpd
tetex tiff truetype truetype-fonts type1-fonts unicode usb userlocales videos
vorbis xine xinerama xml xml2 xmms xpm xv xvid zlib userland_GNU kernel_linux
elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-12-05 23:20:37 UTC

*** This bug has been marked as a duplicate of 114371 ***