Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 135390 - media-libs/xine-lib-1.1.2_pre20060328-r9 fails to apply patch 240_all_constplugins.patch
Summary: media-libs/xine-lib-1.1.2_pre20060328-r9 fails to apply patch 240_all_constpl...
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Diego Elio Pettenò (RETIRED)
URL:
Whiteboard:
Keywords:
: 135647 135683 135806 135813 135843 135845 135895 135934 136050 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-06-03 07:19 UTC by Jani Nikula
Modified: 2006-06-08 14:05 UTC (History)
11 users (show)

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


Attachments
240_all_constplugins.patch updated (240_all_constplugins.patch,112.86 KB, patch)
2006-06-07 01:20 UTC, Robert Wolf
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jani Nikula 2006-06-03 07:19:36 UTC
Summary pretty much says it all, 'emerge --udpate world' fails in xine-lib due to a patch.

'emerge --info', log of emerge and patch.out follows.

---
$ emerge --info

Portage 2.0.54-r2 (default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.6-r3, 2.6.16-gentoo-r6 i686)
=================================================================
System uname: 2.6.16-gentoo-r6 i686 AMD Athlon(TM) XP 2000+
Gentoo Base System version 1.6.14
dev-lang/python:     2.3.5-r2, 2.4.2
dev-python/pycrypto: [Not Present]
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
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-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ds.thn.htu.se/linux/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X alsa apm arts audiofile avi berkdb bitmap-fonts bzip2 cdr cli crypt cups curl dri dvd eds emacs emboss encode esd exif expat fam ffmpeg foomaticdb fortran gdbm gif glut gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal howl idn imap imlib ipv6 isdnlog java jpeg kde lcms libg++ libwww mad mikmod mime mng motif mozilla mp3 mpeg ncurses nls nsplugin ogg oggvorbis openal opengl oss pam pcre pdflib perl png pppd python qt quicktime readline reflection sdl session spell spl ssl tcpd tiff truetype truetype-fonts type1-fonts udev usb video_cards_radeon vorbis xine xml xml2 xmms xorg xv xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTAGE_RSYNC_OPTS, PORTDIR_OVERLAY

---

Log of what happens during 'emerge --update world'

