Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 304207

Summary: transcode cannot link against ffmpeg >=0.5-r1
Product: Gentoo Linux Reporter: Adam Stylinski <stylinae>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED WORKSFORME    
Severity: normal CC: usefuljunk
Priority: High    
Version: 10.0   
Hardware: AMD64   
OS: Linux   
URL: http://paste.pocoo.org/show/176046/
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: This is the config.log file in the workdir

Description Adam Stylinski 2010-02-10 02:57:40 UTC
I'm having linking errors when building this package, something either A.) must have broken the API between these two (ffmpeg does change a lot), or B.) the ebuild may need to specify where the ffmpeg prefix is (although it seems to be in the correct place of /usr/lib/).

Pastebin of failed build can be found here: http://paste.pocoo.org/show/176046/
Comment 1 Adam Stylinski 2010-02-10 02:59:01 UTC
almost forgot, here's emerge --info:

Portage 2.1.7.17 (default/linux/amd64/10.0, gcc-4.4.3, glibc-2.11-r1, 2.6.32-gentoo-r3 x86_64)
=================================================================
System uname: Linux-2.6.32-gentoo-r3-x86_64-Intel-R-_Pentium-R-_Dual_CPU_E2200_@_2.20GHz-with-gentoo-2.0.1
Timestamp of tree: Wed, 10 Feb 2010 02:05:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4-r1, 3.1.1-r1
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.0-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.65
sys-devel/automake:  1.9.6-r2, 1.10.3, 1.11.1
sys-devel/binutils:  2.20
sys-devel/gcc:       4.4.3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA Q3AEULA quake3-data"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -pipe -march=core2 -mtune=core2 -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /home/mythtv/ /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O3 -pipe -march=core2 -mtune=core2 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.netnitco.net http://osmirrors.cerias.purdue.edu/pub/gentoo/ http://gentoo.cites.uiuc.edu/pub/gentoo/ http://gentoo.osuosl.org/"
LDFLAGS="-Wl,-O1"
LINGUAS="en_US"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/berkano"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 a52codec aac aalib acl alsa amd64 amd64codecs apache2 avi bash-completion berkdb bzip2 cd-r cddb cdparanoia cdr cli cpudetection cracklib crypt cscope curl custom-cflags custom-cpuopts custom-cxxflags cxx dirac djbfft dri dts dv dvb dvd dvd-r dvdnav dvdr dvdread encode f77 ffmpeg flac fortran gdbm gif gpm gs gtk hal iconv ieee1394 imagemagick imlib ipv6 jbig joystick jpeg jpeg2k kde latin1 libcaca libdvdread libg++ libwww lirc lzo mad matroska mikmod mjpeg mmx mmxext modules mp2 mp3 mp4 mpeg mpeg2 mplayer mudflap multilib musepack musicbrainz mysql ncurses nls nptl nptlonly nvidia nvidia% offensive ogg openal opengl openmp openntpd oss pam pcre pdflib perl php php5 png pnm posix pppd python qt qt3 qt3support qt4 quicktime rar readline reflection ruby samba sasl sdl session speex spell spl srt sse sse2 sse3 ssl ssse3 suexec svg sysfs tcpd theora threads tiff transcode truetype unicode v4l v4l2 vcd vdpau vim-syntax vorbis x264 xml xorg xpm xv xvid zip zlib" 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="actions alias auth_basic auth_digest suexec authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" DVB_CARDS="or51132" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US" LIRC_DEVICES="serial" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 2 Rafał Mużyło 2010-02-11 03:05:41 UTC
Are you sure, you're not keeping a stale copy somewhere ?
Also, don't use pastebins for bugzilla reports.
Comment 3 Rafał Mużyło 2010-02-11 13:03:36 UTC
And anyway, the interesting part of that pastebin is:
checking for av_register_all in -lavformat... no

What's in config.log on that check ?
Comment 4 Adam Stylinski 2010-02-11 14:24:17 UTC
Created attachment 219233 [details]
This is the config.log file in the workdir

