View previous topic :: View next topic |
Author |
Message |
jody l33t
Joined: 16 Oct 2007 Posts: 668 Location: Switzerland
|
Posted: Tue Feb 05, 2013 4:57 pm Post subject: [SOLVED]Poppler ebuild fails (libpng,relocation R_X86_64_32) |
|
|
Hi
I am trying to update a system which has not been updated in ages. Code: | Linux aim-axolotl 2.6.39-gentoo-r3 #1 SMP Wed Sep 7 18:48:10 CEST 2011 x86_64 Intel(R) Xeon(R) CPU E5607 @ 2.27GHz GenuineIntel GNU/Linux |
Obviously, i run into several problems.
When i try to emerge poppler it has an error: Code: | ...
CMakeFiles/poppler.dir/splash/SplashScreen.cc.o CMakeFiles/poppler.dir/splash/SplashState.cc.o CMakeFiles/poppler.dir/splash/SplashT1Font.cc.o CMakeFiles/poppler.dir/splash/SplashT1FontEngine.cc.o CMakeFiles/poppler.dir/splash/SplashT1FontFile.cc.o CMakeFiles/poppler.dir/splash/SplashXPath.cc.o CMakeFiles/poppler.dir/splash/SplashXPathScanner.cc.o CMakeFiles/poppler.dir/poppler/DCTStream.cc.o CMakeFiles/poppler.dir/poppler/FlateStream.cc.o CMakeFiles/poppler.dir/poppler/JPXStream.cc.o -lfreetype -lfontconfig -ljpeg -lz -llcms2 /usr/local/lib64/libpng.a -lz -ltiff -llcms2 /usr/local/lib64/libpng.a -ltiff
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/local/lib64/libpng.a(libpng12_la-png.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib64/libpng.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [libpoppler.so.28.0.0] Error 1
make[2]: Leaving directory `/var/tmp/portage/app-text/poppler-0.20.5/work/poppler-0.20.5_build'
make[1]: *** [CMakeFiles/poppler.dir/all] Error 2
make[1]: Leaving directory `/var/tmp/portage/app-text/poppler-0.20.5/work/poppler-0.20.5_build'
make: *** [all] Error 2
* ERROR: app-text/poppler-0.20.5 failed (compile phase):
* emake failed
*
* If you need support, post the output of `emerge --info '=app-text/poppler-0.20.5'`,
* the complete build log and the output of `emerge -pqv '=app-text/poppler-0.20.5'`.
* The complete build log is located at '/var/tmp/portage/app-text/poppler-0.20.5/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/app-text/poppler-0.20.5/temp/environment'.
* Working directory: '/var/tmp/portage/app-text/poppler-0.20.5/work/poppler-0.20.5_build'
* S: '/var/tmp/portage/app-text/poppler-0.20.5/work/poppler-0.20.5'
>>> Failed to emerge app-text/poppler-0.20.5, Log file:
|
Here's the emerg info Code: | ~ # emerge --info '=app-text/poppler-0.20.5'
Portage 2.1.11.31 (default/linux/amd64/10.0/desktop/gnome, gcc-4.5.3, glibc-2.15-r3, 2.6.39-gentoo-r3 x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-2.6.39-gentoo-r3-x86_64-Intel-R-_Xeon-R-_CPU_E5607_@_2.27GHz-with-gentoo-2.1
Timestamp of tree: Mon, 04 Feb 2013 16:15:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash: 4.2_p37
dev-java/java-config: 2.1.12-r1
dev-lang/python: 2.7.3-r2, 3.1.4-r3, 3.2.3
dev-util/cmake: 2.8.9
dev-util/pkgconfig: 0.27.1
sys-apps/baselayout: 2.1-r1
sys-apps/openrc: 0.11.8
sys-apps/sandbox: 2.5
sys-devel/autoconf: 2.13, 2.69
sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.6
sys-devel/binutils: 2.22-r1
sys-devel/gcc: 4.4.7, 4.5.3-r1, 4.6.3
sys-devel/gcc-config: 1.7.3
sys-devel/libtool: 2.4-r1
sys-devel/make: 3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc: 2.15-r3
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo http://gd.tuwien.ac.at/opsys/linux/gentoo/ http://de-mirror.org/distro/gentoo/ http://mirror.switch.ch/mirror/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync1.ca.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cdda cdparanoia cdr cli colord consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo exif f77 fam fftw firefox flac fortran gdbm gif gnome gnome-keyring gnome-online-accounts gnutls gpm gstreamer gtk gtk2 iconv jpeg kde lcms ldap libnotify mad mmx mmxext mng modules mp3 mp4 mpeg mpi mudflap multilib nautilus ncurses nls nptl nsplugin nvidia ogg opengl openmp oss pam pango pcre pdf png policykit ppds pulseaudio python qt3support quicktime readline sdl session sid socialweb spell sqlite sse sse-filters sse2 ssl startup-notification svg tcpd tetex theora threads tiff truetype udev udisks unicode upower usb v4l vorbis wma wxwidgets x264 xcb xinerama xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
| and the emerge pqv Code: | emerge -pqv '=app-text/poppler-0.20.5'
[ebuild N ] app-text/poppler-0.20.5 USE="cairo cxx introspection jpeg lcms png tiff utils -cjk -curl -debug -doc -jpeg2k -qt4"
|
These are the libpngs in lib64: Code: | ~ # ls -l /usr/local/lib64/libpng*
lrwxrwxrwx 1 root root 10 Nov 14 2011 /usr/local/lib64/libpng.a -> libpng12.a
lrwxrwxrwx 1 root root 11 Nov 14 2011 /usr/local/lib64/libpng.la -> libpng12.la
lrwxrwxrwx 1 root root 16 Nov 14 2011 /usr/local/lib64/libpng.so.3 -> libpng.so.3.46.0
-rwxr-xr-x 1 root root 548021 Nov 14 2011 /usr/local/lib64/libpng.so.3.46.0
-rw-r--r-- 1 root root 949534 Nov 14 2011 /usr/local/lib64/libpng12.a
-rwxr-xr-x 1 root root 938 Nov 14 2011 /usr/local/lib64/libpng12.la
lrwxrwxrwx 1 root root 18 Nov 14 2011 /usr/local/lib64/libpng12.so -> libpng12.so.0.46.0
lrwxrwxrwx 1 root root 18 Nov 14 2011 /usr/local/lib64/libpng12.so.0 -> libpng12.so.0.46.0
-rwxr-xr-x 1 root root 530741 Nov 14 2011 /usr/local/lib64/libpng12.so.0.46.0
|
I actually want to build a new kernel, but i would prefer to get things in order before doing that...
Can anybody help me here?
Thank You
Jody
Last edited by jody on Wed Feb 06, 2013 7:22 am; edited 1 time in total |
|
Back to top |
|
|
jody l33t
Joined: 16 Oct 2007 Posts: 668 Location: Switzerland
|
Posted: Tue Feb 05, 2013 5:30 pm Post subject: |
|
|
Follow up:
kde-base/kdelibs has the same problem: Code: | ...
usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/local/lib64/libpng.a(libpng12_la-png.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib64/libpng.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [lib/libkhtml.so.5.9.5] Error 1
make[2]: Leaving directory `/var/tmp/portage/kde-base/kdelibs-4.9.5/work/kdelibs-4.9.5_build'
make[1]: *** [khtml/CMakeFiles/khtml.dir/all] Error 2
make[1]: Leaving directory `/var/tmp/portage/kde-base/kdelibs-4.9.5/work/kdelibs-4.9.5_build'
make: *** [all] Error 2
* ERROR: kde-base/kdelibs-4.9.5 failed (compile phase):
|
jody |
|
Back to top |
|
|
ulenrich Veteran
Joined: 10 Oct 2010 Posts: 1480
|
Posted: Tue Feb 05, 2013 5:49 pm Post subject: |
|
|
show us:
eshowkw -O libpng
equery b /usr/local/lib64/libpng12.so.0.46.0
ls -ll /usr/lib/libpng* |
|
Back to top |
|
|
VoidMage Watchman
Joined: 14 Oct 2006 Posts: 6196
|
Posted: Tue Feb 05, 2013 8:41 pm Post subject: |
|
|
ulenrich wrote: | show us:
eshowkw -O libpng
equery b /usr/local/lib64/libpng12.so.0.46.0
ls -ll /usr/lib/libpng* |
There's an obvious answer in that question: you've got trash in /usr/local. |
|
Back to top |
|
|
jody l33t
Joined: 16 Oct 2007 Posts: 668 Location: Switzerland
|
Posted: Tue Feb 05, 2013 9:56 pm Post subject: |
|
|
@ulenrich Code: | ~ # eshowkw -O libpng
Keywords for media-libs/libpng:
| | u |
| a a p s | n |
| l m h i m m p s p | u s | r
| p d a p a 6 i p c 3 a x | s l | e
| h 6 r p 6 8 p p 6 9 s r 8 | e o | p
| a 4 m a 4 k s c 4 0 h c 6 | d t | o
-------------+---------------------------+--------+-------
1.2.50 | ~ + + ~ + + ~ o + + + + + | o 1.2 | gentoo
-------------+---------------------------+--------+-------
[I]1.5.13-r1 | + + + + + + ~ + + + + + + | o 0 | gentoo
-------------+---------------------------+--------+-------
1.5.14 | ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ | o 0/15 | gentoo
|
Code: | ~ # equery b /usr/local/lib64/libpng12.so.0.46.0
* Searching for /usr/local/lib64/libpng12.so.0.46.0 ...
~ # | (no result) Code: | ~ # ls -ll /usr/lib/libpng*
lrwxrwxrwx 1 root root 11 Feb 5 13:05 /usr/lib/libpng.so -> libpng15.so
-rw-r--r-- 1 root root 949534 Nov 14 2011 /usr/lib/libpng12.a
-rwxr-xr-x 1 root root 938 Nov 14 2011 /usr/lib/libpng12.la
-rwxr-xr-x 1 root root 530741 Nov 14 2011 /usr/lib/libpng12.so
lrwxrwxrwx 1 root root 18 Feb 7 2012 /usr/lib/libpng12.so.0 -> libpng12.so.0.46.0
-rwxr-xr-x 1 root root 530741 Nov 14 2011 /usr/lib/libpng12.so.0.46.0
lrwxrwxrwx 1 root root 19 Feb 5 13:05 /usr/lib/libpng15.so -> libpng15.so.15.13.0
lrwxrwxrwx 1 root root 19 Feb 5 13:05 /usr/lib/libpng15.so.15 -> libpng15.so.15.13.0
-rwxr-xr-x 1 root root 187336 Feb 5 13:05 /usr/lib/libpng15.so.15.13.0
|
@VoidMage Quote: | you've got trash in /usr/local |
What do you mean exactly?
Thank You
Jody |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21633
|
Posted: Tue Feb 05, 2013 11:12 pm Post subject: |
|
|
You have libpng libraries in /usr/local/lib, but none should be there. Something, probably you, installed libpng by hand at some point. The libraries in /usr/local/lib are conflicting with the libpng installed by the system. Clean the trash out of /usr/local and try again. |
|
Back to top |
|
|
jody l33t
Joined: 16 Oct 2007 Posts: 668 Location: Switzerland
|
Posted: Wed Feb 06, 2013 7:21 am Post subject: |
|
|
Hi
Iremoved all libpng* from /usr/local/lib
and now emerge is running well.
Thank You!
Jody |
|
Back to top |
|
|
ulenrich Veteran
Joined: 10 Oct 2010 Posts: 1480
|
Posted: Wed Feb 06, 2013 5:26 pm Post subject: |
|
|
/usr/local
ist the last resort if a problem occurs which your distribution cannot solve. But after some times there the next problem will be, because this place isn't maintained but by your own hands. |
|
Back to top |
|
|
|