13:59:34 (179.40 KB/s) - `/usr/portage/distfiles/xine-lib-patches-43.tar.bz2' saved [36962/36962]

>>> md5 files   ;-) xine-lib-1.1.2_pre20060328-r9.ebuild
>>> md5 files   ;-) xine-lib-1.1.2_pre20060328-r10.ebuild
>>> md5 files   ;-) xine-lib-1.1.2_pre20060328-r1.ebuild
>>> md5 files   ;-) xine-lib-1.1.1-r3.ebuild
>>> md5 files   ;-) files/digest-xine-lib-1.1.2_pre20060328-r1
>>> md5 files   ;-) files/digest-xine-lib-1.1.2_pre20060328-r10
>>> md5 files   ;-) files/digest-xine-lib-1.1.2_pre20060328-r9
>>> md5 files   ;-) files/digest-xine-lib-1.1.1-r3
>>> md5 src_uri ;-) xine-lib-1.1.2cvs20060328.tar.gz
>>> md5 src_uri ;-) xine-lib-patches-43.tar.bz2
>>> Unpacking source...
>>> Unpacking xine-lib-1.1.2cvs20060328.tar.gz to /var/tmp/portage/xine-lib-1.1.2_pre20060328-r9/work
>>> Unpacking xine-lib-patches-43.tar.bz2 to /var/tmp/portage/xine-lib-1.1.2_pre20060328-r9/work
 * Applying various patches (bugfixes/updates) ...
 *   030_all_vidix-gcc4.patch ...                                         [ ok ]
 *   100_all_newffmpeg.patch ...                                          [ ok ]
 *   120_all_textrels.patch ...                                           [ ok ]
 *   170_all_postproc.patch ...                                           [ ok ]
 *   180_all_faad-64bit.patch ...                                         [ ok ]
 *   190_all_implicit-declarations.patch ...                              [ ok ]
 *   200_all_automake.patch ...                                           [ ok ]
 *   210_all_ppc-asflags.patch ...                                        [ ok ]
 *   220_all_dontcrashmad.patch ...                                       [ ok ]
 *   230_all_httpauth.patch ...                                           [ ok ]
 *   235_all_osd.patch ...                                                [ ok ]
 *   240_all_constplugins.patch ...

 * Failed Patch: 240_all_constplugins.patch !
 *  ( /var/tmp/portage/xine-lib-1.1.2_pre20060328-r9/work/patches/240_all_constplugins.patch )
 *
 * Include in your bugreport the contents of:
 *
 *   /var/tmp/portage/xine-lib-1.1.2_pre20060328-r9/temp/240_all_constplugins.patch-28927.out


!!! ERROR: media-libs/xine-lib-1.1.2_pre20060328-r9 failed.
!!! Function epatch, Line 339, Exitcode 0
!!! Failed Patch: 240_all_constplugins.patch!
!!! If you need support, post the topmost build error, NOT this status message.

---

Contents of /var/tmp/portage/xine-lib-1.1.2_pre20060328-r9/temp/240_all_constplugins.patch-28927.out

======================================

PATCH COMMAND:  patch -p0 -g0 -E --no-backup-if-mismatch < /var/tmp/portage/xine-lib-1.1.2_pre20060328-r9/work/patches/240_all_constplugins.patch

======================================
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: xine-lib-1.1.2cvs20060328/src/audio_out/audio_alsa_out.c
|===================================================================
|--- xine-lib-1.1.2cvs20060328.orig/src/audio_out/audio_alsa_out.c
|+++ xine-lib-1.1.2cvs20060328/src/audio_out/audio_alsa_out.c
--------------------------
No file to patch.  Skipping patch.
2 out of 2 hunks ignored
can't find file to patch at input line 27
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: xine-lib-1.1.2cvs20060328/src/audio_out/audio_arts_out.c
|===================================================================
|--- xine-lib-1.1.2cvs20060328.orig/src/audio_out/audio_arts_out.c
|+++ xine-lib-1.1.2cvs20060328/src/audio_out/audio_arts_out.c
--------------------------
No file to patch.  Skipping patch.
2 out of 2 hunks ignored
can't find file to patch at input line 49
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:


And this goes on and on in the output for a bunch of files to be patched.
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-06-03 07:33:27 UTC
Seems like I have some interdependencies between the constantise patch and the visibility one that you're hitting because of GCC 3.3.
I'll remove them both for 3.3, but you're highly invited to use a newer GCC.
Comment 2 Ernst de Haan 2006-06-03 09:37:31 UTC
Same problem here. Here's my emerge --info:

Portage 2.1_rc4 (default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.5-r2, 2.6.14-gentoo-r2 i686)
=================================================================
System uname: 2.6.14-gentoo-r2 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.12.0_pre13
dev-lang/python:     2.3.5-r2, 2.4.2
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-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i386-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe"
CHOST="i386-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.intergenia.de http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://gentoo.mirror.intouch.nl/gentoo/"
LINGUAS="en nl es"
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="x86 X acpi alsa apm arts audiofile avi bash-completion berkdb bitmap-fonts bzip2 canvas cdparanoia cdr cli cpudetection crypt cups debug directfb divx4linux dri dv dvd dvdr dvdread eds emboss encode ffmpeg flac foomaticdb fortran gdbm gif gpm gstreamer gtk gtk2 hal hardened ieee1394 imlib isdnlog java jpeg kde kdeenablefinal libg++ libwww mad mikmod mmx mmxext motif mozdevelop mozilla mozsvg mp3 mpeg mplayer ncurses nls nvidia ogg oggvorbis openal opengl oss pam pcre pdflib perl png pppd python qt quicktime readline real reflection sdl session spell spl sse sse2 ssl tcpd test truetype truetype-fonts type1-fonts usb v4l vcd vorbis win32codecs wmf xine xinerama xml2 xorg xprint xv xvid xvmc zlib elibc_glibc kernel_linux linguas_en linguas_nl linguas_es userland_GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 3 Jani Nikula 2006-06-03 11:58:59 UTC
(In reply to comment #1)
> Seems like I have some interdependencies between the constantise patch and the
> visibility one that you're hitting because of GCC 3.3.
> I'll remove them both for 3.3, but you're highly invited to use a newer GCC.

Hmmm, I may have to reveal my lack of understanding here... I thought I *did* use a newer GCC. 'emerge --info' and 'gcc --version' both report GCC version 3.3.6, but when I look at 'emerge --search gcc' I find the following:

*  sys-devel/gcc
      Latest version available: 3.4.6-r1
      Latest version installed: 3.4.6-r1
      Size of downloaded files: 85,471 kB
      Homepage:    http://gcc.gnu.org/
      Description: The GNU Compiler Collection. Includes C/C++, java compilers, pie+ssp extensions, Haj Ten Brugge runtime bounds checking
      License:     GPL-2 LGPL-2.1

This isn't necessarily related to the patch problem (sorry!) --- but what am I missing here?
Comment 4 Frank Hegner 2006-06-03 13:10:36 UTC
(In reply to comment #3)
 
> Hmmm, I may have to reveal my lack of understanding here... I thought I *did*
> use a newer GCC. 'emerge --info' and 'gcc --version' both report GCC version
> 3.3.6, but when I look at 'emerge --search gcc' I find the following:
> ...
> This isn't necessarily related to the patch problem (sorry!) --- but what am I
> missing here?
> 
Use gcc-config to upgrade the gcc-profile to gcc-3.4.6.
After that the emerge will run.
Comment 5 Brandon Captain 2006-06-03 20:46:36 UTC
This is my output. Hope this is heplful. I've removed my entire /var/tmp and /usr/portage dirs prior to --sync'ing.

* my file /var/tmp/portage/xine-lib-1.1.2_pre20060328-r9/temp/240_all_constplugins.patch-                                                       10668.out is collosal. I'd be happy to pastbin it if it would be helpful.

emerge -DNatuv world

These are the packages that I would merge, in reverse order:

Calculating world dependencies ...done!
[ebuild     U ] www-client/mozilla-firefox-1.5.0.4 [1.5.0.3] -debug -gnome +ipv6 +ja
va -mozdevelop -xinerama -xprint 34,549 kB
[nomerge      ] app-mobilephone/bitpim-0.8.08
[ebuild     UD]  x11-libs/gtk+-2.8.8 [2.8.12] -debug -doc +jpeg +tiff 11,627 kB
[nomerge      ] media-video/totem-1.2.1  -a52 -debug +dvd -flac -gnome -lirc +mad +m
peg -nsplugin +ogg -theora +vorbis +win32codecs +xine +xv
[ebuild     U ]  media-libs/xine-lib-1.1.2_pre20060328-r9 [1.1.2_pre20060328-r1] +X
-a52 -aac -aalib +alsa (-altivec) +arts -asf -debug -directfb -dts +dvd -dxr3 -esd -
fbcon +ffmpeg -flac -gnome +imagemagick +ipv6 -libcaca +mad +mng -modplug +nls +open
gl +oss +samba +sdl -speex -theora -v4l -vcd -video_cards_i810 -video_cards_nvidia -
video_cards_via -vidix +vorbis +win32codecs -xinerama +xv -xvmc 7,844 kB

Total size of downloads: 54,021 kB

Do you want me to merge these packages? [Yes/No]
>>> emerge (1 of 3) media-libs/xine-lib-1.1.2_pre20060328-r9 to /
*** Adjusting cvs-src permissions for portage user...
>>> Downloading http://gentoo.osuosl.org/distfiles/xine-lib-1.1.2cvs20060328.tar.gz
--11:33:42--  http://gentoo.osuosl.org/distfiles/xine-lib-1.1.2cvs20060328.tar.gz
           => `/usr/portage/distfiles/xine-lib-1.1.2cvs20060328.tar.gz'
