Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 149620 - app-text/ghostscript-esp-8.15.3 won't compile unless I use the fPIC patch from 8.15.1
Summary: app-text/ghostscript-esp-8.15.3 won't compile unless I use the fPIC patch fro...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-30 07:23 UTC by daedalus144
Modified: 2011-11-01 20:53 UTC (History)
8 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
The fPIC patch. (ghostscript-esp-8.15.3-fPIC.patch,348 bytes, patch)
2006-09-30 07:27 UTC, daedalus144
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description daedalus144 2006-09-30 07:23:59 UTC
Portage 2.1.2_pre2 (default-linux/amd64/2006.1, gcc-4.1.1, glibc-2.4-r4, 2.6.18-gentoo x86_64)
=================================================================
System uname: 2.6.18-gentoo x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+
Gentoo Base System version 1.12.5
Last Sync: Sat, 30 Sep 2006 12:50:01 +0000
ccache version 2.4 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17.50.0.5
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.16
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -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/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=k8 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://www.gtlib.gatech.edu/pub/gentoo http://trumpetti.atm.tut.fi/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags -Wl,--hash-style=both"
MAKEOPTS="-j4"
PKGDIR="/binary"
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'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/overlays/toolchain_overlay /usr/local/xgl-coffee"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="amd64 X a52 aac aalib alsa apache2 apm berkdb bitmap-fonts bzip2 cairo cdparanoia cdr cli crypt cups dbus dlloader dri dts dvd dvdr dvdread elibc_glibc encode expat ffmpeg fftw flac fortran gd gdbm gif glitz gpm gtk gtkhtml hal hashstyle input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog jpeg kde kdeenablefinal kernel_linux lame libg++ lirc lirc_devices_leadtek_0010 mad mp3 mpeg mysql ncurses nls nptl nptlonly nsplugin nvidia ogg opengl oss pam pcre perl png ppds pppd python qt3 qt4 quicktime readline reflection samba screen sdl session smp spell spl ssl tcpd threads tiff truetype truetype-fonts type1-fonts udev unicode usb userland_GNU video_cards_fbdev video_cards_nvidia video_cards_vesa vorbis xml xmms xorg xpm xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 daedalus144 2006-09-30 07:27:55 UTC
Created attachment 98442 [details, diff]
The fPIC patch.

This is the patch I created to get ghostscript-esp-8.15.3 compiled on my system.  It's basically the same patch as ghostscript-esp-8.15.1-fPIC.patch.
Comment 2 Andreas Waschbuesch 2006-09-30 10:40:53 UTC
Same over here.

