Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 128767

Summary: xine-lib-1.1.1-r5 fails with compiler error in h263.c : mpeg4_decode_partition_a regarding unimplemented function: mpeg4_decode_dc
Product: Gentoo Linux Reporter: Aakash <aakash.chopra>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: 2006.0   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: patch to move functions up in source code body.

Description Aakash 2006-04-04 06:39:36 UTC
The same issue (except with a different rev of xine-lib - thus the new bug report) as bug 119014 occurs with xine-lib 1.1.1-r5 and the following static inlined functions: mpeg4_decode_dc and mpeg4_decode_block. It's been a really, really long time since I've written anything in C but I believe it may have to do with a change in where the compiler expects to find the definition (not declaration) of the functions. Currently, the definition of the functions are located after calls are made to them. If I move the definition of the functions up in the source code (i.e. before calls to the functions are made), the issue is resolved. 

I'll include a patch file once I remember how to create one. (PS apologies if this should have been piggy backed on bug 119014).

emerge --info:
--------------
Portage 2.1_pre7-r4 (default-linux/amd64/2006.0, gcc-3.4.6, glibc-2.4-r1, 2.6.16-gentoo-r1 x86_64)
=================================================================
System uname: 2.6.16-gentoo-r1 x86_64 AMD Athlon(tm) 64 FX-53 Processor
Gentoo Base System version 1.12.0_pre16
dev-lang/python:     2.3.4, 2.4.2-r1
sys-apps/sandbox:    1.2.17
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-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/tomcat /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib64/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://mirror.datapipe.net/gentoo http://mirror.datapipe.net/gentoo ftp://gentoo.ccccom.com http://194.83.57.15/sites/www.ibiblio.org/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/achopra/Portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa amd64 apache2 apm ati avi berkdb bitmap-fonts bzip2 cdr cli crypt ctype cups dba dri dvdr eds emboss encode expat fastbuild fglrx foomaticdb force-cgi-redirect fortran ftp gd gensplash gif gnome gpm gstreamer gtk gtk2 imlib ipv6 isdnlog java jpeg kde kerberos ldap lzw lzw-tiff memlimit mp3 mpeg mysql ncurses nls nptl nptlonly opengl pam pcre pdflib perl png posix pppd python qt quicktime readline samba sdl session simplexml snmp soap sockets spell spl ssl tcpd tiff tokenizer truetype truetype-fonts type1-fonts usb v4l xine xinerama xml xpm xsl xv zip zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_ati video_cards_vesa video_cards_fbdev"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-04-04 06:53:05 UTC
Well, I think this is best handled with a single bug. Looks like ffmpeg issue, not  xine-lib.

*** This bug has been marked as a duplicate of 119014 ***
Comment 2 Aakash 2006-04-04 09:03:39 UTC
Created attachment 83895 [details, diff]
patch to move functions up in source code body.