Resolving gentoo.osuosl.org... 64.50.236.52, 64.50.238.52
Connecting to gentoo.osuosl.org|64.50.236.52|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7,996,045 (7.6M) [application/x-gzip]

100%[========================================>] 7,996,045    359.89K/s    ETA 00:00

11:34:05 (354.56 KB/s) - `/usr/portage/distfiles/xine-lib-1.1.2cvs20060328.tar.gz' s
aved [7996045/7996045]

>>> Downloading http://gentoo.osuosl.org/distfiles/xine-lib-patches-43.tar.bz2
--11:34:05--  http://gentoo.osuosl.org/distfiles/xine-lib-patches-43.tar.bz2
           => `/usr/portage/distfiles/xine-lib-patches-43.tar.bz2'
Resolving gentoo.osuosl.org... 64.50.236.52, 64.50.238.52
Connecting to gentoo.osuosl.org|64.50.236.52|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 36,962 (36K) [application/x-tar]

100%[========================================>] 36,962        --.--K/s

11:34:05 (276.86 KB/s) - `/usr/portage/distfiles/xine-lib-patches-43.tar.bz2' saved
[36962/36962]

>>> md5 files   ;-) xine-lib-1.1.1-r3.ebuild
>>> md5 files   ;-) xine-lib-1.1.2_pre20060328-r1.ebuild
>>> md5 files   ;-) xine-lib-1.1.2_pre20060328-r10.ebuild
>>> md5 files   ;-) xine-lib-1.1.2_pre20060328-r9.ebuild
>>> md5 files   ;-) files/digest-xine-lib-1.1.2_pre20060328-r1
>>> md5 files   ;-) files/digest-xine-lib-1.1.2_pre20060328-r9
>>> md5 files   ;-) files/digest-xine-lib-1.1.1-r3
>>> md5 files   ;-) files/digest-xine-lib-1.1.2_pre20060328-r10
>>> md5 src_uri ;-) xine-lib-1.1.2cvs20060328.tar.gz
>>> md5 src_uri ;-) xine-lib-patches-43.tar.bz2
>>> Unpacking source...
>>> Unpacking xine-lib-1.1.2cvs20060328.tar.gz to /var/tmp/portage/xine-lib-1.1.2_pr                                                       e20060328-r9/work
>>> Unpacking xine-lib-patches-43.tar.bz2 to /var/tmp/portage/xine-lib-1.1.2_pre2006                                                       0328-r9/work
 * Applying various patches (bugfixes/updates) ...
 *   030_all_vidix-gcc4.patch ...                                             [ ok ]
 *   100_all_newffmpeg.patch ...                                              [ ok ]
 *   120_all_textrels.patch ...                                               [ ok ]
 *   170_all_postproc.patch ...                                               [ ok ]
 *   180_all_faad-64bit.patch ...                                             [ ok ]
 *   190_all_implicit-declarations.patch ...                                  [ ok ]
 *   200_all_automake.patch ...                                               [ ok ]
 *   210_all_ppc-asflags.patch ...                                            [ ok ]
 *   220_all_dontcrashmad.patch ...                                           [ ok ]
 *   230_all_httpauth.patch ...                                               [ ok ]
 *   235_all_osd.patch ...                                                    [ ok ]
 *   240_all_constplugins.patch ...

 * Failed Patch: 240_all_constplugins.patch !
 *  ( /var/tmp/portage/xine-lib-1.1.2_pre20060328-r9/work/patches/240_all_constplugi                                                       ns.patch )
 *
 * Include in your bugreport the contents of:
 *
 *   /var/tmp/portage/xine-lib-1.1.2_pre20060328-r9/temp/240_all_constplugins.patch-                                                       10668.out


!!! ERROR: media-libs/xine-lib-1.1.2_pre20060328-r9 failed.
!!! Function epatch, Line 339, Exitcode 0
!!! Failed Patch: 240_all_constplugins.patch!
!!! If you need support, post the topmost build error, NOT this status message.


Comment 6 Jakub Moc (RETIRED) gentoo-dev 2006-06-05 09:46:14 UTC
*** Bug 135647 has been marked as a duplicate of this bug. ***
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2006-06-05 14:26:39 UTC
*** Bug 135683 has been marked as a duplicate of this bug. ***
Comment 8 Mark Knecht 2006-06-05 16:51:17 UTC
Diego - I upgraded and seem to be using the newest stable gcc but I'm still having the same problem. I also tried down shifting to the previous -r1 version but had the same issue:

dragonfly ~ # gcc-config -l
 [1] i686-pc-linux-gnu-3.3.3
 [2] i686-pc-linux-gnu-3.4.4
 [3] i686-pc-linux-gnu-3.4.4-hardened
 [4] i686-pc-linux-gnu-3.4.4-hardenednopie
 [5] i686-pc-linux-gnu-3.4.4-hardenednopiessp
 [6] i686-pc-linux-gnu-3.4.4-hardenednossp
 [7] i686-pc-linux-gnu-3.4.6 *
 [8] i686-pc-linux-gnu-3.4.6-hardened
 [9] i686-pc-linux-gnu-3.4.6-hardenednopie
 [10] i686-pc-linux-gnu-3.4.6-hardenednopiessp
 [11] i686-pc-linux-gnu-3.4.6-hardenednossp
dragonfly ~ #

The problem remains essentially the same:

/bin/sh ../../libtool-nofpic --mode=link i686-pc-linux-gnu-gcc  -DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DXINE_COMPILE  -DENABLE_IPV6 -O2 -march=pentium4 -fomit-frame-pointer -pipe -frename-registers -ffunction-sections   -o xineplug_vo_out_sdl.la -rpath /usr/lib/xine/plugins/1.1.2 -avoid-version -module xineplug_vo_out_sdl_la-video_out_sdl.lo -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread ../../src/xine-engine/libxine.la -lpthread
grep: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/libstdc++.la: No such file or directory
/bin/sed: can't read /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/libstdc++.la: No such file or directory
libtool-nofpic: link: `/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/libstdc++.la' is not a valid libtool archive
make[4]: *** [xineplug_vo_out_sdl.la] Error 1
make[4]: *** Waiting for unfinished jobs....
libtool-nofpic: link: warning: `/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/../../..//libfreetype.la' seems to be moved
i686-pc-linux-gnu-gcc -shared  .libs/xineplug_vo_out_opengl_la-yuv2rgb.o .libs/xineplug_vo_out_opengl_la-yuv2rgb_mmx.o .libs/xineplug_vo_out_opengl_la-yuv2rgb_mlib.o .libs/xineplug_vo_out_opengl_la-video_out_opengl.o .libs/xineplug_vo_out_opengl_la-x11osd.o  -Wl,--rpath -Wl,/usr/lib/opengl/xorg-x11/lib -Wl,--rpath -Wl,/home/portage_temp/portage/xine-lib-1.1.2_pre20060328-r9/work/xine-lib-1.1.2cvs/src/xine-engine/.libs -Wl,--rpath -Wl,/usr/lib/opengl/xorg-x11/lib /usr/lib/opengl/xorg-x11/lib/libGL.so -L/usr/lib -lm /usr/lib/libGLU.so -lXext -lSM -lICE -lX11 ../../src/xine-engine/.libs/libxine.so -L/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/../../../ -lpthread  -march=pentium4 -Wl,-soname -Wl,xineplug_vo_out_opengl.so -o .libs/xineplug_vo_out_opengl.so
creating xineplug_vo_out_opengl.la
(cd .libs && rm -f xineplug_vo_out_opengl.la && ln -s ../xineplug_vo_out_opengl.la xineplug_vo_out_opengl.la)
make[4]: Leaving directory `/home/portage_temp/portage/xine-lib-1.1.2_pre20060328-r9/work/xine-lib-1.1.2cvs/src/video_out'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/portage_temp/portage/xine-lib-1.1.2_pre20060328-r9/work/xine-lib-1.1.2cvs/src/video_out'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/portage_temp/portage/xine-lib-1.1.2_pre20060328-r9/work/xine-lib-1.1.2cvs/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/portage_temp/portage/xine-lib-1.1.2_pre20060328-r9/work/xine-lib-1.1.2cvs'
make: *** [all] Error 2

