When I try to build geos-2.2.3 on any of my AMD64 boxen, I get the following
error (while it builds PyGEOS):
creating build/temp.linux-x86_64-2.5
x86_64-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -march=athlon64 -O2
-fomit-frame-pointer -pipe -fPIC -I../../source/headers
-I../../source/headers/geos -I/usr/include/python2.5 -c geos_wrap.cxx -o
build/temp.linux-x86_64-2.5/geos_wrap.o
geos_wrap.cxx: In function ‘PyObject* _wrap_Geometry_srid_set(PyObject*,
PyObject*)’:
geos_wrap.cxx:24174: warning: passing ‘double’ for argument 1 to ‘virtual
void geos::Geometry::setSRID(int)’
x86_64-pc-linux-gnu-g++ -pthread -shared -march=athlon64 -O2
-fomit-frame-pointer -pipe build/temp.linux-x86_64-2.5/geos_wrap.o
../../source/geom/.libs/libgeos.a -L/usr/lib64 -lstdc++ -lpython2.5 -o
build/lib.linux-x86_64-2.5/_geos.so
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld:
../../source/geom/.libs/libgeos.a(Coordinate.o): relocation R_X86_64_32 against
`a local symbol' can not be used when making a shared object; recompile with
-fPIC
../../source/geom/.libs/libgeos.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
error: command 'x86_64-pc-linux-gnu-g++' failed with exit status 1
It should be noted that this error occurs on a new system as well as systems
which already have existing installs of geos-2.2.3. I also get the same error
with geos-2.2.1, though for some reason it does not cause the emerge to fail.
Reproducible: Always
This is from one of my systems that has geos-2.2.3 installed, but now can't
reinstall it.
Portage 2.1.3.19 (default-linux/amd64/2007.0/desktop, gcc-4.1.2,
glibc-2.6.1-r0, 2.6.23-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.23-gentoo-r3 x86_64 AMD Turion(tm) 64 X2
Timestamp of tree: Mon, 28 Jan 2008 13:46:01 +0000
app-shells/bash: 3.2_p17-r1
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python: 2.5.1-r5
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox: 1.2.18.1-r2
sys-devel/autoconf: 2.13, 2.61-r1
sys-devel/automake: 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils: 2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool: 1.5.24
virtual/os-headers: 2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf
/etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c
/etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="candy distlocks metadata-transfer parallel-fetch sandbox sfperms
strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.mirrors.tds.net/gentoo
http://prometheus.cs.wmich.edu/gentoo http://cudlug.cudenver.edu/gentoo/
http://mirror.datapipe.net/gentoo http://gentoo.mirrors.pair.com/
http://distro.ibiblio.org/pub/linux/distributions/gentoo/
http://mirror.usu.edu/mirrors/gentoo/ http://mirror.mcs.anl.gov/pub/gentoo/
http://gentoo.osuosl.org/ http://www.gtlib.gatech.edu/pub/gentoo"
LANG="en_US.UTF-8"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude=/distfiles --exclude=/local --exclude=/packages
--filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi aiglx aim alsa amd64 artworkextra
audiofile avahi bash-completion berkdb bitmap-fonts branding bzip2 cairo cddb
cdr cli cracklib crypt cups curl dbus divx dri dts dvd dvdnav dvdr dvdread dvi
eds emboss encode evo ffmpeg fftw firefox fortran gd gdbm gedit gif gimp glitz
glut gmedia gnome gnutls gps gstreamer gtk gtkhtml hal hddtemp hdf howl
howl-compat iconv ieee1394 ipod ipv6 isdnlog java jpeg jpeg2k kerberos keyring
lapack latex lcms libnotify libsamplerate libsexy live lm_sensors mad midi
mikmod mmx mmxext mng mozbranding mozilla mozsvg mp3 mpeg mudflap musicbrainz
nautilus ncurses netcdf network networkmanager nls no-old-linux nocd nptl
nptlonly nsplugin numeric nvidia ogg opengl openmp pam pcre pdf perl png pppd
profile python qt3 qt3support qt4 quicktime readline realmedia reflection
replytolist rtc sdl session spell spl sse sse2 ssl ssse3 startup-notification
subversion svg syntax szip t1lib tagwriting tcpd threads tiff tk truetype
truetype-fonts type1-fonts udunits unicode usb vorbis wmf wmp wxwindows
xcomposite xml xorg xprint xulrunner xv xvid xvmc zlib" ALSA_CARDS="hda-intel"
ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file
hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route
share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias
authn_anon authn_dbm authn_default authn_file authz_dbm authz_default
authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs
dav_lock deflate dir disk_cache env expires ext_filter file_cache filter
headers include info log_config logio mem_cache mime mime_magic negotiation
rewrite setenvif speling status unique_id userdir usertrack vhost_alias"
ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses
text" USERLAND="GNU" VIDEO_CARDS="nvidia nv"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS,
LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS