Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 156082 - [fPIC] media-video/ffmpeg-0.4.9_p20061016 fails to compile
Summary: [fPIC] media-video/ffmpeg-0.4.9_p20061016 fails to compile
Status: RESOLVED DUPLICATE of bug 151832
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
: 156081 (view as bug list)
Depends on:
Blocks: 157890
  Show dependency tree
 
Reported: 2006-11-23 20:14 UTC by noahlorenzen
Modified: 2007-08-28 14:04 UTC (History)
5 users (show)

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 noahlorenzen 2006-11-23 20:14:13 UTC
ffmpeg-0.4.9_p20061016 fails to compile. I receive the following compile error...


ranlib libavcodec.a
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: warning: creating a DT_TEXTREL in object.
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: dsputil.o: relocation R_X86_64_PC32 against `pix_abs16_c' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make[1]: *** [libavcodec.so.51] Error 1
make[1]: Leaving directory `/var/tmp/portage/ffmpeg-0.4.9_p20061016/work/ffmpeg/libavcodec'
make: *** [lib] Error 2

!!! ERROR: media-video/ffmpeg-0.4.9_p20061016 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  ffmpeg-0.4.9_p20061016.ebuild, line 156:   Called die

!!! make failed
!!! If you need support, post the topmost build error, and the call stack if relevant.



Here is my emerge --info...


Portage 2.1.1-r1 (default-linux/amd64/2006.1, gcc-4.1.1, glibc-2.4-r4, 2.6.17-gentoo-r8 x86_64)
=================================================================
System uname: 2.6.17-gentoo-r8 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+
Gentoo Base System version 1.12.6
Last Sync: Fri, 24 Nov 2006 02:20:01 +0000
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:     [Not Present]
dev-util/confcache:  [Not Present]
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
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -02 -pipe -msse3"
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="-march=athlon64 -02 -pipe -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo/ ftp://gentoo.chem.wisc.edu/gentoo/ http://cudlug.cudenver.edu/gentoo/ "
MAKEOPTS="-j3"
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"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="amd64 X berkdb bitmap-fonts branding cli cracklib crypt cups dlloader dri elibc_glibc ffmpeg fortran gdbm gif gpm iconv input_devices_keyboard input_devices_mouse ipv6 isdnlog jpeg kde kernel_linux libg++ mad madwifi mplayer ncurses nls nptl nptlonly opengl pam pcre perl png ppds pppd python readline reflection session spl ssl tcpd truetype-fonts type1-fonts udev unicode userland_GNU video_cards_nvidia xine xorg zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 noahlorenzen 2006-11-23 20:25:30 UTC
*** Bug 156081 has been marked as a duplicate of this bug. ***
Comment 2 Alexis Ballier gentoo-dev 2006-12-11 23:52:01 UTC
Could you also post the output of emerge -pv ffmpeg please ?
I dont have such a problem here.
Comment 3 Ronan Klyne 2006-12-22 06:35:10 UTC
(In reply to comment #2)
> Could you also post the output of emerge -pv ffmpeg please ?

Here's mine:

cake ~ # emerge -pv ffmpeg

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ] media-video/ffmpeg-0.4.9_p20061016 [0.4.9_p20060530] USE="a52 aac doc dts network ogg oss theora threads truetype v4l vorbis x264 xvid zlib (-altivec) -amr -debug -encode -ieee1394 -imlib (-mmx) -sdl -test" 0 kB

Total size of downloads: 0 kB

