Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 333725 - cinelerra comile error - undefined reference to `x264_encoder_open_93'
Summary: cinelerra comile error - undefined reference to `x264_encoder_open_93'
Status: VERIFIED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-21 00:18 UTC by konti
Modified: 2010-11-05 08:22 UTC (History)
1 user (show)

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


Attachments
Complete build log (build.log,153.10 KB, text/plain)
2010-08-21 01:07 UTC, konti
Details

Note You need to log in before you can comment on or make changes to this bug.
Description konti 2010-08-21 00:18:56 UTC
I am getting this error message for several months ago.
I 

Reproducible: Always

Steps to Reproduce:
1.emerge cinelerra
2.
3.

Actual Results:  
failed to compile

Expected Results:  
cinelerra compiled successfully

$ emerge --info cinelerra
Portage 2.1.8.3 (default/linux/amd64/10.0, gcc-4.4.4, glibc-2.12.1-r0, 2.6.35-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.35-gentoo-x86_64-AMD_Turion-tm-_64_X2_Mobile_Technology_TL-60-with-gentoo-2.0.1
Timestamp of tree: Mon, 16 Aug 2010 20:30:20 +0000
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
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-r1
sys-devel/automake:  1.7.9-r2, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
virtual/os-headers:  2.6.34
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8-sse3 -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
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=k8-sse3 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.inf.elte.hu/ "
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j3"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="# / 3dnow 3dnowext Audio Hardware Optional X a52 aac aalib acl acpi alsa amd64 amrnb amrwb and arts berkdb bidi bl bzip2 cddb cdio cdparanoia cdr cli codecs color-console consolekit cracklib crypt cups custom-optimization cvidix cxx dbus device-mapper dga directfb dri dts dv dvb dvd enca encode esd extras fbcon features ffmpeg firefox firefox/xulrunner flac fortran ftp gdbm gdu ggi gif gnome gpm gstreamer gtk gtk2 hal iconv imap imlib jack java jpeg ladspa libcaca libnotify libsamplerate live lm_sensors lzo mad madwifi md5sum mmx mmxext mocp modules mp2 mp3 mudflap multilib musepack nas ncurses nemesi nls nptl nptlonly nsplugin openal opengl openmp oss output pam pcre perl plugins png pnm policykit pppd pvr python radio rar readline reflection rtc samba sdl session smp sndfile speex spl sqlite srt sse sse2 ssl support svg sysfs tcpd teletext theora threads tk treutype truetype unicode v4l v4l2 vdpau vdpau/ video vorbis xinerama xml xorg xscreensaver xv xvid xvmc zlib zvbi" 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" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2010-08-21 00:31:36 UTC
Need:

- Full build.log
- Output of 'emerge -pv x264'
- Verification that you don't have old x264 installed in e.g. /usr/local:
  # find /usr/local -name '*x264*'
Comment 2 konti 2010-08-21 01:07:08 UTC
Created attachment 243795 [details]
Complete build log
Comment 3 konti 2010-08-21 01:17:18 UTC
- Full build.log
     you can find it in the attachment
-----------------------------------------------------------------------------
- Output of 'emerge -pv x264'

$ emerge -pv x264

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

Calculating dependencies... done!
[ebuild   R   ] media-libs/x264-0.0.20100605  USE="threads -debug -pic" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB

!!! The following installed packages are masked:
- dev-java/sun-jre-bin-1.6.0.17 (masked by: dlj-1.1 license(s))
A copy of the 'dlj-1.1' license is located at '/usr/portage/licenses/dlj-1.1'.

For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.

-----------------------------------------------------------------------------  
- Verification that you don't have old x264 installed in e.g. /usr/local:
  # find /usr/local -name '*x264*'
     I have some....how to remove them?

Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2010-08-21 01:44:11 UTC
(In reply to comment #3)
>> - Verification that you don't have old x264 installed in e.g. /usr/local:
>>   # find /usr/local -name '*x264*'
>  I have some....how to remove them?

Heh, the obvious way, "rm" :-) Portage doesn't put anything in /usr/local, so you must have installed them yourself at some point... accident, or not
Old headers and libraries in /usr/local is the most likely reason for this issue.
Comment 5 Guy 2010-11-05 07:46:18 UTC
Please re-open. cinelerra-20101104 and possibly earlier apparently needs to add media-video/x264-encoder as a dependency.

It fails for missing x264-encoder.

As a work around:

emerge x264-encoder && emerge cinelerra

This is the default ordering for emerging:

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

Calculating dependencies... done!
[ebuild     U ] media-video/cinelerra-20101104 [20100320] USE="3dnow alsa css mmx opengl (-altivec) -ieee1394 -oss" 0 kB
[ebuild     U ] media-video/x264-encoder-0.0.20101029 [0.0.20100605] USE="ffmpeg mp4 threads -debug" 0 kB



This is the error message if x264-encoder is not emerged first:

libtool: link: x86_64-pc-linux-gnu-g++ -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_ALSA -I/usr/include/mjpegtools -I/usr/include/mjpegtools/mpeg2enc -I/usr/include/mjpegtools/mplex -pthread -I/usr/include/OpenEXR -I/usr/include/libavcodec -I/usr/include/libswscale -DHAVE_SWSCALER -DPLUGIN_DIR=\"/usr/lib64/cinelerra\" -march=opteron -O2 -pipe -D__STDC_CONSTANT_MACROS -Wl,-O1 -Wl,-O1 -o .libs/cinelerra aattachmentpoint.o aautomation.o aboutprefs.o adeviceprefs.o aedit.o aedits.o amodule.o apatchgui.o apluginarray.o aplugin.o apluginset.o arender.o asset.o assetedit.o assetpopup.o assetremove.o assets.o atrack.o attachmentpoint.o audioalsa.o audiocine.o audiodevice.o audiodvb.o audioesound.o audioidevice.o audioodevice.o audiooss.o auto.o autoconf.o automation.o autos.o awindow.o awindowgui.o awindowmenu.o batch.o batchrender.o bitspopup.o brender.o browsebutton.o byteorderpopup.o cache.o cachebase.o canvas.o canvastools.o channel.o channeldb.o channeledit.o channelpicker.o chantables.o clipedit.o commonrender.o confirmquit.o confirmsave.o cpanel.o cplayback.o ctimebar.o ctracking.o cursor.o cwindow.o cwindowgui.o cwindowtool.o dcoffset.o dcraw.o deleteallindexes.o devicedvbinput.o drivesync.o dvbtune.o edit.o edithandles.o editpanel.o editpopup.o edits.o edl.o edlsession.o exportedl.o fadeengine.o ffmpeg.o fileac3.o fileavi.o filebaseaudio.o filebase.o filebaseima4.o filebaseulaw.o file.o filecr2.o filedv.o fileogg.o fileexr.o fileformat.o filejpeg.o filelist.o filemov.o filempeg.o filepng.o filesndfile.o filetga.o filethread.o filetiff.o filevorbis.o filexml.o fileyuv.o floatauto.o floatautos.o formatcheck.o formatpopup.o formatpresets.o formattools.o framecache.o garbage.o gwindow.o gwindowgui.o indexfile.o indexthread.o intauto.o intautos.o interfaceprefs.o keyframe.o keyframehandles.o keyframepopup.o keyframes.o labeledit.o labelnavigate.o labels.o levelwindow.o levelwindowgui.o loadbalance.o loadfile.o loadmode.o localsession.o main.o mainclock.o maincursor.o mainerror.o mainindexes.o mainmenu.o mainprogress.o mainsession.o mainundo.o manualgoto.o maskauto.o maskautos.o maskengine.o mbuttons.o menuaeffects.o menueffects.o menuveffects.o meterpanel.o module.o mtimebar.o mwindow.o mwindowedit.o mwindowgui.o mwindowmove.o new.o newfolder.o overlayframe.o packagedispatcher.o packagerenderer.o packagingengine.o panauto.o panautos.o patchbay.o patchgui.o performanceprefs.o picture.o pipe.o playabletracks.o playback3d.o playbackconfig.o playbackengine.o playbackprefs.o playtransport.o pluginaclient.o pluginaclientlad.o pluginarray.o pluginautos.o plugin.o pluginclient.o plugindialog.o pluginpopup.o pluginserver.o pluginset.o plugintclient.o plugintoggles.o pluginvclient.o preferences.o preferencesthread.o question.o quit.o recconfirmdelete.o recordableatracks.o recordablevtracks.o recordaudio.o record.o recordconfig.o recordgui.o recordlabel.o recordmonitor.o recordprefs.o recordthread.o recordtransport.o recordvideo.o recordwindow.o removethread.o render.o renderengine.o renderfarm.o renderfarmclient.o renderprofiles.o resample.o resizetrackthread.o resourcepixmap.o resourcethread.o samplescroll.o savefile.o setformat.o sharedlocation.o shmemory.o sighandler.o splashgui.o statusbar.o theme.o threadexec.o threadfork.o threadindexer.o threadloader.o timebar.o timeentry.o tipwindow.o track.o trackcanvas.o tracking.o tracks.o trackscroll.o tracksedit.o transition.o transitionhandles.o transitionpopup.o transportque.o tunerserver.o undostackitem.o vattachmentpoint.o vautomation.o vdevicebase.o vdevicebuz.o vdevicedvb.o vdeviceprefs.o vdevicev4l.o vdevicev4l2.o vdevicev4l2jpeg.o vdevicex11.o vedit.o vedits.o videodevice.o viewmenu.o virtualaconsole.o virtualanode.o virtualconsole.o virtualnode.o virtualvconsole.o virtualvnode.o vmodule.o vpatchgui.o vplayback.o vpluginarray.o vplugin.o vpluginset.o vrender.o vtimebar.o vtrack.o vtracking.o vwindow.o vwindowgui.o wavecache.o yuvstream.o zoombar.o zoompanel.o -pthread -Wl,--export-dynamic  -Wl,--as-needed data/libimagedata.a ../mpeg2enc/.libs/libmpeg2enc.a ../toolame-02l/.libs/libtoolame.a ../quicktime/.libs/libquicktimehv.so -lmp3lame -lfaad -lfaac /var/tmp/portage/media-video/cinelerra-20101104/work/cinelerra-20101104/libmpeg3/.libs/libmpeg3hv.so -lx264 ../guicast/.libs/libguicast.so -L/usr/lib64 -lGLU -lGL /usr/lib64/libXxf86vm.so /usr/lib64/libXv.so /usr/lib64/libXext.so /usr/lib64/libX11.so /usr/lib64/libxcb.so /usr/lib64/libXau.so /usr/lib64/libXdmcp.so ../libmpeg3/.libs/libmpeg3hv.so /usr/lib64/liba52.so -lavcodec -lpostproc -lswscale -lvorbisfile -lvorbis -ltheora -lIlmImf -lImath -lHalf -lIex -lIlmThread /usr/lib64/libsndfile.so -lFLAC -lvorbisenc -logg /usr/lib64/libpng14.so /usr/lib64/libtiff.so -ljbig /usr/lib64/libjpeg.so -lc -lz /usr/lib64/libasound.so -lrt /usr/lib64/libdv.so -luuid /usr/lib64/libmjpegutils.so -lm -ldl -lpthread -pthread
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/../../../../x86_64-pc-linux-gnu/bin/ld: warning: libx264.so.98, needed by /usr/lib64/libavcodec.so, not found (try using -rpath or -rpath-link)
/usr/lib64/libavcodec.so: undefined reference to `x264_encoder_open_98'
collect2: ld returned 1 exit status
make[3]: *** [cinelerra] Error 1
make[3]: Leaving directory `/var/tmp/portage/media-video/cinelerra-20101104/work/cinelerra-20101104/cinelerra'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/media-video/cinelerra-20101104/work/cinelerra-20101104/cinelerra'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-video/cinelerra-20101104/work/cinelerra-20101104'
make: *** [all] Error 2
emake failed
 * ERROR: media-video/cinelerra-20101104 failed:
Comment 6 Guy 2010-11-05 07:50:35 UTC
(In reply to comment #1)
> Need:
> 
> - Full build.log
> - Output of 'emerge -pv x264'
> - Verification that you don't have old x264 installed in e.g. /usr/local:
>   # find /usr/local -name '*x264*'
> 

package 'x264' has apparently been replaced by package 'x264-encoder'. See my comment #5.
Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2010-11-05 08:22:31 UTC
(In reply to comment #6)
> (In reply to comment #1)
> > Need:
> > 
> > - Full build.log
> > - Output of 'emerge -pv x264'
> > - Verification that you don't have old x264 installed in e.g. /usr/local:
> >   # find /usr/local -name '*x264*'
> > 
> 
> package 'x264' has apparently been replaced by package 'x264-encoder'. See my
> comment #5.
> 

> /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/../../../../x86_64-pc-linux-gnu/bin/ld:
> warning: libx264.so.98, needed by /usr/lib64/libavcodec.so, not found (try
> using -rpath or -rpath-link)
> /usr/lib64/libavcodec.so: undefined reference to `x264_encoder_open_98'
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

libavcodec.so is part of ffmpeg:

That means your media-video/ffmpeg installation is broken and you should run revdep-rebuild.