config.log
Comment 5 Adam Stylinski 2010-02-11 14:29:16 UTC
(In reply to comment #3)
> And anyway, the interesting part of that pastebin is:
> checking for av_register_all in -lavformat... no
> 
> What's in config.log on that check ?
> 

ok that's interesting, it's complaining about something with icc, but nothing that it's linking against is compiled with icc.  What reference is it referring to?
Comment 6 Adam Stylinski 2010-02-11 15:40:14 UTC
Ahhh, it was dirac.  Sorry about that.
Comment 7 Beetle B. 2010-05-21 04:34:14 UTC
Was this ever resolved? I get the same error.

emerge --info
Portage 2.1.8.3 (default/linux/amd64/10.0, gcc-4.3.4, glibc-2.10.1-r1, 2.6.32-gentoo-r7 x86_64)
=================================================================
System uname: Linux-2.6.32-gentoo-r7-x86_64-Intel-R-_Core-TM-_i7_CPU_870_@_2.93GHz-with-gentoo-1.12.13
Timestamp of tree: Fri, 14 May 2010 05:15:02 +0000
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4-r1
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc:       4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /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"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://gentoo.chem.wisc.edu/gentoo/ http://gentoo.wetzlmayr.com/ http://gentoo.mirrors.hoobly.com/ http://mirrors.rit.edu/gentoo/ ftp://mirrors.rit.edu/gentoo/"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/multimedia /var/lib/layman"
SYNC="rsync://rsync8.us.gentoo.org/gentoo-portage"
USE="X aalib acl alsa amd64 apache2 bash-completion berkdb bidi blas bzip2 cairo cdda cdr cli cracklib crypt css cups cxx dbus dga directfb djvu dri dvd dvdr emacs encode exif fbcon ffmpeg firefox fontconfig fortran ftp gdbm ggi gif gimp gnuplot gphoto2 gpm gtk iconv imagemagick imap ipv6 java javascript jpeg jpeg2k lapack latex lcms libcaca libnotify lm_sensors maildir matroska mbox midi mime mmx modules mozilla mp3 mp4 mpeg mudflap multilib ncurses nls nntp nptl nptlonly nsplugin nvidia ogg opengl openmp pam pcre pdf perl png pppd python qt3support qt4 quicktime raw readline reflection rss scanner seamonkey session spell spl sse sse2 ssl startup-notification svg sysfs tcpd theora threads tiff truetype unicode usb vcd vorbis x264 xcomposite xine xorg xosd xscreensaver xulrunner xv xvid xvmc zlib zsh-completion" 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="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 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" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia vesa" 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, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 8 Beetle B. 2010-05-21 04:37:53 UTC
Sorry. Can't upload the build log - for whatever reason Bugzilla keeps complaining the file is empty:


libtool: link: x86_64-pc-linux-gnu-gcc -I/usr/include -I/usr/include/lqt -I/usr/include/mpeg2dec -I/usr/include/mpeg2dec -Wall -Wstrict-prototypes -Wmissing-prototypes -O2 -pipe -march=native -Wl,-O1 -o tcdecode tcdecode-tcdecode.o tcdecode-fileinfo.o tcdecode-ioaux.o tcdecode-mpg123.o tcdecode-decode_a52.o tcdecode-decode_dv.o tcdecode-decode_lavc.o tcdecode-decode_lzo.o tcdecode-decode_mov.o tcdecode-decode_mp3.o tcdecode-decode_mpeg2.o tcdecode-decode_ogg.o tcdecode-decode_yuv.o -Wl,--export-dynamic  -L/usr/lib /usr/lib64/libmp3lame.so /usr/lib64/libquicktime.so -lpthread /usr/lib64/libmpeg2.so /usr/lib64/libmpeg2convert.so /usr/lib64/libtheora.so /usr/lib64/libvorbisfile.so /usr/lib64/libvorbis.so -logg ../libtcvideo/.libs/libtcvideo.a ../aclib/.libs/libac.a ../libtc/.libs/libtc.a -lm -lz -ldl                                    
/bin/sh ../libtool --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc  -Wall -Wstrict-prototypes -Wmissing-prototypes -O2 -pipe -march=native  -Wl,-O1 -o tcxpm2rgb tcxpm2rgb-tcxpm2rgb.o ../libtc/libtc.la -lm -lz -ldl                                                                                                                                                                                                                  
libtool: link: x86_64-pc-linux-gnu-gcc -Wall -Wstrict-prototypes -Wmissing-prototypes -O2 -pipe -march=native -Wl,-O1 -o tcxmlcheck tcxmlcheck-tcxmlcheck.o tcxmlcheck-fileinfo.o tcxmlcheck-ioaux.o tcxmlcheck-ioxml.o tcxmlcheck-probe_xml.o  ../aclib/.libs/libac.a ../libtc/.libs/libtc.a -lm -lz -ldl                                                                                                                            
tcdecode-decode_lavc.o: In function `decode_lavc':                                                                                                                                                                 
decode_lavc.c:(.text+0x30): undefined reference to `avcodec_init'                                                                                                                                                  
decode_lavc.c:(.text+0x35): undefined reference to `avcodec_register_all'                                                                                                                                          
decode_lavc.c:(.text+0xa9): undefined reference to `avcodec_find_decoder'                                                                                                                                          
decode_lavc.c:(.text+0xba): undefined reference to `avcodec_alloc_context'                                                                                                                                         
decode_lavc.c:(.text+0xf7): undefined reference to `avcodec_open'                                                                                                                                                  
decode_lavc.c:(.text+0x230): undefined reference to `avcodec_decode_video'                                                                                                                                         
collect2: ld returned 1 exit status                                                                                                                                                                                
make[3]: *** [tcdecode] Error 1                                                                                                                                                                                    
make[3]: *** Waiting for unfinished jobs....                                                                                                                                                                       
libtool: link: ( cd ".libs" && rm -f "import_x11.la" && ln -s "../import_x11.la" "import_x11.la" )                                                                                                                 
libtool: link: x86_64-pc-linux-gnu-gcc -I/usr/include -Wall -Wstrict-prototypes -Wmissing-prototypes -O2 -pipe -march=native -Wl,-O1 -o tcscan tcscan-tcscan.o tcscan-ac3scan.o tcscan-aux_pes.o tcscan-fileinfo.o tcscan-ioaux.o tcscan-mpg123.o tcscan-scan_pes.o  ../avilib/.libs/libavi.a -L/usr/lib /usr/lib64/libmp3lame.so ../aclib/.libs/libac.a ../libtc/.libs/libtc.a -lm -lz -ldl                                          
libtool: link: x86_64-pc-linux-gnu-gcc -Wall -Wstrict-prototypes -Wmissing-prototypes -O2 -pipe -march=native -Wl,-O1 -o tcxpm2rgb tcxpm2rgb-tcxpm2rgb.o  ../libtc/.libs/libtc.a -lm -lz -ldl                      
libtool: link: ( cd ".libs" && rm -f "import_imlist.la" && ln -s "../import_imlist.la" "import_imlist.la" )                                                                                                        
libtool: link: ( cd ".libs" && rm -f "import_im.la" && ln -s "../import_im.la" "import_im.la" )                                                                                                                    
libtool: link: x86_64-pc-linux-gnu-gcc -Dattribute_deprecated= -I/usr/include -I/usr/include/ImageMagick -I/usr/include -I/usr/include/lqt -Wall -Wstrict-prototypes -Wmissing-prototypes -O2 -pipe -march=native -Wl,-O1 -o tcprobe tcprobe-tcprobe.o tcprobe-ac3scan.o tcprobe-aux_pes.o tcprobe-dvd_reader.o tcprobe-fileinfo.o tcprobe-ioaux.o tcprobe-ioxml.o tcprobe-mpg123.o tcprobe-scan_pes.o tcprobe-decode_dv.o tcprobe-extract_avi.o tcprobe-extract_mxf.o tcprobe-extract_yuv.o tcprobe-probe_bktr.o tcprobe-probe_bsdav.o tcprobe-probe_dvd.o tcprobe-probe_im.o tcprobe-probe_mov.o tcprobe-probe_nuv.o tcprobe-probe_ogg.o tcprobe-probe_oss.o tcprobe-probe_pv3.o tcprobe-probe_stream.o tcprobe-probe_sunau.o tcprobe-probe_v4l.o tcprobe-probe_vnc.o tcprobe-probe_wav.o tcprobe-probe_xml.o tcprobe-probe_mplayer.o tcprobe-probe_ffmpeg.o tcprobe-probe_x11.o tcprobe-x11source.o tcprobe-probe_pvn.o  ../avilib/.libs/libavi.a ../avilib/.libs/libwav.a -L/usr/lib /usr/lib64/libdvdread.so /usr/lib64/libMagickWand.so -L/usr/lib64 /usr/lib64/libMagickCore.so /usr/lib64/liblcms.so /usr/lib64/libtiff.so -lc /usr/lib64/libjpeg.so /usr/lib64/libfontconfig.so /usr/lib64/libfreetype.so /usr/lib64/libexpat.so /usr/lib64/libXt.so -lbz2 /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/libgomp.so -lrt /usr/lib64/libltdl.so /usr/lib64/libmp3lame.so /usr/lib64/libquicktime.so -lpthread /usr/lib64/libtheora.so /usr/lib64/libvorbis.so -logg /usr/lib64/libSM.so -luuid /usr/lib64/libICE.so /usr/lib64/libXext.so /usr/lib64/libX11.so /usr/lib64/libxcb.so /usr/lib64/libXau.so /usr/lib64/libXdmcp.so ../libtcvideo/.libs/libtcvideo.a ../aclib/.libs/libac.a ../libtc/.libs/libtc.a -lm -lz -ldl -pthread                   
tcprobe-probe_ffmpeg.o: In function `probe_ffmpeg':                                                                                                                                                                
probe_ffmpeg.c:(.text+0x28): undefined reference to `avcodec_init'                                                                                                                                                 
probe_ffmpeg.c:(.text+0x2d): undefined reference to `avcodec_register_all'                                                                                                                                         
probe_ffmpeg.c:(.text+0x4c): undefined reference to `av_open_input_file'                                                                                                                                           
probe_ffmpeg.c:(.text+0x5e): undefined reference to `av_find_stream_info'                                                                                                                                          
probe_ffmpeg.c:(.text+0x1cc): undefined reference to `av_close_input_file'                                                                                                                                         
collect2: ld returned 1 exit status                                                                                                                                                                                
make[3]: *** [tcprobe] Error 1                                                                                                                                                                                     
mv -f .deps/tcrequant-tcrequant.Tpo .deps/tcrequant-tcrequant.Po                                                                                                                                                   
make[3]: Leaving directory `/var/tmp/portage/media-video/transcode-1.1.5-r1/work/transcode-1.1.5/import'                                                                                                           
make[2]: *** [all-recursive] Error 1                                                                                                                                                                               
make[2]: Leaving directory `/var/tmp/portage/media-video/transcode-1.1.5-r1/work/transcode-1.1.5/import'                                                                                                           
make[1]: *** [all-recursive] Error 1                                                                                                                                                                               
make[1]: Leaving directory `/var/tmp/portage/media-video/transcode-1.1.5-r1/work/transcode-1.1.5'                                                                                                                  
make: *** [all] Error 2                                                                                                                                                                                            
 * ERROR: media-video/transcode-1.1.5-r1 failed:                                                                                                                                                                   
 *   emake failed                                                                                                                                                                                                  
 *                                                                                                                                                                                                                 
 * Call stack:                                                                                                                                                                                                     
 *     ebuild.sh, line   54:  Called src_compile                                                                                                                                                                   
 *   environment, line 3276:  Called _eapi2_src_compile                                                                                                                                                            
 *     ebuild.sh, line  646:  Called die                                                                                                                                                                           
 * The specific snippet of code:                                                                                                                                                                                   
 *              emake || die "emake failed"                                                                                                                                                                        
 *                                                                                                                                                                                                                 
 * If you need support, post the output of 'emerge --info =media-video/transcode-1.1.5-r1',                                                                                                                        
 * the complete build log and the output of 'emerge -pqv =media-video/transcode-1.1.5-r1'.                                                                                                                         
 * The complete build log is located at '/var/tmp/portage/media-video/transcode-1.1.5-r1/temp/build.log'.                                                                                                          
 * The ebuild environment file is located at '/var/tmp/portage/media-video/transcode-1.1.5-r1/temp/environment'.                                                                                                   
 * S: '/var/tmp/portage/media-video/transcode-1.1.5-r1/work/transcode-1.1.5'