Ошибка при сборке ffmpeg

Доброго утра, коммьюнити. Заранее извиняюсь, на pastebin.com и ему подобные ресурсы на работе закрыты на проксе, потому приходится куски конфигов и логов класть сюда. Собственно вот так обрывается сборка ffmpeg.

i686-pc-linux-gnu-gcc -shared -Wl,-soname,libavfilter.so.1 -Wl,--version-script,libavfilter/libavfilter.ver -L"/tmp/portage/media-video/ffmpeg-0.5_p21602/work/ffmpeg-0.5_p21602"/libavcodec -L"/tmp/portage/media-video/ffmpeg-0.5_p21602/work/ffmpeg-0.5_p21602"/libavdevice -L"/tmp/portage/media-video/ffmpeg-0.5_p21602/work/ffmpeg-0.5_p21602"/libavfilter -L"/tmp/portage/media-video/ffmpeg-0.5_p21602/work/ffmpeg-0.5_p21602"/libavformat -L"/tmp/portage/media-video/ffmpeg-0.5_p21602/work/ffmpeg-0.5_p21602"/libavutil -L"/tmp/portage/media-video/ffmpeg-0.5_p21602/work/ffmpeg-0.5_p21602"/libpostproc -L"/tmp/portage/media-video/ffmpeg-0.5_p21602/work/ffmpeg-0.5_p21602"/libswscale -Wl,-O1 -Wl,--warn-common -Wl,--as-needed -Wl,-rpath-link,"/tmp/portage/media-video/ffmpeg-0.5_p21602/work/ffmpeg-0.5_p21602"/libpostproc -Wl,-rpath-link,"/tmp/portage/media-video/ffmpeg-0.5_p21602/work/ffmpeg-0.5_p21602"/libswscale -Wl,-rpath-link,"/tmp/portage/media-video/ffmpeg-0.5_p21602/work/ffmpeg-0.5_p21602"/libavfilter -Wl,-rpath-link,"/tmp/portage/media-video/ffmpeg-0.5_p21602/work/ffmpeg-0.5_p21602"/libavdevice -Wl,-rpath-link,"/tmp/portage/media-video/ffmpeg-0.5_p21602/work/ffmpeg-0.5_p21602"/libavformat -Wl,-rpath-link,"/tmp/portage/media-video/ffmpeg-0.5_p21602/work/ffmpeg-0.5_p21602"/libavcodec -Wl,-rpath-link,"/tmp/portage/media-video/ffmpeg-0.5_p21602/work/ffmpeg-0.5_p21602"/libavutil -Wl,-Bsymbolic -o libavfilter/libavfilter.so.1 libavfilter/allfilters.o libavfilter/avfilter.o libavfilter/defaults.o libavfilter/formats.o libavfilter/parseutils.o libavfilter/vf_crop.o libavfilter/vf_format.o libavfilter/vf_null.o libavfilter/vf_scale.o libavfilter/vf_slicify.o libavfilter/vf_vflip.o libavfilter/vsrc_nullsrc.o libavfilter/vsink_nullsink.o -lavformat -lavcodec -lavutil -lswscale -lz -lbz2 -pthread -lm -lfaac -lfaad -lgsm -lmp3lame -lm -lopenjpeg -lschroedinger-1.0 -lpthread -loil-0.3 -lm -lrt -lspeex -ltheoraenc -ltheoradec -logg -lvorbisenc -lvorbis -logg -lx264 -lm -lxvidcore -lasound -lasound -lX11 -lXext -lXfixes -lasound
/usr/lib/gcc/i686-pc-linux-gnu/4.4.3/../../../../i686-pc-linux-gnu/bin/ld: /tmp/portage/media-video/ffmpeg-0.5_p21602/work/ffmpeg-0.5_p21602/libavformat/libavformat.so: end: invalid version 30899 (max 2)
/tmp/portage/media-video/ffmpeg-0.5_p21602/work/ffmpeg-0.5_p21602/libavformat/libavformat.so: could not read symbols: Bad value
collect2: выполнение ld завершилось с кодом возврата 1
make: *** [libavdevice/libavdevice.so.52] Ошибка 1

далее стандартный выхлоп emerge о том, что сборка не удалась

А вот emerge --info

Portage 2.1.8.3 (default/linux/x86/10.0/desktop, gcc-4.4.3, glibc-2.11-r1, 2.6.32-gentoo-r6 i686)
=================================================================
System uname: Linux-2.6.32-gentoo-r6-i686-Intel-R-_Pentium-R-_4_CPU_3.20GHz-with-gentoo-2.0.1
Timestamp of tree: Wed, 24 Mar 2010 01:45:02 +0000
ccache version 2.4 [enabled]
app-shells/bash: 4.1_p2-r1
dev-java/java-config: 2.1.10
dev-lang/python: 2.6.5, 3.1.2
dev-util/ccache: 2.4-r8
dev-util/cmake: 2.8.1
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.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils: 2.20.1
sys-devel/gcc: 4.4.3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool: 2.2.6b
virtual/os-headers: 2.6.33
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA PUEL"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer -funroll-loops -msse3"
CHOST="i686-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/eselect/postgresql /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/splash /etc/terminfo"
CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer -funroll-loops -msse3"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical"
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="ru_RU.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="ru"
MAKEOPTS="-j5"
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="/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa bash-completion berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo fam firefox flac fortran gdbm gif gpm gstreamer gtk hal iconv jpeg kde kerberos ldap libnotify mad midi mikmod mmx mng modules mp3 mp4 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png policykit ppds pppd pulseaudio python python3 qt3support qt4 quicktime readline reflection sdl session slang spell spl sqlite sse sse2 sse3 ssl startup-notification svg sysfs tcpd threads thunar tiff truetype unicode usb utf8 vorbis win32codecs x264 x86 xinerama xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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="*" APACHE2_MPMS="worker" CAMERAS="*" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset: CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS