Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 121924 - ghostscript-esp-8.15.1 fails to build with link error
Summary: ghostscript-esp-8.15.1 fails to build with link error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
: 121985 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-02-06 21:26 UTC by Jose daLuz
Modified: 2006-02-07 13:10 UTC (History)
6 users (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 Jose daLuz 2006-02-06 21:26:50 UTC
Updating ghostscript-esp from 7.07.1-r10 to 8.15.1, I get the following build error:

/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.5/../../../../x86_64-pc-linux-gnu/bin/ld: ./obj/../soobj/gp_unix.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
./obj/../soobj/gp_unix.o: could not read symbols: Bad value
collect2: ld returned 1 exit status

emerge --info
Portage 2.1_pre4-r1 (default-linux/amd64/2005.1, gcc-3.4.5, glibc-2.3.5-r3, 2.6.15-ck3 x86_64)
=================================================================
System uname: 2.6.15-ck3 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.0_pre15
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
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-r1, 2.16.91.0.3, 2.16.91.0.5
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.15_rc6
ACCEPT_KEYWORDS="amd64 ~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.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib64/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS=""
FEATURES="autoconfig ccache confcache distlocks nostrip sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org/"
LC_ALL="en_US"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/gentopia /usr/local/bmg-main /usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="amd64 X aac alsa avi bash-completion berkdb bitmap-fonts bzip2 cairo cdr crypt cups dbus debug dvd dvdr eds emboss encode esd firefox flac foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 gtkhtml hal idn imlib ipv6 jack java jpeg kde lcms ldap lzw lzw-tiff mad mono mozilla mp3 mpeg ncurses nls nptl ogg opengl pam pdflib perl pic png python qt quicktime readline ruby samba sdl spell sqlite ssl tcpd theora tiff truetype truetype-fonts type1-fonts usb userlocales vorbis xml2 xpm xv zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux userland_GNU video_cards_vga video_cards_vesa video_cards_nv"
Unset:  ASFLAGS, CTARGET, LANG, LDFLAGS, LINGUAS, MAKEOPTS
Comment 1 Chris Torske 2006-02-07 05:45:32 UTC
I too am getting the same problem, also on amd64 system.

[ebuild     U ] app-text/ghostscript-esp-8.15.1 [7.07.1-r10] USE="X cups gtk threads% xml% -cjk -emacs" 0 kB
Comment 2 Stefan Schweizer (RETIRED) gentoo-dev 2006-02-07 06:05:58 UTC
+       # *-dynmic breaks compiling without X, see bug 121749 but not having it
+       # breaks compiling on amd64, bug 121924
+       use X && myconf="${myconf} --enable-dynamic"
+

That fixes it at least for USE=X .. but we still need a proper fix for the amd64 and USE=-X case.
Comment 3 Priyantha Bleeker 2006-02-07 06:37:33 UTC
(In reply to comment #2)
> +       # *-dynmic breaks compiling without X, see bug 121749 but not having it
> +       # breaks compiling on amd64, bug 121924
> +       use X && myconf="${myconf} --enable-dynamic"
> +
> 
> That fixes it at least for USE=X .. but we still need a proper fix for the
> amd64 and USE=-X case.
> 

When I used the '-fPIC' CFLAG then ghostscript-esp compiles without any problem.
So it is an temporaly sollution, the devellopers of ghostscript have to change it so it can compile without the '-fPIC' CFLAG.

Comment 4 Stefan Briesenick (RETIRED) gentoo-dev 2006-02-07 06:38:25 UTC
yup, USE="-X" is the problem ony my X-less server. ;-)
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-02-07 07:22:56 UTC
*** Bug 121985 has been marked as a duplicate of this bug. ***
Comment 6 Chris Torske 2006-02-07 07:42:33 UTC
comment 2 worked for me; after I figured out where to put the extra line in.
Comment 7 Stefan Schweizer (RETIRED) gentoo-dev 2006-02-07 09:56:37 UTC
-       use X && myconf="${myconf} --enable-dynamic"
+       if use X; then
+               myconf="${myconf} --enable-dynamic"
+       elif use amd64; then
+               append-flags -fPIC
+       fi

I added another workaround here - that should fix it.
Comment 8 Simon Stelling (RETIRED) gentoo-dev 2006-02-07 10:02:58 UTC
reopen, binaries should not get compiled with -fPIC
Comment 9 Simon Stelling (RETIRED) gentoo-dev 2006-02-07 13:10:48 UTC
-fPIC applied unconditionally