,----[ emerge --info ]
| Portage 2.1.2_pre2 (default-linux/amd64/2006.1, gcc-4.1.1, glibc-2.4-r4, 2.6.18-gentoo x86_64)
| =================================================================
| System uname: 2.6.18-gentoo x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+
| Gentoo Base System version 1.12.5
| Last Sync: Sat, 30 Sep 2006 16:20:01 +0000
| ccache version 2.4 [enabled]
| app-admin/eselect-compiler: [Not Present]
| dev-java/java-config: 1.3.3-r1, 2.0.30
| dev-lang/python:     2.3.5, 2.4.3-r4
| dev-python/pycrypto: 2.0.1-r5
| dev-util/ccache:     2.4-r6
| dev-util/confcache:  [Not Present]
| sys-apps/sandbox:    1.2.18.1
| sys-devel/autoconf:  2.13, 2.60
| sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
| sys-devel/binutils:  2.17
| sys-devel/gcc-config: 1.3.13-r3
| sys-devel/libtool:   1.5.22
| virtual/os-headers:  2.6.17-r1
| 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/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/fax /usr/share/X11/xkb /usr/share/config /var/spool/fax/etc"
| CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
| CXXFLAGS="-march=athlon64 -O2 -pipe"
| DISTDIR="/usr/portage/distfiles"
| FEATURES="autoconfig ccache distlocks metadata-transfer notitles sandbox sfperms strict userpriv usersandbox"
| GENTOO_MIRRORS="ftp://ftp.leo.org/mirrors/gentoo ftp://sunsite.informatik.rwth-aachen.de/pub/comp/Linux/gentoo http://www.ibiblio.org/pub/Linux/distributions/gentoo"
| LANG="de_DE.ISO-8859-1"
| LC_ALL="de_DE"
| LINGUAS="de"
| MAKEOPTS="-j4"
| 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'"
| PORTAGE_TMPDIR="/var/tmp"
| PORTDIR="/usr/portage"
| PORTDIR_OVERLAY="/usr/local/portage"
| SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
| USE="amd64 X a52 aac acpi alsa amd amr arts artswrappersuid berkdb bitmap-fonts bzip2 cdparanoia cli cpudetection crypt cups dga divx dlloader dri dv dvb dvd dvdr dvdread elibc_glibc encode faad fam fame ffmpeg font-server foomaticdb fortran freetype ftp gcc gcc64 gcj gif gimp glibc-omitfp gphoto2 gtk gtk2 hal imlib imlib2 input_devices_evdev input_devices_keyboard input_devices_mouse input_devices_vmmouse isdnlog jp2 jpeg jpeg2k kde kdeenablefinal kdepim kdm kernel_linux lcd libg++ linguas_de lm_sensors logitech-mouse mad maildir mozilla mp3 mpeg mpeg2 mplayer ncurses nls nodrm nomalloccheck nptl nptlonly nsplugin ntlm offensive opengl pam pam_chroot pam_console pam_timestamp pcre pdf perl pic png ppds pppd python qt3 qt4 quicktime readline reflection rtc samba sasl scanner server session smime smp spell spl sse3 ssl subtitles symlink tcpd tetex threads tiff transparent-proxy truetype truetype-fonts type1-fonts udev unicode usb userland_GNU video_cards_ati video_cards_radeon video_cards_v4l video_cards_vesa video_cards_vga video_cards_vmware vorbis wxgtk1 x11vnc xine xml xorg xv xvid xvmc zlib"
| Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
`----
Comment 3 Maarten Maathuis 2006-09-30 12:50:00 UTC
I have not tried the patch (i will soonish) but i too suffer from a fpic related problem.

x86_64-pc-linux-gnu-gcc  -DHAVE_MKSTEMP -DHAVE_HYPOT -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_DIRENT_H=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ERRNO_H=1 -DHAVE_FCNTL_H=1 -DHAVE_LIMITS_H=1 -DHAVE_MALLOC_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STRUCT_STAT_ST_BLOCKS=1 -DHAVE_ST_BLOCKS=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_UNSIGNED_LONG_INT=8 -DHAVE_FONTCONFIG=1 -DHAVE_LIBM=1 -DHAVE_LIBDL=1 -DHAVE_JPEGLIB_H=1 -DDONT_HAVE_JMEMSYS_H=1 -DHAVE_ZLIB_H=1 -DHAVE_PNG_H=1 -DHAVE_FREETYPE=1 -DHAVE_FT2BUILD_H=1 -DHAVE_LIBX11=1 -DHAVE_LIBXEXT=1 -DHAVE_LIBXT=1 -DHAVE_MKSTEMP=1 -DHAVE_HYPOT=1 -DHAVE_FORK=1 -DHAVE_VFORK=1 -DHAVE_WORKING_VFORK=1 -DHAVE_WORKING_FORK=1 -DRETSIGTYPE=void -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_BZERO=1 -DHAVE_DUP2=1 -DHAVE_FLOOR=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_MEMCHR=1 -DHAVE_MEMMOVE=1 -DHAVE_MEMSET=1 -DHAVE_MKDIR=1 -DHAVE_MKFIFO=1 -DHAVE_MODF=1 -DHAVE_POW=1 -DHAVE_PUTENV=1 -DHAVE_RINT=1 -DHAVE_SETENV=1 -DHAVE_SQRT=1 -DHAVE_STRCHR=1 -DHAVE_STRERROR=1 -DHAVE_STRRCHR=1 -DHAVE_STRSPN=1 -DHAVE_STRSTR=1 -O2 -Wall -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -Wcast-qual -Wwrite-strings -fno-builtin -fno-common -DHAVE_STDINT_H -DGX_COLOR_INDEX_TYPE="unsigned long int"  -march=k8 -Os -pipe -msse3    -I./src -I./obj/../soobj -I./obj/../soobj -I./src  -o ./obj/../soobj/iconfig.o -c ./obj/../soobj/iconfig.c
./obj/../soobj/echogs -w ./obj/../soobj/ldt.tr -n - x86_64-pc-linux-gnu-gcc -L/usr/lib64 -Wl,-O1 -Wl,--as-needed -L/usr/lib64  -shared -Wl,-soname=libgs.so.8 -o ./bin/../sobin/libgs.so.8.15
./obj/../soobj/echogs -a ./obj/../soobj/ldt.tr -n -s ./obj/../soobj/gs.o -s
cat ./obj/../soobj/ld.tr >>./obj/../soobj/ldt.tr
./obj/../soobj/echogs -a ./obj/../soobj/ldt.tr -s - -lcupsimage -lcups -ljpeg -lpng -L/usr/lib64 -lgnutls -L/usr/lib64 -ltasn1 -L/usr/lib64 -lgcrypt -L/usr/lib64 -lgpg-error -lz -lpthread -lm -lcrypt -ldl -lm  -lstdc++  -lfontconfig   -lpthread -lm
if [ x != x ]; then LD_RUN_PATH=; export LD_RUN_PATH; fi; \
        XCFLAGS= XINCLUDE= XLDFLAGS= XLIBDIRS= XLIBS= \
        FEATURE_DEVS= DEVICE_DEVS= DEVICE_DEVS1= DEVICE_DEVS2= DEVICE_DEVS3= \
        DEVICE_DEVS4= DEVICE_DEVS5= DEVICE_DEVS6= DEVICE_DEVS7= DEVICE_DEVS8= \
        DEVICE_DEVS9= DEVICE_DEVS10= DEVICE_DEVS11= DEVICE_DEVS12= \
        DEVICE_DEVS13= DEVICE_DEVS14= DEVICE_DEVS15= DEVICE_DEVS16= \
        DEVICE_DEVS17= DEVICE_DEVS18= DEVICE_DEVS19= DEVICE_DEVS20= \
        /bin/sh <./obj/../soobj/ldt.tr
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: ./obj/../soobj/gs.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
./obj/../soobj/gs.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [bin/../sobin/libgs.so.8.15] Error 1
make[1]: Leaving directory `/var/tmp/portage/ghostscript-esp-8.15.3/work/espgs-8.15.3'
make: *** [so] Error 2
Comment 4 David Philippi 2006-10-01 03:30:03 UTC
The patch works fine for me, thanks.
Comment 5 Stefan Schweizer (RETIRED) gentoo-dev 2006-10-01 05:37:37 UTC
sorry, upstream marked the str as fixed but forgot to the patch - and I did not notice it because I use x86 (not amd64)

I fied another bug upstream and fixed the ebuild to apply the patch. Thank you all for telling me!
Comment 6 Guy 2006-10-01 10:02:54 UTC
(In reply to comment #5)
> sorry, upstream marked the str as fixed but forgot to the patch - and I did not
> notice it because I use x86 (not amd64)
> 
> I fied another bug upstream and fixed the ebuild to apply the patch. Thank you
> all for telling me!
> 

Thank YOU for fixing the ebuild. :-)