Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 290080 - media-libs/x264-0.0.20090923 breaks media-video/ffmpeg-0.5_p19928
Summary: media-libs/x264-0.0.20090923 breaks media-video/ffmpeg-0.5_p19928
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-21 23:00 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2009-10-26 23:37 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 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-10-21 23:00:00 UTC
See this?

 * QA Notice: Package has poor programming practices which may compile
 *            fine but exhibit random runtime failures.
 * libavcodec/libx264.c:75: warning: implicit declaration of function ‘x264_nal_encode’

Now see the random runtime failure:

[libx264 @ 0x679dc0]using SAR=1/1
[libx264 @ 0x679dc0]using cpu capabilities: MMX2 SSE2Fast FastShuffle SSEMisalign LZCNT
[libx264 @ 0x679dc0]profile High, level 3.1

Program received signal SIGSEGV, Segmentation fault.
x264_nal_encode (dst=0x69a090 "\270.'\366\377\177", b_annexb=6876024, nal=0x1) at common/common.c:704
704	common/common.c: No such file or directory.
	in common/common.c
(gdb) bt
#0  x264_nal_encode (dst=0x69a090 "\270.'\366\377\177", b_annexb=6876024, nal=0x1) at common/common.c:704
#1  0x00007ffff6d9113c in encode_nals (ctx=<value optimized out>, buf=<value optimized out>, size=836, nals=<value optimized out>, nnal=3, skip_sei=1)
    at libavcodec/libx264.c:75

Why's that?

flame@yamato x264-snapshot-20090923-2245 % fgrep -c x264_nal_encode /usr/include/x264.h
0

flame@yamato x264-snapshot-20090923-2245 % fgrep x264_nal_encode common/common.c
 * x264_nal_encode:
int x264_nal_encode( uint8_t *dst, int b_annexb, x264_nal_t *nal )

flame@yamato ffmpeg-0.5 % fgrep x264_nal_encode libavcodec/libx264.c 
        int s = x264_nal_encode(p, &size, 1, nals + i);

Do you see something different? . . . yes! The number and type of parameters don't match even the slightest!

Have fun…
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2009-10-22 09:36:34 UTC
Why mixing arch and ~arch? 

Should be using ffmpeg-0.5_p19928.

I guess the best course of action is to restrict the x264 dep in the stable FFmpeg to avoid more people mixing their systems.
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-10-22 09:39:30 UTC
Uh no my mistake, let me doublecheck on _p* sources, I checked -r1 sources but indeed I have _p* installed (no mix, pure ~amd64).
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2009-10-22 09:40:22 UTC
+  22 Oct 2009; Samuli Suominen <ssuominen@gentoo.org> ffmpeg-0.5-r1.ebuild:
+  Fix media-libs/x264 depend wrt #290080, thanks to Diego E. 'Flameeyes'
+  Pettenò for reporting.
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-10-22 09:43:15 UTC
flame@yamato ffmpeg-0.5_p19928 % fgrep x264_nal_encode libavcodec/libx264.c
            if(x264_nal_encode(x4->sei, &x4->sei_size, 1, nals + i) < 0)

even worse :D
Comment 5 Sönke N. Greimann 2009-10-25 21:24:03 UTC
media-libs/x264-0.0.20091021 causes the following packages to fail to emerge here.

media-video/ffmpeg-0.5_p19928 
media-libs/libquicktime-1.1.3 
media-video/mplayer-1.0_rc4_p20090919-r2 
media-video/transcode-1.1.4

Error is always to do with a missing element named "b_bframe_pyramid" (sorry for German output):

libtool: compile:  i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_REENTRANT -DMOD_PATH=\"/usr/lib/transcode\" -I.. -I../src -Wall -Wstrict-prototypes -Wmissing-prototypes -O2 -march=native -pipe -MT encode_x264_la-encode_x264.lo -MD -MP -MF .deps/encode_x264_la-encode_x264.Tpo -c encode_x264.c  -fPIC -DPIC -o .libs/encode_x264_la-encode_x264.o
encode_x264.c:169: Fehler: »x264_param_t« hat kein Element namens »b_bframe_pyramid«
encode_x264.c:169: Fehler: »x264_param_t« hat kein Element namens »b_bframe_pyramid«
encode_x264.c: In Funktion »x264_encode_video«:
encode_x264.c:965: Warnung: Implizite Deklaration der Funktion »x264_nal_encode«
make[2]: *** [encode_x264_la-encode_x264.lo] Fehler 1
make[2]: Leaving directory `/var/tmp/portage/media-video/transcode-1.1.4/work/transcode-1.1.4/encode'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/var/tmp/portage/media-video/transcode-1.1.4/work/transcode-1.1.4'
make: *** [all] Fehler 2

Here's emerge --info:

Portage 2.2_rc46 (default/linux/x86/10.0/desktop, gcc-4.4.2, glibc-2.10.1-r0, 2.6.31-gentoo-r1 i686)
=================================================================
System uname: Linux-2.6.31-gentoo-r1-i686-AMD_Athlon-tm-_XP_3000+-with-gentoo-2.0.1
Timestamp of tree: Sun, 25 Oct 2009 11:45:01 +0000
app-shells/bash:     4.0_p33
dev-java/java-config: 2.1.9-r1
dev-lang/python:     2.6.3, 3.1.1-r1
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.5.2-r1
sys-apps/sandbox:    2.1
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror ftp://ftp.uni-erlangen .de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo ftp://ftp.gentoo.mesh-solutions.com/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo"
LANG="de_DE.utf8"
LC_ALL=""
LDFLAGS="-Wl,-O1"
LINGUAS="de"
MAKEOPTS="-j1"
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"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X Xaw3d a52 aac acl acpi alsa berkdb bluetooth branding bzip2 cairo cdparanoia cdr cli consolekit cracklib crypt cups dbus dmi dri dts dvd dvdr emboss encode evo fam ffmpeg firefox flac fortran gconf gdbm gif gnome gnutls gpm gstreamer gtk hal iconv ipv6 isdnlog java jpeg libnotify mad mikmod mmap mmx mmxext modules moznopango mp3 mp4 mpeg mudflap ncurses nforce2 nfs nls nptl nptlonly nsplugin nvidia odbc offensive ogg opengl openmp pam pcre pdf perl pidgin png ppds pppd python qt3support qt4 quicktime readline reflection reiserfs rtc samba sdl session spell spl sqlite sse ssl startup-notification svg sysfs tcpd threads thunar thunderbird tiff truetype unicode usb v4l v4l2 vorbis win32codecs x264 x86 xml xorg xulrunner xv xvid xvmc zlib" ALSA_CARDS="intel8x0 intel8x0m mpu401 usb-audio virmidi" 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" CAMERAS="canon ptp2" ELIBC="glibc" INPUT_DEVICES="evdev joystick keyboard mouse wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa v4l vga" 
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2009-10-26 23:37:41 UTC
0.0.20090923 is now gone from tree, and the deps are adjusted. 
also, new snapshot is available, for both x264 and ffmpeg.