Anything else I can help with, just holler...
Comment 4 Ronan Klyne 2006-12-22 08:09:29 UTC
It should be noted that on my system this problem occurs with GCC 4.1.1, but not with 3.4.6.
Comment 5 Josh 2007-01-18 18:34:09 UTC
x86_64-pc-linux-gnu-gcc -shared -Wl,-soname,libavcodec.so.51 -Wl,--warn-common   -pthread -rdynamic -export-dynamic -Wl,--as-needed -Wl,-rpath-link,/var/tmp/portage/ffmpeg-0.4.9_p20061016/work/ffmpeg/libavcodec -Wl,-rpath-link,/var/tmp/portage/ffmpeg-0.4.9_p20061016/work/ffmpeg/libavformat -Wl,-rpath-link,/var/tmp/portage/ffmpeg-0.4.9_p20061016/work/ffmpeg/libavutil -o libavcodec.so.51 bitstream.o utils.o allcodecs.o mpegvideo.o jrevdct.o jfdctfst.o jfdctint.o mjpeg.o resample.o resample2.o dsputil.o motion_est.o imgconvert.o mpeg12.o mpegaudiodec.o simple_idct.o ratecontrol.o eval.o error_resilience.o fft.o mdct.o raw.o golomb.o cabac.o faandct.o parser.o vp3dsp.o h264idct.o rangecoder.o pnm.o h263.o msmpeg4.o h263dec.o opt.o bitstream_filter.o audioconvert.o imgresample.o i386/fdct_mmx.o i386/cputest.o i386/dsputil_mmx.o i386/mpegvideo_mmx.o i386/motion_est_mmx.o i386/simple_idct_mmx.o i386/idct_mmx_xvid.o i386/fft_sse.o i386/vp3dsp_mmx.o i386/vp3dsp_sse2.o i386/fft_3dn.o i386/fft_3dn2.o i386/snowdsp_mmx.o i386/idct_mmx.o i386/cavsdsp_mmx.o aasc.o ac3enc.o alac.o asv1.o avs.o bmp.o cavs.o cavsdsp.o cinepak.o cljr.o cook.o cscd.o lzo.o cyuv.o dsicinav.o dvbsubdec.o dvbsub.o dvdsub.o dvdsubenc.o dv.o 8bps.o ffv1.o huffyuv.o flac.o flacenc.o flashsv.o flicvideo.o 4xm.o fraps.o h261.o h264.o idcinvideo.o indeo2.o indeo3.o interplayvideo.o dpcm.o kmvc.o loco.o mace.o mmvideo.o mpegaudio.o msrle.o msvideo1.o lcl.o nuv.o rtjpeg.o png.o qdm2.o qdrw.o qpeg.o qtrle.o ra144.o ra288.o roqvideo.o rpza.o rv10.o shorten.o smacker.o smc.o snow.o sonic.o svq1.o targa.o vp3.o tiff.o truemotion1.o truemotion2.o truespeech.o tscc.o tta.o ulti.o vc1.o vc1dsp.o vcr1.o vmdav.o vmnc.o tiertexseqv.o vorbis.o vorbis_data.o vorbis_enc.o vp5.o vp56.o vp56data.o vp6.o vqavideo.o wavpack.o wmadec.o wnv1.o ws-snd1.o xan.o xl.o zmbv.o pcm.o adpcm.o adx.o g726.o faad.o faac.o xvidff.o xvid_rc.o a52dec.o liba52/bit_allocate.o liba52/bitstream.o liba52/downmix.o liba52/imdct.o liba52/parse.o liba52/crc.o liba52/resample.o dtsdec.o pthread.o -L/var/tmp/portage/ffmpeg-0.4.9_p20061016/work/ffmpeg/libavutil -lavutil -lm -lz -ldts -logg -lxvidcore -ldc1394_control -lraw1394 -lfaac -lfaad
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: warning: creating a DT_TEXTREL in object.
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: dsputil.o: relocation R_X86_64_PC32 against `pix_abs16_c' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make[1]: *** [libavcodec.so.51] Error 1
make[1]: Leaving directory `/var/tmp/portage/ffmpeg-0.4.9_p20061016/work/ffmpeg/libavcodec'
make: *** [lib] Error 2

!!! ERROR: media-video/ffmpeg-0.4.9_p20061016 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  ffmpeg-0.4.9_p20061016.ebuild, line 157:   Called die

!!! make failed
!!! If you need support, post the topmost build error, and the call stack if relevant.


emerge --info

