Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 411159 - libavcodec/libavcodec.so: undefined reference to `x264_encoder_open_122'
Summary: libavcodec/libavcodec.so: undefined reference to `x264_encoder_open_122'
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-07 16:04 UTC by Ilya Andriyanov
Modified: 2012-07-09 06:35 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 Ilya Andriyanov 2012-04-07 16:04:53 UTC
Me need compile manual ffmpeg(git repo) and on step is "make" his drop with error

"
LD	ffmpeg_g
libavcodec/libavcodec.so: undefined reference to `x264_encoder_open_122'
collect2: ld returned 1 exit status
make: *** [ffmpeg_g] Error 1

"

Reproducible: Always

Steps to Reproduce:
1. ./configure
2. make
3.
Actual Results:  
ffmpeg # make
LD	ffmpeg_g
libavcodec/libavcodec.so: undefined reference to `x264_encoder_open_122'
collect2: ld returned 1 exit status
make: *** [ffmpeg_g] Error 1



Portage 2.1.10.49 (default/linux/amd64/10.0/desktop, gcc-4.5.3, glibc-2.13-r4, 3.2.1-gentoo-r2 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.2.1-gentoo-r2-x86_64-Intel-R-_Core-TM-_i3_CPU_540_@_3.07GHz-with-gentoo-2.0.3
Timestamp of tree: Sat, 07 Apr 2012 09:00:01 +0000
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa"
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.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/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"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles/ ftp://mirror.yandex.ru/gentoo-distfiles/"
LANG="en_US.utf8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en ru ja kn ko zh_CN zh_TW"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gdu gif gpm gtk hal iconv ipv6 jpeg lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf png policykit ppds pppd python qt3support qt4 readline sdl session sh-completion spell sqlite sse sse2 sse3 sse4 ssl startup-notification svg sysfs tcpd tiff truetype udev unicode usb userlocales vim-syntax vorbis x264 xcb xml xorg xulrunner xv xvid 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 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 auth_digest imagemap version" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en ru ja kn ko zh_CN zh_TW" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon" 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, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


###################

./configure --prefix=/usr/local/ffmpeg --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --cc=x86_64-pc-linux-gnu-gcc --disable-static --enable-shared --enable-gpl --enable-version3 --enable-nonfree --disable-debug --disable-ffplay --disable-network --enable-libx264 --disable-indev=v4l --disable-indev=v4l2 --disable-indev=oss --disable-indev=jack --enable-x11grab --enable-libfaac --enable-libopencore-amrwb --enable-libopencore-amrnb --disable-vdpau --disable-vaapi --enable-libfreetype --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-pthreads --enable-libdirac --enable-libschroedinger --enable-libspeex --enable-libopenjpeg --enable-postproc --enable-avfilter --enable-bzlib --enable-frei0r --enable-libaacplus --enable-libass --enable-libbluray --enable-librtmp --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libxvid --enable-openal --enable-openssl --enable-zlib
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2012-04-07 16:25:51 UTC
(In reply to comment #0)
> Me need compile manual ffmpeg(git repo) and on step is "make" his drop with
> error

We support ebuilds, not manual installation.
Comment 2 Geoff Madden 2012-07-09 06:35:52 UTC
(In reply to comment #1)
> (In reply to comment #0)
> > Me need compile manual ffmpeg(git repo) and on step is "make" his drop with
> > error
> 
> We support ebuilds, not manual installation.

Hi there I have the same problem on my x86 using the ebuild.

libtool: link: i686-pc-linux-gnu-gcc -I/usr/include -Wall -Wstrict-prototypes -Wmissing-prototypes -O2 -march=athlon-xp -pipe -Wl,-O1 -Wl,--as-needed -o tcdemux tcdemux-aux_pes.o tcdemux-tcdemux.o tcdemux-demux_pass.o tcdemux-demuxer.o tcdemux-dvd_reader.o tcdemux-fileinfo.o tcdemux-ioaux.o tcdemux-packets.o tcdemux-scan_pack.o tcdemux-seqinfo.o  ../avilib/.libs/libavi.a -ldv -L/usr/lib -ldvdread ../aclib/.libs/libac.a ../libtc/.libs/libtc.a -lpthread -lm -lz -ldl
/usr/lib/libavcodec.so: undefined reference to `x264_encoder_open_122'
collect2: ld returned 1 exit status
make[3]: *** [tcdecode] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/var/tmp/portage/media-video/transcode-1.1.7-r1/work/transcode-1.1.7/import'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/media-video/transcode-1.1.7-r1/work/transcode-1.1.7/import'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-video/transcode-1.1.7-r1/work/transcode-1.1.7'
make: *** [all] Error 2
 * ERROR: media-video/transcode-1.1.7-r1 failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=media-video/transcode-1.1.7-r1'`,
 * the complete build log and the output of `emerge -pqv '=media-video/transcode-1.1.7-r1'`.
 * The complete build log is located at '/var/tmp/portage/media-video/transcode-1.1.7-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-video/transcode-1.1.7-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/media-video/transcode-1.1.7-r1/work/transcode-1.1.7'
 * S: '/var/tmp/portage/media-video/transcode-1.1.7-r1/work/transcode-1.1.7'

The above will give an idea as to the problem,in a nutshell its looking for libx264.so.122 processe's which i
 dont hava available on my rebuilt system,I placed a link from x264.225 but the process's appear not compatible in this version.
Geoff