Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 48178 - Abiword 2.0.6 -fPIC error while compiling
Summary: Abiword 2.0.6 -fPIC error while compiling
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High minor (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-17 16:36 UTC by Andreas Braun
Modified: 2004-04-18 14:29 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 Andreas Braun 2004-04-17 16:36:54 UTC
Hello!

Abiword 2.0.6 is unmasked for AMD64 but it does not compile. It gives an error about recompiling with -fPIC.

These are the last few line:
gcc -shared  AbiCommand.lo  -L/usr/lib -lreadline -lhistory -ltermcap -L/usr/X11R6/lib -lXft -lX11 /usr/lib/libfreetype.so -lXrender /usr/lib/libfontconfig.so /usr/lib/libfribidi.so /usr/lib/libglade-2.0.so /usr/lib/libgtk-x11-2.0.so /usr/lib/libxml2.so -lpthread -lz /usr/lib/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so /usr/lib/libgdk_pixbuf-2.0.so -lm /usr/lib/libpangoxft-1.0.so /usr/lib/libpangox-1.0.so /usr/lib/libpango-1.0.so /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so -ldl /usr/lib/libglib-2.0.so -lbz2  -Wl,--export-dynamic -Wl,-soname -Wl,libAbiCommand.so -o .libs/libAbiCommand.so
/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.3/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/libtermcap.a(termcap.o): relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC
/usr/lib/libtermcap.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[3]: *** [libAbiCommand.la] Error 1
make[3]: Leaving directory `/var/tmp/portage/abiword-2.0.6/work/abiword-2.0.6/abiword-plugins/tools/abicommand/xp'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/abiword-2.0.6/work/abiword-2.0.6/abiword-plugins/tools/abicommand'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/abiword-2.0.6/work/abiword-2.0.6/abiword-plugins/tools'
make: *** [all-recursive] Error 1
 
!!! ERROR: app-office/abiword-2.0.6 failed.
!!! Function src_compile, Line 68, Exitcode 2
!!! (no error message)


Reproducible: Always
Steps to Reproduce:
1. "emerge abiword" on AMD64 system
Actual Results:  
Abiword does not compile successfully.

Expected Results:  
Abiword 2.0.6 compiles successfully.

Portage 2.0.50-r6 (2004.0, gcc-3.3.3, glibc-2.3.3_pre20040207-r0, 2.6.5-gentoo)
=================================================================
System uname: 2.6.5-gentoo x86_64 4
Gentoo Base System version 1.4.9
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-pipe -O2"
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 /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-pipe -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo
ftp://ftp.tu-clausthal.de/pub/linux/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X alsa amd64 avi cups dga foomatic foomaticdb gdbm gif gnome gtk gtk2 imlib
jpeg kde libg++ libwww mikmod motif mpeg multilib ncurses nls nogcj oggvorbis
opengl oss pam pdflib png python readline sdl slang spell ssl tcpd truetype usb
xml2 xv zlib"
Comment 1 Travis Tilley (RETIRED) gentoo-dev 2004-04-18 12:22:58 UTC
abiword compiles here without problems. can you re-emerge sys-libs/libtermcap-compat and try again? (the file that has -fPIC problems for you belongs to that package)
Comment 2 Andreas Braun 2004-04-18 14:29:36 UTC
I reemerged libtermcap-compat and Abiword compiles now without problems! Thank you.