i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -I../../include/quicktime -O3 -funroll-all-loops -fomit-frame-pointer -finline-functions -Wall -Winline -MT x264.lo -MD -MP -MF .deps/x264.Tpo -c x264.c -fPIC -DPIC -o .libs/x264.o x264.c: In function 'set_parameter': x264.c:644: error: 'struct <anonymous>' has no member named 'b_cbr' x264.c:649: error: 'struct <anonymous>' has no member named 'b_cbr' make[3]: *** [x264.lo] Error 1 make[3]: *** Waiting for unfinished jobs.... i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -I../../include/quicktime -O3 -funroll-all-loops -fomit-frame-pointer -finline-functions -Wall -Winline -MT lqt_x264.lo -MD -MP -MF .deps/lqt_x264.Tpo -c lqt_x264.c -fPIC -DPIC -o .libs/lqt_x264.o i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -I../../include/quicktime -O3 -funroll-all-loops -fomit-frame-pointer -finline-functions -Wall -Winline -MT lqt_x264.lo -MD -MP -MF .deps/lqt_x264.Tpo -c lqt_x264.c -o lqt_x264.o >/dev/null 2>&1 make[3]: Leaving directory `/var/tmp/portage/libquicktime-0.9.9/work/libquicktime-0.9.9/plugins/x264' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/libquicktime-0.9.9/work/libquicktime-0.9.9/plugins' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/libquicktime-0.9.9/work/libquicktime-0.9.9' make: *** [all] Error 2 localhost ~ # emerge --info Portage 2.1.1_pre4-r4 (default-linux/x86/2006.0, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.17-gentoo-r4 i686) ================================================================= System uname: 2.6.17-gentoo-r4 i686 Genuine Intel(R) CPU T2600 @ 2.16GHz Gentoo Base System version 1.12.4 Last Sync: Fri, 11 Aug 2006 10:30:01 +0000 app-admin/eselect-compiler: 2.0.0_rc2-r1 dev-lang/python: 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.60 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.17 sys-devel/gcc-config: 2.0.0_rc1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LINGUAS="en en_US en_GB de" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/ebuilds" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X aac aalib acpi alsa apache2 audiofile avi berkdb binfilter bitmap-fonts bzip2 cddb cdr cli crypt cups dga dri dvd dvdr dvdread eds elibc_glibc emboss encode ethereal exif fbcon firefox foomaticdb fortran gdbm gif graphviz gstreamer gtk gtk2 imlib input_devices_evdev input_devices_keyboard input_devices_mouse isdnlog jpeg kde kernel_linux lame libcaca libg++ libwww linguas_de linguas_en linguas_en_GB linguas_en_US mad mikmod mmx motif mozcaledar mp3 mp4 mpeg mplayer ncurses nls nntp nptl nptlonly nsplugin ogg opengl oracle oss pam pcmcia pcre pdflib perl png ppds pppd python qt3 qt4 quicktime readline real reflection reiserfs sdl session sockets spell spl sqlite sse sse2 ssl tcpd truetype truetype-fonts trusted type1-fonts udev userland_GNU video_cards_fglrx vim vim-pager vim-with-x vorbis wifi win32codecs xml xmms xorg xv xvid zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
I get the same error message on an AMD64 box. So I won't post the error message, but here is my emerge --info: Portage 2.1.1_pre4-r4 (default-linux/amd64/2006.0, gcc-4.1.1/amd64-vanilla, glibc-2.4-r3, 2.6.17-gentoo-r4 x86_64) ================================================================= System uname: 2.6.17-gentoo-r4 x86_64 AMD Athlon(tm) 64 Processor 3200+ Gentoo Base System version 1.12.4 Last Sync: Fri, 11 Aug 2006 03:20:01 +0000 ccache version 2.4 [enabled] app-admin/eselect-compiler: 2.0.0_rc2-r1 dev-lang/python: 2.3.5, 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r2 dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.60 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.17 sys-devel/gcc-config: 2.0.0_rc1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.16 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib32/openoffice/share/dict/ooo /usr/lib64/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-march=athlon64 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig candy ccache distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/linux/gentoo/ http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" LANG="en_US" LINGUAS="" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 X aac acpi alsa apache2 arts avi berkdb bitmap-fonts bluetooth bzip2 cdr crypt cups dbus divx4linux dvd dvdr elibc_glibc encode exif ffmpeg flac fortran gif gimp gphoto2 gstreamer gtk gtk2 hal imagemagick imap imlib input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 java jpeg kde kdeenablefinal kernel_linux lzw lzw-tiff mad maildir mikmod mp3 mpeg musicbrainz mysql ncurses nls nptl nptlonly nsplugin ogg oggvorbis opengl oss pam pcre pda pdf pdflib perl php pic png python qt3 qt4 quicktime readline ruby samba scanner sdl spell spl sqlite ssl svg tcpd tiff truetype truetype-fonts type1-fonts usb userland_GNU vcd video_cards_nvidia video_cards_vesa vorbis xine xml xml2 xmms xorg xpm xv xvid zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
So this isn't a gentoo problem, this is a libquicktime problem. In x264.c there is a reference to codec->param.rc.b_cbr; however this doesn't exist. I'm currently trying to figure out what can be done to fix it. But this is what I've come up with so far. The struct x264_param_t is from x264-20060810 and contains rc. I've looked through rc and there is a comment reference to cbr. Doesn't say much. So I cross referenced it to the older verion (20060612) and the struct is exactly the same, except that int b_cpr is there. So I'm going to add this line in the 0810 version and compile it and see how it goes, if it fixes it I'll send a patch over to you guys.
Hi, Same here, arch-x86 all ~x86 system, downgrading x264 works. Rumen
Created attachment 94084 [details, diff] Quick and dirty patch to compile libquicktime with x264-svn20060810 This is my quick and dirty patch to get libquicktime to compile with x264-svn-20060810. Given that b_cbr only gets set, not read, by x264.c and that, if it's not anymore in x264-svn, one can guess it's not used, I just commented out the three references to it in x264.c. As this is my first patch submission, I hope the diff is formated correctly... Anyhow, it's just quick and dirty, but it doesn't seem to break anything.
I try emerge libquicktime and it fails: here my emerge --info Portage 2.1-r2 (default-linux/amd64/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.17-gentoo-r4_V14 x86_64) ================================================================= System uname: 2.6.17-gentoo-r4_V14 x86_64 AMD Turion(tm) 64 Mobile Technology MT-34 Gentoo Base System version 1.12.4 app-admin/eselect-compiler: [Not Present] dev-lang/python: 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.13-r3 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -O2 -pipe -msse2 -msse3 -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/bind" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-march=athlon64 -O2 -pipe -msse2 -msse3 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 X alsa avi berkdb bitmap-fonts cli crypt cups dlloader dri eds emboss encode foomaticdb fortran gif gnome gpm gstreamer gtk gtk2 imlib ipv6 isdnlog jpeg kde lzw lzw-tiff mp3 mpeg ncurses nls nptl opengl pam pcre pdflib perl png pppd python qt3 qt4 quicktime readline reflection sdl session spell spl ssl tcpd tiff truetype-fonts type1-fonts usb xorg xpm xv zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux userland_GNU" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY Last line of emerge libquicktime checking for working mmap... yes checking for gettimeofday... yes checking for fseeko... yes checking for ANSI C header files... (cached) yes ./configure: line 22102: syntax error near unexpected token `have_vorbis=true' ./configure: line 22102: `XIPH_PATH_VORBIS(have_vorbis=true)' !!! Please attach the following file when filing a report to bugs.gentoo.org: !!! /var/tmp/portage/libquicktime-0.9.7-r1/work/libquicktime-0.9.7/config.log !!! ERROR: media-libs/libquicktime-0.9.7-r1 failed. Call stack: ebuild.sh, line 1539: Called dyn_compile ebuild.sh, line 939: Called src_compile libquicktime-0.9.7-r1.ebuild, line 56: Called econf '--enable-shared' '--enable-static' '--disable-mmx' '--disable-firewire' '--without-libdv' '--with-x' '--without-cpuflags' ebuild.sh, line 541: Called die !!! econf failed !!! If you need support, post the topmost build error, and the call stack if relevant.
Yep, the attached patch seems to do the trick here. On my system, anyway.
Created attachment 94571 [details, diff] libquicktime-new-x264.patch proper patch from upstream
added masked 0.9.9-r1, should be unmasked together with new ffmpeg/x264-stuff.