Portage 2.1.1-r2 (default-linux/amd64/2006.1, gcc-4.1.1, glibc-2.4-r4, 2.6.18-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.18-gentoo-r4 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+
Gentoo Base System version 1.12.6
Last Sync: Thu, 18 Jan 2007 05:00:01 +0000
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:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
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.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -msse3 -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="-march=athlon64 -msse3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://mirror.usu.edu/mirrors/gentoo/ "
MAKEOPTS=""
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X a52 aac aalib alsa alsa_cards_intel8x0 alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol apache2 arts bash-comleption bcmath berkdb bidi bitmap-fonts bzip2 calender cdda cdio cdr cli cracklib crypt cups dlloader doc dri dts dv dvd dvdr elibc_glibc exif ffmpeg fftw firefox flac flash fortran freetype ftp g15 gdbm glut gnutls gpm gtk gtk2 hal httpd iconv ieee1394 imap input_devices_keyboard input_devices_mouse ipv6 isdnlog jabber java jpeg kde kernel_linux lcd_devices_bayrad lcd_devices_cfontz lcd_devices_cfontz633 lcd_devices_glk lcd_devices_hd44780 lcd_devices_lb216 lcd_devices_lcdm001 lcd_devices_mtxorb lcd_devices_ncurses lcd_devices_text libg++ live mad mcal mp3 mpeg msn ncurses nls nptl nptlonly nsplugin offensive ogg openal opengl pam pcre pdf perl php plotutils png posix ppds pppd python qt3 readline reflection samba session sockets spell spl ssl tcpd threads truetype-fonts type1-fonts udev unicode usb userland_GNU vcd video_cards_nvidia vlm wifi wxwindows xcomposite xine xinerama xinetd xml xorg xosd xpm xprint xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


emerge -pv ffmpeg


These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] media-video/ffmpeg-0.4.9_p20061016  USE="a52 aac doc dts ieee1394 ogg threads xvid zlib (-altivec) -amr -debug -encode -imlib (-mmx) -network -oss -sdl -test -theora -truetype -v4l -vorbis -x264" 0 kB

Total size of downloads: 0 kB
Comment 6 Seymore 2007-01-24 11:21:49 UTC
emerging ffmpeg-0.4.9_p20061016 fails here too:

Creating config.mak and config.h...
/var/tmp/portage/ffmpeg-0.4.9_p20061016/work/ffmpeg/version.sh "/var/tmp/portage/ffmpeg-0.4.9_p20061016/work/ffmpeg"
grep: .svn/entries: No such file or directory
i686-pc-linux-gnu-gcc -MM -O2 -march=k8 -pipe -fomit-frame-pointer -fomit-frame-pointer -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Winline -I/var/tmp/portage/ffmpeg-0.4.9_p20061016/work/ffmpeg -I/var/tmp/portage/ffmpeg-0.4.9_p20061016/work/ffmpeg -I/var/tmp/portage/ffmpeg-0.4.9_p20061016/work/ffmpeg/libavutil -I/var/tmp/portage/ffmpeg-0.4.9_p20061016/work/ffmpeg/libavcodec -I/var/tmp/portage/ffmpeg-0.4.9_p20061016/work/ffmpeg/libavformat -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE  ffmpeg.c ffserver.c cmdutils.c ffplay.c  1>.depend
ffplay.c:28:17: SDL.h: No such file or directory
ffplay.c:29:24: SDL_thread.h: No such file or directory
make: *** [.depend] Error 1

!!! ERROR: media-video/ffmpeg-0.4.9_p20061016 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  ffmpeg-0.4.9_p20061016.ebuild, line 156:   Called die


I don't know what the SDH.h file is, but I found it in '/usr/include/SDL/SDL.h'

$ emerge -pv ffmpeg

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ] media-video/ffmpeg-0.4.9_p20061016 [0.4.9_p20051216] USE="aac encode imlib ogg oss sdl theora* truetype v4l* vorbis xvid* zlib -a52 (-altivec) -amr% -debug -doc* -dts -ieee1394 -mmx -network -test -threads -x264%" 0 kB


And finally my emerge --info 