!!! ERROR: media-libs/xine-lib-1.1.2_pre20060328-r9 failed.
!!! Function src_compile, Line 239, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.

dragonfly ~ #

grep: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/libstdc++.la: No such file or directory

Indeed, that directory doesn't exist:
dragonfly ~ # ls /usr/lib/gcc-lib/i686-pc-linux-gnu/
3.3.3
dragonfly ~ #


dragonfly ~ # ls /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/libstdc++*
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/libstdc++.a
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/libstdc++.la
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/libstdc++.so
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/libstdc++.so.5
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/libstdc++.so.5.0.5
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/libstdc++_pic.a
dragonfly ~ #

This message:

libtool-nofpic: link: warning: `/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/../../..//libfreetype.la' seems to be moved

is looking for libfreetype which doesn't seem to be on the system:

dragonfly ~ # slocate 3.4.6 | grep libfreetype
dragonfly ~ #

but there are similar things elsewhere:

dragonfly ~ # slocate libfreetype
/usr/lib/libfreetype.so.6.3.7
/usr/lib/libfreetype.so.6
/usr/lib/libfreetype.so
/usr/lib/libfreetype.la
/usr/lib/libfreetype.a
/usr/lib/modules/fonts/libfreetype.so
/usr/lib/openoffice/program/filter/libfreetype.so.6
dragonfly ~ #

HELP! What's the matter here?

Thanks!
Comment 9 Robert Wolf 2006-06-06 00:15:20 UTC
I think the problem is somewhere else. The following types of error is OK, because epatch tries to run patch with parameter -p with number 0 to 5 to strip the selected number of directories from file name in patch file.

################################################################################
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: xine-lib-1.1.2cvs20060328/src/audio_out/audio_alsa_out.c
|===================================================================
|--- xine-lib-1.1.2cvs20060328.orig/src/audio_out/audio_alsa_out.c
|+++ xine-lib-1.1.2cvs20060328/src/audio_out/audio_alsa_out.c
--------------------------
No file to patch.  Skipping patch.
2 out of 2 hunks ignored
################################################################################

You have to search the part starting with 

"PATCH COMMAND:  patch -p1 -g0 -E --no-backup-if-mismatch < /portage.work/portage/xine-lib-1.1.2_pre20060328-r9/work/patches/240_all_constplugins.patch"

here starts the correct command, which fails. epatch enters -p1 to strip top "xine-line-version" directory name and use only relative names. And there is a problem in the patch file. I found one example, but probably the other errors will be the same. The error is 

################################################################################
patching file src/audio_out/audio_alsa_out.c
Hunk #2 FAILED at 1681.
1 out of 2 hunks FAILED -- saving rejects to file src/audio_out/audio_alsa_out.c.rej
################################################################################

The first part of the patch file wants to update file src/audio_out/audio_alsa_out.c so look at it. The first patch element is correct, on the line 1673 it starts to patch and it changes the text "static ao_info_t ao_info_alsa = {" to "static const ao_info_t ao_info_alsa = {". But the second hunk should change text "plugin_info_t xine_plugin_info[] EXPORTED = {" to "const plugin_info_t xine_plugin_info[] EXPORTED = {". And now!! If you look in the source file src/audio_out/audio_alsa_out.c at line 1684, you can see, there is a line "plugin_info_t xine_plugin_info[] = {" BUT NO "EXPORTED" word. Isn't it the reason why patch fails?

###################################################################
Index: xine-lib-1.1.2cvs20060328/src/audio_out/audio_alsa_out.c
===================================================================
--- xine-lib-1.1.2cvs20060328.orig/src/audio_out/audio_alsa_out.c
+++ xine-lib-1.1.2cvs20060328/src/audio_out/audio_alsa_out.c
@@ -1673,7 +1673,7 @@ static void *init_class (xine_t *xine, v
   return this;
  }

-static ao_info_t ao_info_alsa = {
+static const ao_info_t ao_info_alsa = {
   10
 };

@@ -1681,7 +1681,7 @@ static ao_info_t ao_info_alsa = {
  * exported plugin catalog entry
  */

-plugin_info_t xine_plugin_info[] EXPORTED = {
+const plugin_info_t xine_plugin_info[] EXPORTED = {
   /* type, API, "name", version, special_info, init_function */
   { PLUGIN_AUDIO_OUT, AO_OUT_ALSA_IFACE_VERSION, "alsa", XINE_VERSION_CODE, &ao_info_alsa, init_class },
   { PLUGIN_NONE, 0, "", 0, NULL, NULL }
###################################################################

Does this help you?
Comment 10 Robert Wolf 2006-06-06 00:18:32 UTC
Probably you should update the patch with correct original lines from original sources.
Comment 11 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-06-06 01:05:23 UTC
You're mixing problems that does not relate between at all. Anyway, -r11 should build with GCC 3.3 now.
Comment 12 Jakub Moc (RETIRED) gentoo-dev 2006-06-06 11:36:40 UTC
*** Bug 135806 has been marked as a duplicate of this bug. ***
Comment 13 Jakub Moc (RETIRED) gentoo-dev 2006-06-06 12:45:15 UTC
*** Bug 135813 has been marked as a duplicate of this bug. ***
Comment 14 Jakub Moc (RETIRED) gentoo-dev 2006-06-07 00:47:15 UTC
*** Bug 135843 has been marked as a duplicate of this bug. ***
Comment 15 Jakub Moc (RETIRED) gentoo-dev 2006-06-07 00:47:33 UTC
*** Bug 135845 has been marked as a duplicate of this bug. ***
Comment 16 Robert Wolf 2006-06-07 01:04:04 UTC
Sorry, but this bug is not resolved. Problem is not in building with gcc-3.4 or gcc-3.3, the problem is in patching the original source code.

Same problem after new sync and also with ACCEPT_KEYWORDS=~x86 and used xine-lib-1.1.2_pre20060328-r11.ebuild. I tried to change 240_all_constplugins.patch and compile r9.ebuild and it applies patch correctly. I made these changes:

1) delete every "EXPORTED " text (don't forget the space)
2) file src/post/goom/Makefile.am has different content from patch version. 

2.1) There is a line 

xineplug_post_goom_la_LDFLAGS = -avoid-version -module

but this line is not present in source file, so you have delete it from patch on line 2569.

2.2) because of deleted line you did in (2.1), you have to change number of patched lines by this hunk on line 2558. You have there 

@@ -23,14 +24,14 @@ endif

But correct must be 

@@ -23,13 +24,13 @@ endif

2.3) In the patch file, there is a line 2568

xineplug_post_goom_la_CFLAGS = $(VISIBILITY_FLAG)

But in the source file, the line contains

xineplug_post_goom_la_LDFLAGS = -avoid-version -module $(XINE_PLUGIN_MIN_SYMS)


3) Some hunks succeed with some offset, but is not error.

patching file src/liba52/xine_decoder.c
Hunk #1 succeeded at 852 (offset -2 lines).
patching file src/libfaad/xine_decoder.c
Hunk #1 succeeded at 468 (offset -5 lines).
patching file src/libreal/audio_decoder.c
Hunk #1 succeeded at 753 (offset -4 lines).
patching file src/libreal/xine_decoder.c
Hunk #1 succeeded at 634 (offset -4 lines).



I think you have to change the patch file.

So please make the patch correct.
Comment 17 Robert Wolf 2006-06-07 01:20:48 UTC
Created attachment 88580 [details, diff]
240_all_constplugins.patch updated

Compiled fine using gcc 3.3.6 with this changed patch file. You can compare it to the original one and find out my changes. But I understand, how can you patch the sources with this patch file. Do you use the same xine-lib sources? In the ebuild, it's xine-lib-1.1.2cvs20060328.tar.gz.
Comment 18 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-06-07 02:54:44 UTC
Please use GCC 3.4 because with GCC 3.3 you _will_ have problems.
In alternative use -r11 that should work on both but you won't be supported anyway.
Comment 19 Jakub Moc (RETIRED) gentoo-dev 2006-06-07 04:45:44 UTC
*** Bug 135895 has been marked as a duplicate of this bug. ***
Comment 20 Robert Wolf 2006-06-07 06:40:22 UTC
BUT IT CANNOT PATCH THE SOURCE!!!!! sorry for the caps, but I don't know how to tell you.

The compilation doesn't start, because it fails on patching sources!!!! It fails on using program "patch", not "gcc".
Comment 21 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-06-07 06:47:26 UTC
AND THE REASON IT FAILS IS BECAUSE I REMOVED THE 237 PATCH THAT IS BROKEN WITH GCC 3.3!

But okay, if you're stubborn, I can be more.
Next version in portage will fail to build.
Comment 22 Mark Knecht 2006-06-07 06:55:06 UTC
Diego - Indeed I did get xine-lib to build but I had some horrible system config problems along the way. I think that possibly part of the problem here is making people who are not as system/gcc aware as you (like me!) understand what is the proper way to 'use a newer GCC'. In my case I emerged gcc-3.4.4 & 3.4.6 but still had trouble until I learned to run gcc-config. Unfortunately along the way I did an emerge -C gcc-3.3 and caused huge problems with other things on the system.

Can you put some info in this thread so that user-type folks like me can do this correctly in the future? I'd hate to see anyone go through what I went through over the last day or two! Maybe that would help others that have this problem.

Thanks!
Comment 23 Anno v. Heimburg 2006-06-07 07:19:17 UTC
As long as gcc 3.3 is still supported officially, I think stable versions of xine-lib should work fine with all gentoo-supported compilers (thus, 3.3 and 3.4).

If that really isn't possible, the ebuild should fail gracefully after detecting that gcc-3.3 is active, and not simply bork on patching.
Comment 24 Baron "Xaprb" Schwartz 2006-06-07 08:20:25 UTC
I want to add my vote to what Mark said.  I had no idea until now that there was such a thing as a GCC profile.

Synopsis:

$ gcc-profile -c
$ gcc-profile -l
$ gcc-profile i686-pc-linux-gnu-3.4.6
$ source /etc/profile

Now the patch succeeds.

I'd use all-caps to make people notice, but... *grin*
Comment 25 Jakub Moc (RETIRED) gentoo-dev 2006-06-07 08:33:16 UTC
*** Bug 135934 has been marked as a duplicate of this bug. ***
Comment 26 Jakub Moc (RETIRED) gentoo-dev 2006-06-07 08:37:04 UTC
(In reply to comment #23)
> As long as gcc 3.3 is still supported officially, I think stable versions of
> xine-lib should work fine with all gentoo-supported compilers (thus, 3.3 and
> 3.4).

It's not supported on any arch where a 3.4.x version is stable. It's completely unsupported upstream, so don't expect any gcc-3.3.x fixes on Gentoo. Upgrade you gcc or don't moan.

http://www.gentoo.org/doc/en/gcc-upgrading.xml
Comment 27 Robert Wolf 2006-06-07 10:23:53 UTC
(In reply to comment #21)
> AND THE REASON IT FAILS IS BECAUSE I REMOVED THE 237 PATCH THAT IS BROKEN WITH
> GCC 3.3!

*** sorry for the caps. I can't understand, why it is not possible to patch the file when I use gcc-3.3 profile, and it is possible to patch when I use the gcc-3.4 profile.

 I have tried on my machine with gcc-3.3, and it really doesn't use patch 237, but just after switching to gcc-3.4 (only gcc-config and emerge libtool) it uses patch 237. Hey man!! How you did it?? I thought I know enought Gentoo magic, but now I see, I don't. Tell me please, I can't find some switch for this:)
Comment 28 Jani Nikula 2006-06-08 02:33:42 UTC
(In reply to comment #26)

> It's not supported on any arch where a 3.4.x version is stable. It's completely
> unsupported upstream, so don't expect any gcc-3.3.x fixes on Gentoo. Upgrade
> you gcc or don't moan.

The GCC upgrade guide says, "you can safely postpone upgrade as long as your GCC version is supported by Gentoo developers." Information on which versions are supported is nowhere to be found. Since when has 3.3 been deprecated/unsupported? Where was this announced?
Comment 29 Jakub Moc (RETIRED) gentoo-dev 2006-06-08 04:03:27 UTC
*** Bug 136050 has been marked as a duplicate of this bug. ***