Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 174531 - [fPIC] media-video/mjpegtools-1.8.0-r1 emerge fails on hardened amd64
Summary: [fPIC] media-video/mjpegtools-1.8.0-r1 emerge fails on hardened amd64
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal with 1 vote (vote)
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-13 21:52 UTC by Sune Kloppenborg Jeppesen (RETIRED)
Modified: 2009-07-22 23:23 UTC (History)
0 users

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 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2007-04-13 21:52:03 UTC
Emerge of 1.8.0-r1 fails with:

/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/../../../../x86_64-pc-linux-gnu/bin/ld: yuvscaler-yuvscaler.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
yuvscaler-yuvscaler.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [yuvscaler] Error 1
make[2]: Leaving directory `/var/tmp/portage/media-video/mjpegtools-1.8.0-r1/work/mjpegtools-1.8.0/lavtools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-video/mjpegtools-1.8.0-r1/work/mjpegtools-1.8.0'
make: *** [all] Error 2

!!! ERROR: media-video/mjpegtools-1.8.0-r1 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  environment, line 3750:   Called src_compile
  mjpegtools-1.8.0-r1.ebuild, line 104:   Called die

emerge --info
Portage 2.1.2.2 (hardened/amd64/multilib, gcc-3.4.6, glibc-2.3.6-r5, 2.6.18-hardened-hostname x86_64)
=================================================================
System uname: 2.6.18-hardened-hostname x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System release 1.12.9
Timestamp of tree: Fri, 13 Apr 2007 03:00:01 +0000
dev-java/java-config: 1.3.7, 2.0.31-r5
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
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, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.15-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=k8"
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"
CXXFLAGS="-O2 -march=k8"
DISTDIR="/usr/local/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict"
LANG="en_US.UTF-8"
MAKEOPTS="-j1"
PKGDIR="/usr/local/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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
USE="X acpi alsa amd64 arts audiofile bash-completion berkdb bluetooth branding cairo clamav crypt cups dbus dri dvd dvdr encode ethereal ffmpeg flac freetype gif hal hardened imap jpeg justify kde kdeenablefinal lm_sensors mad maildir midi mp3 mpeg multilib ncurses network nls nptl nptlonly ogg oggvorbis opengl pam pdf pic png qt3 quicktime rdesktop readline samba sasl snmp sse sse2 ssl tcpd truetype unicode usb v4l vorbis wifi xine xml xorg xosd xvid zlib" ALSA_CARDS="via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" CAMERAS="canon" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nv v4l"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Also tried with latest unstable with same result.
Comment 1 Matt 2007-10-20 19:56:15 UTC
you actually tried to add -fPIC to your cflags & cxxflags temporarily as suggested ?
Comment 2 Matt 2007-10-20 19:57:57 UTC
sorry for the "double-comment":

I forgot: eselect opengl set xorg-x11

after that it built for me

don't forget to set it back!
Comment 3 Michael Henry 2007-12-26 19:55:25 UTC
I have this same issue.

Not sure if it's related, but the build seems to expect X11 libraries to be installed.  The box I'm installing it on is headless.  Regardless even after installing the libraries (just to see) it won't build, same error as above.
Comment 4 Dean 2008-08-25 03:19:11 UTC
I had the same problem with 1.8.0-r1 on AMD x86_64. Added -fPIC to CFLAGS/CXXFLAGS and the package built properly.

See http://gentoo-wiki.com/CflagsExceptions for a half-way decent write-up of how to enable package-specific CFLAGS.  This is a good idea since fPIC is dangerous to some packages.
Comment 5 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-12-08 02:20:01 UTC
installs just fine on my non-hardened host. re-assigning to hardened, I guess. 
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2009-07-22 23:23:53 UTC
mjpegtools-1.9.0 is stable on all arch's; this bug is obsolete with provided information.

if there's new issues with 1.9.0, I suggest opening a new bug.