Portage 2.1.1-r2 (default-linux/x86/2006.0, gcc-3.4.4, glibc-2.4-r4, 2.6.18-gentoo-r6 i686)
=================================================================
System uname: 2.6.18-gentoo-r6 i686 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.6
Last Sync: Tue, 23 Jan 2007 10:50:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.31-r3
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
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.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /home/mythtv/ /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/sha
re/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/t
erminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=k8 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.uni-c.dk/pub/gentoo/ ftp://ftp.du.se/pub/os/gentoo http://ds.thn.htu.se/linux/
gentoo ftp://ftp.ds.hj.se/pub/Linux/distributions/gentoo/ ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/                   gentoo/"
LINGUAS="no en nb nb_NO"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delet                   e --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/portage-xgl /usr/portage/local/layman/xeffects /usr/portage/local                   /layman/hanno-xgl /usr/portage/local/mortlayer"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dnow X aac aalib acpi aiglx alsa alsa_cards_ali5451 alsa_cards_als4000 alsa_cards_atiixp alsa_card                   s_atiixp-modem alsa_cards_bt87x alsa_cards_ca0106 alsa_cards_cmipci alsa_cards_emu10k1x alsa_cards_ens1370 a                   lsa_cards_ens1371 alsa_cards_es1938 alsa_cards_es1968 alsa_cards_fm801 alsa_cards_hda-intel alsa_cards_intel                   8x0 alsa_cards_intel8x0m alsa_cards_maestro3 alsa_cards_trident alsa_cards_usb-audio alsa_cards_via82xx alsa                   _cards_via82xx-modem alsa_cards_ymfpci alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym al                   sa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_e                   mpty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_                   plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_mete                   r alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins                   _rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol apache2 ap                   m arts asf bash-completion berkdb bitmap-fonts bluetooth bzip2 cddb cdr cli cracklib crypt cups dbus divx4li                   nux dlloader doc dri dvd dvdr eds elibc_glibc emacs emboss encode esd fbcon foomaticdb fortran gdbm gif gimp                   print gkt2 gmail gnome gpm gstreamer gtk gtk2 hal iconv imap imlib input_devices_evdev input_devices_keyboar                   d input_devices_mouse ipod ipv6 isdnlog jpeg kde kdeenablefinal kernel_linux lcd_devices_bayrad lcd_devices_                   cfontz lcd_devices_cfontz633 lcd_devices_glk lcd_devices_hd44780 lcd_devices_lb216 lcd_devices_lcdm001 lcd_d                   evices_mtxorb lcd_devices_ncurses lcd_devices_text libcaca libg++ libwww linguas_en linguas_nb linguas_nb_NO                    linguas_no mad matroska mikmod motif mozilla mp3 mpeg mysql ncurses new-login nls nptl nptlonly offensive o                   gg opengl oss pam pcre pdf perl png pppd python qt qt3 qt4 quicktime readline reflection samba sdl session s                   kins spell spl ssl svg tcpd theora tiff tk truetype truetype-fonts type1-fonts udev unicode usb userland_GNU                    v4l video_cards_nv video_cards_nvidia video_cards_vesa vorbis wifi win32codecs xml xorg xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 7 Vitaliy V. Osypenko 2007-01-25 10:08:50 UTC
> ranlib libavcodec.a
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld:
> warning: creating a DT_TEXTREL in object.
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld:
> dsputil.o: relocation R_X86_64_PC32 against `pix_abs16_c' can not be used when
> making a shared object; recompile with -fPIC
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld:
> final link failed: Bad value
> collect2: ld returned 1 exit status
> make[1]: *** [libavcodec.so.51] Error 1
> make[1]: Leaving directory
> `/var/tmp/portage/ffmpeg-0.4.9_p20061016/work/ffmpeg/libavcodec'
> make: *** [lib] Error 2
> 
> !!! ERROR: media-video/ffmpeg-0.4.9_p20061016 failed.
> Call stack:
>   ebuild.sh, line 1546:   Called dyn_compile
>   ebuild.sh, line 937:   Called src_compile
>   ffmpeg-0.4.9_p20061016.ebuild, line 156:   Called die
> 
> !!! make failed
> !!! If you need support, post the topmost build error, and the call stack if
> relevant.

Same bug with 4.1.1 but works with 3.3.6.
Comment 8 Simon Stelling (RETIRED) gentoo-dev 2007-01-27 20:18:51 UTC

*** This bug has been marked as a duplicate of bug 151832 ***
Comment 9 Simon Stelling (RETIRED) gentoo-dev 2007-01-27 21:15:21 UTC
forgot to mention, you can workaround this easily by putting -O/-O2/-O3 in your CFLAGS, i suggest -O2
Comment 10 Nanouck 2007-08-28 14:04:43 UTC
Do not know if people in CC list have solved this bug which is duplicated of many  [1] too. After seeing changes on ffmpeg subversion repository and googling It seems variable type has changed see [2]

Hope it helps you

[1] http://bugs.gentoo.org/show_bug.cgi?id=176660
[2] http://bugs.gentoo.org/show_bug.cgi?id=176660#c12