Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 65627 - app-admin/amanda-2.2.4_p3 does not compile on AMD64
Summary: app-admin/amanda-2.2.4_p3 does not compile on AMD64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-27 21:11 UTC by matts
Modified: 2004-12-18 09:16 UTC (History)
0 users

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 matts 2004-09-27 21:11:39 UTC
Emerging app-admin/amanda-2.2.4_p3 on AMD64 fails:
-- begin error
gcc -shared  .libs/alloc.o .libs/amflock.o .libs/clock.o .libs/debug.o .libs/dgram.o .libs/error.o .libs/file.o .libs/fileheader.o .libs/amfeatures.o .libs/match.o .libs/protocol.o .libs/regcomp.o .libs/regerror.o .libs/regexec.o .libs/regfree.o .libs/security.o .libs/statfs.o .libs/stream.o .libs/token.o .libs/util.o .libs/versuff.o .libs/version.o .libs/pipespawn.o .libs/sl.o  -ldb -lm -lcurses -lnsl  -Wl,-soname -Wl,libamanda-2.4.4p3.so -o .libs/libamanda-2.4.4p3.so
/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.4/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/alloc.o: relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC
.libs/alloc.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [libamanda.la] Error 1
make[1]: Leaving directory `/var/tmp/portage/amanda-2.4.4_p3/work/amanda-2.4.4p3/common-src'
make: *** [all-recursive] Error 1

!!! ERROR: app-admin/amanda-2.4.4_p3 failed.
!!! Function src_compile, Line 174, Exitcode 2
!!! emake failed!
-- end error

Emerging app-emulation/emul-linux-x86-baselibs does not change anything; it still breaks in exactly the same way.

Reproducible: Always
Steps to Reproduce:
1. run 'emerge sync' if necessary
2. run 'ACCEPT_KEYWORDS=~amd64 emerge =app-admin/amanda-2.2.4_p3'
Actual Results:  
As mentioned above, compiling Amanda fails with the error message: relocation
R_X86_64_32 can not be used when making a shared object; recompile with -fPIC

Expected Results:  
Amanda should compile cleanly.

Line 166 in the ebuild is:
    myconf="${myconf} `use_with pic`"
If I comment out this line, Amanda builds and installs cleanly.

As requested, 'emerge info' yields:
Portage 2.0.50-r11 (default-amd64-2004.2, gcc-3.3.4, glibc-2.3.4.20040808-r0,
2.6.7-mm7)
=================================================================
System uname: 2.6.7-mm7 x86_64 5
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-O2 -funroll-loops -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
COMPILER=""
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="-O2 -funroll-loops -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache"
GENTOO_MIRRORS="http://gentoo.osuosl.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl amd64 apm arts avi berkdb bitmap-fonts crypt encode foomaticdb gdbm gif
gpm gtk2 imlib jpeg ldap libg++ libwww mikmod motif mpeg ncurses nls nogcj
oggvorbis opengl oss pam pdflib perl png python quicktime readline sdl slang
spell ssl tcpd truetype xml2 xmms xprint xv zlib"
Comment 1 Simon Stelling (RETIRED) gentoo-dev 2004-12-18 09:16:46 UTC
thanks, this should be fixed now