Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 609584 - media-libs/xine-lib-1.2.6-r2 fails to compile with "ld: .libs/xine.o: relocation R_X86_64_PC32 against protected symbol `_x_flags' can not be used when making a shared object" error
Summary: media-libs/xine-lib-1.2.6-r2 fails to compile with "ld: .libs/xine.o: relocat...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-17 00:46 UTC by James Ausmus
Modified: 2018-08-13 20:48 UTC (History)
5 users (show)

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


Attachments
build.log (build.log,146.64 KB, text/x-log)
2017-02-22 17:23 UTC, James Ausmus
Details
build-xine-lib.txt (build-xine-lib.txt,139.27 KB, text/plain)
2017-03-17 13:35 UTC, deference
Details

Note You need to log in before you can comment on or make changes to this bug.
Description James Ausmus 2017-02-17 00:46:49 UTC
Build output:

libtool: link: x86_64-pc-linux-gnu-gcc -shared  -fPIC -DPIC  .libs/xine.o .libs/metronom.o .libs/configfile.o .libs/buffer.o .libs/load_plugins.o .libs/video_decoder.o .libs/buffer_types.o .libs/audio_decoder.o .libs/video_out.o .libs/audio_out.o .libs/resample.o .libs/events.o .libs/video_overlay.o .libs/osd.o .libs/spu.o .libs/scratch.o .libs/demux.o .libs/vo_scale.o .libs/xine_interface.o .libs/post.o .libs/broadcaster.o .libs/io_helper.o .libs/input_rip.o .libs/input_cache.o .libs/info_helper.o .libs/refcounter.o .libs/alphablend.o  -Wl,--whole-archive ../../src/xine-utils/.libs/libxineutils.a ../../src/video_out/.libs/libyuv2rgb.a ../../lib/.libs/libxineposix.a -Wl,--no-whole-archive  -Wl,--as-needed -ldl -lz -lm -lfontconfig -lfreetype -lrt -lresolv -lnsl -lxdg-basedir -lavutil  -g -O2 -march=native -Wl,-z -Wl,defs -Wl,--gc-sections -g -Wl,-O1 -pthread   -pthread -Wl,-soname -Wl,libxine.so.2 -o .libs/libxine.so.2.5.0
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/xine.o: relocation R_X86_64_PC32 against protected symbol `_x_flags' can not be used when making a shared object
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Bad value



emerge --info output:

Portage 2.3.3 (python 3.4.5-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-4.9.3, glibc-2.24-r1, 4.9.5-gentoo x86_64)
=================================================================
System uname: Linux-4.9.5-gentoo-x86_64-Intel-R-_Core-TM-_i7-4790_CPU_@_3.60GHz-with-gentoo-2.3
KiB Mem:    15900444 total,   5105168 free
KiB Swap:   16627708 total,  16594156 free
Timestamp of repository gentoo: Thu, 16 Feb 2017 18:30:01 +0000
sh bash 4.4_p12
ld GNU ld (Gentoo 2.26.1 p1.0) 2.26.1
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.23.2::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.25.1-r1::fithp, 2.26.1::gentoo, 2.27::gentoo
sys-devel/gcc:            4.9.3::gentoo, 5.4.0-r3::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.9::gentoo (virtual/os-headers)
sys-libs/glibc:           2.24-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

local
    location: /usr/local/portage/overlay
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /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/php/apache2-php5.6/ext-active/ /etc/php/apache2-php7.0/ext-active/ /etc/php/apache2-php7.1/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/php/cli-php7.1/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="-O2 -pipe -march=native -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n --verbose-conflicts"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.osuosl.org http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac aacplus aacs aalib acl acpi activities addns ads aes aio alsa amd64 amr amrenc analitza armadillo aspell autoipd avx bcmath bdplus berkdb bitmap bluray branding bs2b bzip2 cairo calendar caps cdb cdda cddb cdio cdr celt chromaprint clang classic cli client collada consolekit cracklib crypt cups curl cxx dbus declarative designer dhcpcd doc dot dri dts dv dvd dvdr emboss enchant encode epub examples exif expat extra extra-tools faac faad fam farstream ffmpeg firefox fits flac flatfile flite fontconfig fontforge fortran frei0r ftp fuse gd gdal gdbm geolocation geos gif git glamor gltf gme gml gmp gnuplot gnutls google gphoto2 gpm gps grub gsm gssapi gstreamer gtk harfbuzz hdf5 highlight htmlthumbs http http2 iconv icu idn imagemagick inifile introspection iodbc ipv6 jadetex java javascript jbig jpeg jpeg2k jpg jpg2k kate kde kerberos kipi ladspa lapack latex lcms ldap legacy-systray libass libatomic libav libcaca libcerf libffi libnotify libproxy librtmp libsamplerate libsoxr libtar libtiger libvisual live lm_sensors lua lzma lzo mad matroska mdb mdnsresponder-compat mediacenter metalink mhash mms mmx mmxext mng modplug modules mono mp3 mp3rtp mp4 mpeg mplayer mtp multilib multimedia multitarget musepack ncurses net netcdf nethack networkmanager nls nptl nsplugin ntp odbc odbcmanual odk ogdi ogg omxil openal opencl opencv openexr opengl openldap openmp openssl opus orientation overlay pam pango pcntl pcre pdf perl phonon php plasma png policykit popcnt postproc ppds printsupport prison projectm pulseaudio python qalculate qml qt3support qt4 qt5 quicktime quvi rdp readline realtime recode resolvconf rle rtmp rtsp ruby samba sample sasl schroedinger sdk sdl sdl-image sdlgfx seccomp semantic-desktop session sftp shapefile share shout sid skins slang slp smbkrb5passwd snappy sndfile snorenotify soap sockets socks5 sox spatialite speex spell sqlite sse sse2 sse3 sse4_1 sse4_2 ssh ssl ssse3 startup-notification svc svg syslog sysvipc szip taglib tagsoup tcl tcpd tdb theora threads tidy tiff tk tools truetype tty-helpers twolame udev udf udisks unicode unwind upnp upower usb utils uuid v4l vaapi vala vcd vcdx vdpau vim-pager vim-syntax vlc vlm vnc vorbis vpx wavpack wddx webchannel webkit webp webready widgets winbind wxwidgets x264 x265 xattr xcb xcomposite xetex xine xinerama xls xml xmlreader xmlrpc xmlwriter xpm xscreensaver xslt xv xvid zeroconf zip zlib zvbi" 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" 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3 aes avx avx2 fma3" CURL_SSL="nss" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev" KERNEL="linux" L10N="en en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver scripting-javascript wiki-publisher" LINGUAS="en en_US" LLVM_TARGETS="AMDGPU ARM X86" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7 php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="x86_64 i386 arm" QEMU_USER_TARGETS="x86_64 i386 arm armeb" RUBY_TARGETS="ruby23 ruby21 ruby24" SANE_BACKENDS="hp" USERLAND="GNU" VIDEO_CARDS="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"
USE_PYTHON="2.7 3.4"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Michael Palimaka (kensington) gentoo-dev 2017-02-17 11:05:44 UTC
Please attach the full build log.
Comment 2 James Ausmus 2017-02-22 17:23:42 UTC
Created attachment 464738 [details]
build.log

build.log attached
Comment 3 deference 2017-03-17 13:35:04 UTC
Created attachment 467306 [details]
build-xine-lib.txt

I am also experiencing this bug. This is the complete build log.
Comment 4 Sylvain CANOINE 2017-03-29 10:47:58 UTC
Same bug here, on stable amd64. media-libs/xine-lib-1.2.8 builds correctly.
Comment 5 Marco Genasci 2017-04-11 05:38:44 UTC
The problem seems the new binutils with gcc-4.9.x, with gcc-5 works. 

References: 
https://mail-index.netbsd.org/tech-toolchain/2016/03/07/msg002748.html 
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65248
Comment 6 Fabio Rossi 2017-05-29 15:03:59 UTC
Is there any plan on Gentoo to backport the upstream patches for gcc < 5.0?
Comment 7 Andreas Sturmlechner gentoo-dev 2018-08-13 20:48:41 UTC
Old versions of GCC are masked and unsupported.