Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 64500 - media-libs/xine-lib-1_rc6 (1.0rc6a) update
Summary: media-libs/xine-lib-1_rc6 (1.0rc6a) update
Status: RESOLVED DUPLICATE of bug 72185
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Gentoo Media-video project
URL: http://xinehq.de/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-18 03:37 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2005-07-17 13:06 UTC (History)
2 users (show)

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


Attachments
xine-lib-1_rc6.ebuild (xine-lib-1_rc6.ebuild,5.41 KB, text/plain)
2004-09-18 03:38 UTC, Diego Elio Pettenò (RETIRED)
Details
protect-CFLAGS.patch-1_rc6 (protect-CFLAGS.patch-1_rc6,316 bytes, patch)
2004-09-18 03:38 UTC, Diego Elio Pettenò (RETIRED)
Details | Diff
xine-lib-2.6.patch (xine-lib-2.6.patch,594 bytes, patch)
2004-09-18 03:39 UTC, Diego Elio Pettenò (RETIRED)
Details | Diff
xine-lib-1_rc6-configure-sparc.patch (xine-lib-1_rc6-configure-sparc.patch,587 bytes, patch)
2004-09-18 03:40 UTC, Diego Elio Pettenò (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2004-09-18 03:37:26 UTC
This modified ebuild is the version bump to 1.0 rc6a (rc6 was never released), which adds an ffmpeg use-flag to use the external ffmpeg library (new configure switch).
The patch used are the ones from rc5, without the vcd overflow which is fixed upstream.
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2004-09-18 03:38:14 UTC
Created attachment 39837 [details]
xine-lib-1_rc6.ebuild
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2004-09-18 03:38:49 UTC
Created attachment 39838 [details, diff]
protect-CFLAGS.patch-1_rc6
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2004-09-18 03:39:49 UTC
Created attachment 39839 [details, diff]
xine-lib-2.6.patch
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2004-09-18 03:40:19 UTC
Created attachment 39840 [details, diff]
xine-lib-1_rc6-configure-sparc.patch
Comment 5 Chris White (RETIRED) gentoo-dev 2004-09-18 19:36:35 UTC
Ok, the ebuild is up.  However, the ebuild I submitted is for a security bug.
I'm keeping this bug open until I figure out why ffmpeg external doesn't like
xvid and divx videos (ie. if there's any hope at all in that).  Until then,
external ffmpeg is not enabled in the security release (it compiles, but causes
xine-lib to loose a lot of its functionality).  So then, having xine-lib 1-rc6
in portage should be good enough (I hope), and, as I stated before, I'll try
and get the nitty griddy stuff working once I figure out what's up with ffmpeg.
Comment 6 Ajay Sharma 2004-09-21 22:34:22 UTC
I think there's a problem with the patch:
I
>>> emerge (1 of 11) media-libs/xine-lib-1_rc6 to /
>>> md5 src_uri ;-) xine-lib-1-rc6a.tar.gz
>>> Unpacking source...
>>> Unpacking xine-lib-1-rc6a.tar.gz to /var/tmp/portage/xine-lib-1_rc6/work
 * Applying protect-CFLAGS.patch-1_rc6...  [ ok ]
 * Applying xine-lib-1_rc6-2.6.patch...    [ ok ]
 * Patching ${S}/ltmain.sh...
 *   Could not apply portage.patch!
 *   Please verify that it is not needed.
 * Cannot apply any patch, running libtoolize...

Then it dies:

depmode=gcc3 /bin/sh ../../depcomp \
/bin/sh ../../libtool-nofpic --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../include -I../../include -I../../src -I../../src/xine-engine -I../../src/xine-engine -I../../src/xine-utils  -I../../src/input -I../../src/input      -I/usr/include/libpng12 -O3 -pipe -fomit-frame-pointer -falign-functions=4 -falign-loops=4 -falign-jumps=4  -mpreferred-stack-boundary=2 -fexpensive-optimizations -fschedule-insns2 -fno-strict-aliasing -ffast-math -funroll-loops -finline-functions -Wall -DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DXINE_COMPILE  -Wpointer-arith -Wnested-externs -Wcast-align -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -mcpu=athlon-xp -O3 -pipe -fno-stack-protector -fno-web -funit-at-a-time -mno-sse2 -mno-sse3 -ffunction-sections -c -o xineplug_decode_image_la-image.lo `test -f 'image.c' || echo './'`image.c
mkdir .libs
 gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../include -I../../include -I../../src -I../../src/xine-engine -I../../src/xine-engine -I../../src/xine-utils -I../../src/input -I../../src/input -I/usr/include/libpng12 -O3 -pipe -fomit-frame-pointer -falign-functions=4 -falign-loops=4 -falign-jumps=4 -mpreferred-stack-boundary=2 -fexpensive-optimizations -fschedule-insns2 -fno-strict-aliasing -ffast-math -funroll-loops -finline-functions -Wall -DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DXINE_COMPILE -Wpointer-arith -Wnested-externs -Wcast-align -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -mcpu=athlon-xp -O3 -pipe -fno-stack-protector -fno-web -funit-at-a-time -mno-sse2 -mno-sse3 -ffunction-sections -c image.c -MT xineplug_decode_image_la-image.lo -MD -MP -MF .deps/xineplug_decode_image_la-image.TPlo
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
mv -f xineplug_decode_image_la-image.o .libs/xineplug_decode_image_la-image.o
mv: cannot stat `xineplug_decode_image_la-image.o': No such file or directory
make[3]: *** [xineplug_decode_image_la-image.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/xine-lib-1_rc6/work/xine-lib-1-rc6a/src/libxinevdec'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/xine-lib-1_rc6/work/xine-lib-1-rc6a/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/xine-lib-1_rc6/work/xine-lib-1-rc6a'
make: *** [all] Error 2

And here's an emerge info:

Portage 2.0.51_rc1 (default-x86-1.4, gcc-3.4.2, glibc-2.3.4.20040808-r0, 2.4.26 i686)
=================================================================
System uname: 2.4.26 i686 AMD Athlon(TM) XP 1900+
Gentoo Base System version 1.5.3
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  media-tv/ivtv-0.1.9-r4
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=athlon-xp -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3.3/share/config:/usr/kde/3.3/env:/usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache fixpackages sandbox userpriv"
GENTOO_MIRRORS="http://mirror.tucdemonic.org/gentoo/ http://gentoo.ccccom.com http://gentoo.binarycompass.org http://gentoo.chem.wisc.edu/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/opt/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X aalib alsa apm avi berkdb bitmap-fonts cdr crypt cups dvd dvdr encode esd faad flac foomaticdb gdbm gif gpm gtk gtk2 imlib innodb java jpeg libg++ libwww lirc mad mikmod mmx motif mpeg mysql mythtv ncurses nvidia oggvorbis opengl oss pam pdflib perl png ppds python qt quicktime readline samba scanner sdl slang spell sse ssl svga tcpd theora tiff truetype usb x86 xml2 xmms xosd xprint xv zlib"

Comment 7 Diego Elio Pettenò (RETIRED) gentoo-dev 2004-09-22 00:56:38 UTC
The missing patch I don't know what is exactly, for me the compilation is done without errors anyway (and it works qutie well, I saw many videos and a dvd with the new xine).

The error you have is because you are using gcc 3.4 and you have a -mcpu=athlon-xp in the command line (if you haven't it on your CFLAGS is possible that xine adds it).
I'm still using gcc 3.3 and have no problems.
Comment 8 Branislav 2004-09-22 03:21:51 UTC
I don't think the error is because of the -mcpu-statement, because of two reasons:

1. For every package I compiled since I merged gcc-3.4, it barked out that warning message but the compile went fine anyways. The same is true for other modules of the xine-lib source until it stops on the error mentioned above.

2. I have an additional error message ;)

 gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../include -I../../include -I../../src -I../../src/xine-engine -I../../src/xine-engine -I../../src/xine-utils -I../../src/input -I../../src/input -O3 -pipe -fomit-frame-pointer -falign-functions=4 -falign-loops=4 -falign-jumps=4 -mpreferred-stack-boundary=2 -fexpensive-optimizations -fschedule-insns2 -fno-strict-aliasing -ffast-math -funroll-loops -finline-functions -Wall -DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DXINE_COMPILE -Wpointer-arith -Wnested-externs -Wcast-align -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -DENABLE_IPV6 -mcpu=athlon -O3 -pipe -fomit-frame-pointer -fno-stack-protector -fno-web -funit-at-a-time -mno-sse2 -mno-sse3 -ffunction-sections -c xine_decoder.c -MT xine_decoder.lo -MD -MP -MF .deps/xine_decoder.TPlo
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
mv -f xine_decoder.o .libs/xine_decoder.o
/bin/sh ../../libtool-nofpic --mode=link gcc  -O3 -pipe -fomit-frame-pointer -falign-functions=4 -falign-loops=4 -falign-jumps=4  -mpreferred-stack-boundary=2 -fexpensive-optimizations -fschedule-insns2 -fno-strict-aliasing -ffast-math -funroll-loops -finline-functions -Wall -DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DXINE_COMPILE  -Wpointer-arith -Wnested-externs -Wcast-align -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -DENABLE_IPV6 -mcpu=athlon -O3 -pipe -fomit-frame-pointer -fno-stack-protector -fno-web -funit-at-a-time -mno-sse2 -mno-sse3 -ffunction-sections   -o xineplug_decode_lpcm.la -rpath /usr/lib/xine/plugins/1.0.0 -avoid-version -module  xine_decoder.lo ../../src/xine-engine/libxine.la
gcc -shared  .libs/xine_decoder.o   -Wl,--rpath -Wl,/var/tmp/portage/xine-lib-1_rc6/work/xine-lib-1-rc6a/src/xine-engine/.libs -L/usr/lib ../../src/xine-engine/.libs/libxine.so  -mpreferred-stack-boundary=2 -mcpu=athlon -mno-sse2 -mno-sse3 -Wl,-soname -Wl,xineplug_decode_lpcm.so -o .libs/xineplug_decode_lpcm.so
creating xineplug_decode_lpcm.la
(cd .libs && rm -f xineplug_decode_lpcm.la && ln -s ../xineplug_decode_lpcm.la xineplug_decode_lpcm.la)
make[3]: Leaving directory `/var/tmp/portage/xine-lib-1_rc6/work/xine-lib-1-rc6a/src/liblpcm'
Making all in libxinevdec
make[3]: Entering directory `/var/tmp/portage/xine-lib-1_rc6/work/xine-lib-1-rc6a/src/libxinevdec'
source='image.c' object='xineplug_decode_image_la-image.lo' libtool=yes \
depfile='.deps/xineplug_decode_image_la-image.Plo' tmpdepfile='.deps/xineplug_decode_image_la-image.TPlo' \
depmode=gcc3 /bin/sh ../../depcomp \
/bin/sh ../../libtool-nofpic --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../include -I../../include -I../../src -I../../src/xine-engine -I../../src/xine-engine -I../../src/xine-utils  -I../../src/input -I../../src/input      -I/usr/include/libpng12 -O3 -pipe -fomit-frame-pointer -falign-functions=4 -falign-loops=4 -falign-jumps=4  -mpreferred-stack-boundary=2 -fexpensive-optimizations -fschedule-insns2 -fno-strict-aliasing -ffast-math -funroll-loops -finline-functions -Wall -DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DXINE_COMPILE  -Wpointer-arith -Wnested-externs -Wcast-align -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -DENABLE_IPV6 -mcpu=athlon -O3 -pipe -fomit-frame-pointer -fno-stack-protector -fno-web -funit-at-a-time -mno-sse2 -mno-sse3 -ffunction-sections -c -o xineplug_decode_image_la-image.lo `test -f 'image.c' || echo './'`image.c
mkdir .libs
 gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../include -I../../include -I../../src -I../../src/xine-engine -I../../src/xine-engine -I../../src/xine-utils -I../../src/input -I../../src/input -I/usr/include/libpng12 -O3 -pipe -fomit-frame-pointer -falign-functions=4 -falign-loops=4 -falign-jumps=4 -mpreferred-stack-boundary=2 -fexpensive-optimizations -fschedule-insns2 -fno-strict-aliasing -ffast-math -funroll-loops -finline-functions -Wall -DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DXINE_COMPILE -Wpointer-arith -Wnested-externs -Wcast-align -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -DENABLE_IPV6 -mcpu=athlon -O3 -pipe -fomit-frame-pointer -fno-stack-protector -fno-web -funit-at-a-time -mno-sse2 -mno-sse3 -ffunction-sections -c image.c -MT xineplug_decode_image_la-image.lo -MD -MP -MF .deps/xineplug_decode_image_la-image.TPlo
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
mv -f xineplug_decode_image_la-image.o .libs/xineplug_decode_image_la-image.o
mv: cannot stat `xineplug_decode_image_la-image.o': No such file or directory
make[3]: *** [xineplug_decode_image_la-image.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/xine-lib-1_rc6/work/xine-lib-1-rc6a/src/libxinevdec'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/xine-lib-1_rc6/work/xine-lib-1-rc6a/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/xine-lib-1_rc6/work/xine-lib-1-rc6a'
make: *** [all] Error 2

!!! ERROR: media-libs/xine-lib-1_rc6 failed.
!!! Function src_compile, Line 159, Exitcode 2
!!! Parallel make failed

What's with that "parallel make failed"? I don't have -jblah in my make.conf?
Comment 9 Branislav 2004-09-22 11:49:15 UTC
k, forget that "I don't have -jblah enabled in make.conf" - I see now that it's enabled by default in make.globals (-j2) - sorry ;)

And that parallel make thing seems to be a standard message - tried to compile it with MAKEOPTS=-j1 in /etc/make.conf - same error.

I went to the src-dir and replaced the "-mcpu"-calls with "-mtune" and started "make" - the warning message about the "-mcpu"-statement is gone but the error is still the same.

So, after a little bit of trial and error I tried to use my brain instead ;)

Since the compilation of the last module doesn't seem to provoke any error I assumed, that the module was built correctly. But the "mv ...." statement didn't find the file "xineplug_decode_image_la-image.o". I'm not really into all the compiler stuff, but I did notice that for the modules above the source file had always the same name as the resulting module. But for the erroneous module, the source file was "image.c". So I just renamed the image.c to xineplug_decode_image_la-image.c and replaced all every occurence of image.c in the makefile - and that worked.

Well, like I said before, I don't know why this works, but it works. Just watched two DVDs after the compile finished - no errors.

And since I don't know how the ebuilds work, I had to wait until the configure script created all the necessary files to make the changes.
Comment 10 Travis Ogdon 2004-09-24 10:03:55 UTC
Changing "-mcpu=athlon-xp" to "-mtune=athlon-xp -march=athlon-x" worked to fix this for me...
Comment 11 Ajay Sharma 2004-09-24 11:50:20 UTC
Excellent. Like in Comment #10, changing "-mcpu=athlon-xp" to "-mtune=athlon-xp" in my /etc/make.conf file worked for me.
Comment 12 J. M. 2004-09-28 21:51:17 UTC
Is there any chance that the useless DivX/XviD dependencies will finally be removed? I submitted a bug report about this a long time ago, but it was ignored. ebuilds shouldn't depend on things that the software doesn't use at all, that makes absolutely no sense.
Comment 13 Diego Elio Pettenò (RETIRED) gentoo-dev 2004-11-22 20:43:45 UTC
I think the new bug better fixes up the use-flags. Also rc7 is out now :)

*** This bug has been marked as a duplicate of 72185 ***