Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 321725 - media-video/ffmpeg-0.5_p22846 doesn't compile undefined reference to `x264_encoder_open_92'
Summary: media-video/ffmpeg-0.5_p22846 doesn't compile undefined reference to `x264_en...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-27 19:45 UTC by Lars
Modified: 2010-05-28 11:39 UTC (History)
0 users

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


Attachments
ffmpeg build.log (ffmpeg_build.log,68.91 KB, text/plain)
2010-05-27 19:46 UTC, Lars
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lars 2010-05-27 19:45:38 UTC
ffmpeg failed in the last step when linking the binary.

I got following error msg:
var/tmp/portage/media-video/ffmpeg-0.5_p22846/work/ffmpeg-0.5_p22846/libavcodec/libavcodec.so: undefined reference to `x264_encoder_open_92'
collect2: ld gab 1 als Ende-Status zurück
make: *** [ffmpeg_g] Fehler 1
/var/tmp/portage/media-video/ffmpeg-0.5_p22846/work/ffmpeg-0.5_p22846/libavcodec/libavcodec.so: undefined reference to `x264_encoder_open_92'
collect2: ld gab 1 als Ende-Status zurück
make: *** [ffplay_g] Fehler 1
rm libavcodec/mdct_tablegen libavcodec/dv_tablegen libavcodec/cbrt_tablegen libavcodec/motionpixels_tablegen libavcodec/pcm_tablegen libavcodec/qdm2_tablegen
 * ERROR: media-video/ffmpeg-0.5_p22846 failed:
 *   make failed
 * 
 * Call stack:
 *     ebuild.sh, line  54:  Called src_compile
 *   environment, line 2741:  Called die
 * The specific snippet of code:
 *       emake || die "make failed"
 * 
 * If you need support, post the output of 'emerge --info =media-video/ffmpeg-0.5_p22846',
 * the complete build log and the output of 'emerge -pqv =media-video/ffmpeg-0.5_p22846'.
 * The complete build log is located at '/var/tmp/portage/media-video/ffmpeg-0.5_p22846/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-video/ffmpeg-0.5_p22846/temp/environment'.
 * S: '/var/tmp/portage/media-video/ffmpeg-0.5_p22846/work/ffmpeg-0.5_p22846'

Reproducible: Always




emerge --info
Portage 2.1.8.3 (default/linux/amd64/10.0/desktop, gcc-4.4.3, glibc-2.11.1-r0, 2.6.33-gentoo-100328 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.33-gentoo-100328-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8400_@_3.00GHz-with-gentoo-2.0.1
Timestamp of tree: Thu, 27 May 2010 17:30:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:     4.1_p7
dev-java/java-config: 1.3.7-r1, 2.1.11
dev-lang/python:     2.5.4-r2, 2.6.5-r2, 3.1.2-r3
dev-python/pycrypto: 2.1.0
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.1-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* PUEL"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages metadata-transfer news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,-z,now -Wl,--as-needed"
LINGUAS="de"
MAKEOPTS="-j4"
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/vmware /usr/local/portage/layman/sabayon /usr/local/portage/local"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa amarok amd64 bcmath berkdb branding bzip2 cairo cdda cdr cleartype cli consolekit cracklib crypt css cups cxx dbus development divx djvu dri dts dv dvd dvdr dvdread emboss encode exif extrafilters fam ffmpeg firefox firefox3 flac foomaticdb fortran gd gdbm geolocation gif glibc-omitfp gnutls gphoto2 gpm gps gtk gzip hal htmlhandbook iconv id3 id3tag imagemagick innodb java java6 jpeg jpeg2k kde kde4 kdehiddenvisibility kdm kipi lame lcms libnotify libssh2 lm_sensors logitech-mouse lzma lzo mad mikmod mjpeg mmx mmxext mng modules mp2 mp3 mp4 mpeg mplayer mudflap multilib mysql mysqli ncurses nls nptl nptlonly nsplugin nvidia ofx ogg openal opengl openmp pam pango pcre pdf perl pic plasma png ppds pppd python qt3support qt4 quicktime raw readline reflection samba sdl semantic-desktop session simplexml slang spell spl sqlite sqlite3 sse sse2 ssl startup-notification subtitles svg sysfs tcpd theora tiff truetype unicode usb userlocales vorbis webkit x264 x86emu xcb xcomposite xfs xine xinetd xml xorg xpm xscreensaver xulrunner xv xvid yv12 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 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" QEMU_SOFTMMU_TARGETS="arm i386 x86_64 ppc" QEMU_USER_TARGETS="arm armeb ppc ppc64 i386" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nouveau" 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, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Lars 2010-05-27 19:46:36 UTC
Created attachment 233169 [details]
ffmpeg build.log
Comment 2 Lars 2010-05-27 19:48:21 UTC
I also tried

LDFLAGS="" USE="-pic" emerge ffmpeg

also 

USE="-pic" emerge x264, but x264 ignores Flag -pic and builds always with pic

but both ends with errors.
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2010-05-27 20:01:48 UTC
With what version of x264?  
Can you also make sure you don't have local copy of old x264 in e.g. /usr/local?
Comment 4 Lars 2010-05-27 20:31:25 UTC
Definitly with the last one (x264-0.0.20100423)

and there is no other Version.
Comment 5 Alexis Ballier gentoo-dev 2010-05-28 08:04:00 UTC
(In reply to comment #4)
> Definitly with the last one (x264-0.0.20100423)
> 
> and there is no other Version.
> 

you probably have an old x264.h lying somewhere; please try to locate it.
x264-0.0.20100423 has version 93 not 92.
Comment 6 Lars 2010-05-28 11:39:48 UTC
Arg!

OK... /usr/local/include has a x264.h

Deleted and then emerge ffmpeg do fine!

"Bug" fixed and closed...

Thnx!