Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 49583 - emerge app-sci/pari-2.1.5-r2 fails on amd64
Summary: emerge app-sci/pari-2.1.5-r2 fails on amd64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Danny van Dyk (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-01 01:56 UTC by Herbie Hopkins (RETIRED)
Modified: 2004-05-08 03:25 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 Herbie Hopkins (RETIRED) gentoo-dev 2004-05-01 01:56:22 UTC
emerge app-sci/pari-2.1.5-r2 fails on amd64 with:

/usr/bin/ld -o libpari.so.2.1.5 -shared -soname libpari.so.1 -lc -lm kernel.o mp.o alglin1.o alglin2.o arith1.o arith2.o base1.o base2.o base3.o base4.o base5.o bibli1.o bibli2.o buch1.o buch2.o buch3.o buch4.o galconj.o gen1.o gen2.o gen3.o ifactor1.o polarit1.o polarit2.o polarit3.o rootpol.o subgroup.o trans1.o trans2.o trans3.o elliptic.o galois.o kummer.o mpqs.o nffactor.o stark.o subfield.o thue.o anal.o compat.o errmsg.o es.o helpmsg.o init.o sumiter.o mpinl.o
/usr/bin/ld: kernel.o: relocation R_X86_64_32S can not be used when making a shared object; recompile with -fPIC
kernel.o: could not read symbols: Bad value
make[1]: *** [libpari.so.2.1.5] Error 1

Setting CFLAGS="${CFLAGS} -fPIC" enables it to compile and run flawlessly so can we add this to the ebuild please.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Portage 2.0.50-r6 (default-amd64-2004.0, gcc-3.3.3, glibc-2.3.2-r9, 2.6.5-gentoo-r1)
=================================================================
System uname: 2.6.5-gentoo-r1 x86_64 4
Gentoo Base System version 1.4.9
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-O3 -pipe -fomit-frame-pointer"
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/lib/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/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/
http://gentoo.mirror.sdv.fr"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/home/herbie/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage.local"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="S3TC X acpi alsa amd64 apm avi berkdb cdr crypt cups dga directfb dvd
encode esd evo faad fam fbcon flac flash foomaticdb gd gdbm gif gimpprint gnome
gphoto2 gpm gtk gtk2 imap imlib jpeg libg++ libwww mad maildir mbox mikmod motif
mozaccess-builtin mozilla mozirc mozxmlterm mpeg ncurses nls nogcj nptl nvidia
oggvorbis opengl oss pam pdflib perl plotutils png python qt quicktime readline
samba sdl slang spell ssl tcpd tetex tiff truetype usb xface xinerama xml2 xmms
xv xvid zlib"
Comment 1 Danny van Dyk (RETIRED) gentoo-dev 2004-05-06 15:33:25 UTC
Have to take a look at that tomorrow. Generally, only adjusting CFLAGS is not
the solution we prefer.
Comment 2 Danny van Dyk (RETIRED) gentoo-dev 2004-05-08 03:25:22 UTC
Fixed. The shared library now gets built with -fPIC, anything else _not_.