Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 473498 - app-text/zathura-pdf-mupdf-0.2.3 fails to build
Summary: app-text/zathura-pdf-mupdf-0.2.3 fails to build
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Michael Weber (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-16 14:09 UTC by Antoine Lemoine
Modified: 2013-06-16 20:17 UTC (History)
0 users

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


Attachments
build.log (build.log,3.13 KB, text/plain)
2013-06-16 14:11 UTC, Antoine Lemoine
Details
emerge -pv mupdf (file_473498.txt,244 bytes, text/plain)
2013-06-16 19:59 UTC, Antoine Lemoine
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Antoine Lemoine 2013-06-16 14:09:44 UTC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../lib64/libfitz.a(dev_null.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../lib64/libfitz.a: could not read symbols: Bad value
collect2: error: ld returned 1 exit status


Reproducible: Always
Comment 1 Antoine Lemoine 2013-06-16 14:10:34 UTC
emerge --info

Portage 2.1.12.5 (default/linux/amd64/13.0/desktop/gnome, gcc-4.7.3, glibc-2.17, 3.9.6-gentoo x86_64)
=================================================================
System uname: Linux-3.9.6-gentoo-x86_64-Intel-R-_Core-TM-_i7-3770K_CPU_@_3.50GHz-with-gentoo-2.2
KiB Mem:    16316360 total,  13013596 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of tree: Sun, 16 Jun 2013 09:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
ccache version 3.1.9 [disabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0::java
dev-lang/python:          2.7.5, 3.2.5, 3.3.2
dev-util/ccache:          3.1.9-r1::science
dev-util/cmake:           2.8.11.1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.10.3, 1.11.6, 1.12.6, 1.13.2
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.6.4, 4.7.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo science steam-overlay vmware gbin zugaina x11 palmer java matsuu local
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -floop-interchange -floop-strip-mine -floop-block"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /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=native -O2 -pipe -floop-interchange -floop-strip-mine -floop-block"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs candy config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="rsync://de-mirror.org/gentoo/ http://de-mirror.org/gentoo/ ftp://de-mirror.org/gentoo/ http://gentoo-euetib.upc.es/mirror/gentoo/"
LANG="fr_FR.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_BUNZIP2_COMMAND="lbunzip2"
PORTAGE_BZIP2_COMMAND="lbzip2"
PORTAGE_COMPRESS="lbzip2"
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="/var/lib/layman/science /var/lib/layman/steam-overlay /var/lib/layman/vmware /var/lib/layman/gbin /var/lib/layman/zugaina /var/lib/layman/x11 /var/lib/layman/palmer /var/lib/layman/java /var/lib/layman/matsuu /usr/local/portage"
SYNC="rsync://rsync.fr.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 avx bash-completion berkdb boost branding bzip2 cairo cdda cdr cleartype cli colord consolekit corefonts cracklib crypt ctype cxx dbus djvu dri dts dvd dvdr emboss encode evo examples exif fam ffmpeg firefox flac fortran gdbm gif gnome gnome-keyring gnome-online-accounts gpm graphite gstreamer gtk iconv icu ipv6 jack jpeg jpeg2k lcms ldap libnotify libsecret lm_sensors mad midi mmx mng modules mp3 mp4 mpeg mudflap multilib mysql nautilus ncurses nls nptl ntfs nvidia objc objc++ objc-gc ogg opengl openmp pam pango pcre pdf php plugins png policykit ppds pulseaudio qt3support qt4 quicktime readline remote sasl sdl session socialweb spell sse sse2 sse3 sse4 sse4_1 ssl ssse3 startup-notification svg symlink tcpd threads tiff timidity truetype udev udisks unicode upnp upower usb v4l vim-syntax vorbis win32codecs wxwidgets x264 xcb xml xv xvid xvmc zlib" ABI_X86="32 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" 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 author" 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="fr" NGINX_MODULES_HTTP="access auth_basic autoindex fastcgi browser charset gzip proxy referer rewrite" NGINX_MODULES_MAIL="imap pop3 smtp" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4 php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia intel" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 2 Antoine Lemoine 2013-06-16 14:11:12 UTC
Created attachment 351120 [details]
build.log
Comment 3 Rafał Mużyło 2013-06-16 18:02:47 UTC
Which package does libfitz.a belong to ?
Comment 4 Antoine Lemoine 2013-06-16 18:17:45 UTC
libfitz.a belongs to app-text/mupdf-1.2 (/usr/lib64/libfitz.a)

I have re-emerged app-text/mupdf but the bug is not fixed.
Comment 5 Antoine Lemoine 2013-06-16 18:31:49 UTC
This bug seems to be a classic -fPIC error (see http://www.gentoo.org/proj/en/base/amd64/howtos/?part=1&chap=3).
Comment 6 Antoine Lemoine 2013-06-16 18:34:17 UTC
I confirm the -fPIC bug. I re-emerged mupdf and zathura-pdf-mupdf with the -fPIC flag and it worked.
Comment 7 Michael Weber (RETIRED) gentoo-dev 2013-06-16 19:43:07 UTC
erm, it should link against the provided .so shared lib (which should be linked -fpic), give me an moment.
Comment 8 Michael Weber (RETIRED) gentoo-dev 2013-06-16 19:52:21 UTC
Hi, can you please provide the output of `emerge -pv mupdf` and `qlist mupdf` (qlist from app-portage/portage-utils), thanks.
Comment 9 Antoine Lemoine 2013-06-16 19:59:24 UTC
Created attachment 351152 [details]
emerge -pv mupdf
Comment 10 Antoine Lemoine 2013-06-16 19:59:58 UTC
qlist mupdf

/usr/lib64/libfitz.a
/usr/lib64/pkgconfig/mupdf.pc
/usr/share/applications/mupdf.desktop
/usr/share/pixmaps/mupdf.xpm
/usr/share/doc/mupdf-1.2/CHANGES.bz2
/usr/share/doc/mupdf-1.2/overview.txt.bz2
/usr/share/doc/mupdf-1.2/README.bz2
/usr/share/doc/mupdf-1.2/example.c.bz2
/usr/share/man/man1/mupdf.1.bz2
/usr/share/man/man1/mutool.1.bz2
/usr/share/man/man1/mudraw.1.bz2
/usr/include/memento.h
/usr/include/fitz.h
/usr/include/muxps.h
/usr/include/mucbz.h
/usr/include/fitz-internal.h
/usr/include/mupdf.h
/usr/include/mupdf-internal.h
/usr/include/muxps-internal.h
/usr/bin/mudraw
/usr/bin/mutool
/usr/bin/mupdf
/usr/lib64/zathura/pdf.so
/usr/share/doc/zathura-pdf-mupdf-0.2.3/AUTHORS.bz2
Comment 11 Michael Weber (RETIRED) gentoo-dev 2013-06-16 20:17:10 UTC
Please use mupdf-1.2 from the main tree. 
Bug 407807 was resolved and mupdf now ships a shared lib (static lib optional).