Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 35721 - [[ headers ]] xine-lib-1_rc2 failed to compile (video_out_vidix.c)
Summary: [[ headers ]] xine-lib-1_rc2 failed to compile (video_out_vidix.c)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Tim Yamin (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-13 04:51 UTC by César Fernández
Modified: 2003-12-24 04:15 UTC (History)
2 users (show)

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


Attachments
patch for /usr/include/linux/fb.h (fb.h.patch,1.90 KB, patch)
2003-12-23 16:02 UTC, SpanKY
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description César Fernández 2003-12-13 04:51:20 UTC
Log:

/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  -march=athlon-xp -mmmx -m3dnow -msse -mfpmath=sse,387 -O2 -ffast-math -fomit-frame-pointer -frename-registers -funroll-loops -pipe -I/usr/X11R6/include -DXINE_COMPILE  -I../../src/video_out/vidix -I../../src/video_out/vidix -I/usr/include    -Wall -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DXINE_COMPILE  -Wpointer-arith -Wnested-externs -Wcast-align -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -march=athlon-xp -mmmx -m3dnow -msse -mfpmath=sse,387 -O2 -ffast-math -fomit-frame-pointer -frename-registers -funroll-loops -pipe   -I/usr/kde/3.2/include/artsc -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  -c -o video_out_vidix.lo `test -f 'video_out_vidix.c' || echo './'`video_out_vidix.c
rm: cannot remove `': Invalid argument
In file included from /usr/include/linux/timer.h:5,
                 from /usr/include/linux/workqueue.h:8,
                 from /usr/include/linux/fb.h:5,
                 from video_out_vidix.c:48:
/usr/include/linux/list.h:576:2: warning: #warning "don't include kernel headers in userspace"
In file included from ../../src/xine-engine/video_out.h:43,
                 from video_out_vidix.c:56:
../../config.h:520:1: warning: "inline" redefined
In file included from /usr/include/linux/compiler.h:16,
                 from /usr/include/linux/spinlock.h:11,
                 from /usr/include/linux/timer.h:6,
                 from /usr/include/linux/workqueue.h:8,
                 from /usr/include/linux/fb.h:5,
                 from video_out_vidix.c:48:
/usr/include/linux/compiler-gcc3.h:7:1: warning: this is the location of the previous definition
In file included from /usr/include/linux/timer.h:6,
                 from /usr/include/linux/workqueue.h:8,
                 from /usr/include/linux/fb.h:5,
                 from video_out_vidix.c:48:
/usr/include/linux/spinlock.h: In function `bit_spin_lock':
/usr/include/linux/spinlock.h:413: error: invalid type argument of `->'
/usr/include/linux/spinlock.h: In function `bit_spin_trylock':
/usr/include/linux/spinlock.h:430: error: invalid type argument of `->'
/usr/include/linux/spinlock.h:433: error: invalid type argument of `->'
/usr/include/linux/spinlock.h:433: error: `TIF_NEED_RESCHED' undeclared (first use in this function)
/usr/include/linux/spinlock.h:433: error: (Each undeclared identifier is reported only once
/usr/include/linux/spinlock.h:433: error: for each function it appears in.)
/usr/include/linux/spinlock.h: In function `bit_spin_unlock':
/usr/include/linux/spinlock.h:451: error: invalid type argument of `->'
/usr/include/linux/spinlock.h:451: error: `TIF_NEED_RESCHED' undeclared (first use in this function)
In file included from /usr/include/linux/workqueue.h:8,
                 from /usr/include/linux/fb.h:5,
                 from video_out_vidix.c:48:
/usr/include/linux/timer.h: At top level:
/usr/include/linux/timer.h:11: error: field `entry' has incomplete type
In file included from /usr/include/linux/fb.h:5,
                 from video_out_vidix.c:48:
/usr/include/linux/workqueue.h:15: error: field `entry' has incomplete type
In file included from video_out_vidix.c:48:
/usr/include/linux/fb.h:342: error: syntax error before '*' token
/usr/include/linux/fb.h:346: error: syntax error before '}' token
make[4]: *** [video_out_vidix.lo] Error 1
make[4]: Leaving directory `/var/tmp/portage/xine-lib-1_rc2/work/xine-lib-1-rc2/src/video_out'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/xine-lib-1_rc2/work/xine-lib-1-rc2/src/video_out'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/xine-lib-1_rc2/work/xine-lib-1-rc2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/xine-lib-1_rc2/work/xine-lib-1-rc2'
make: *** [all] Error 2

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


Reproducible: Always
Steps to Reproduce:
1. USE='-sdl' emerge xine-lib




Portage 2.0.49-r18 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9,
2.6.0-test11-gentoo-r2)
=================================================================
System uname: 2.6.0-test11-gentoo-r2 i686 AMD Athlon(tm) XP 1800+
Gentoo Base System version 1.4.3.12
ccache version 2.2 [enabled]
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -mmmx -m3dnow -msse -mfpmath=sse,387 -O2 -ffast-math
-fomit-frame-pointer -frename-registers -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon-xp -mmmx -m3dnow -msse -mfpmath=sse,387 -O2 -ffast-math
-fomit-frame-pointer -frename-registers -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X aalib acpi alsa apm avi berkdb cdr cjk crypt cscope cups dvd encode
faad fbcon foomaticdb foreign-sysvinit gd gdbm gif gpm gtk2 gtkhtml hyriand imap
imlib ipv6 java javascript jikes jpeg kde lcms libg++ libwww mad matroska mikmod
mmx motif mozilla moznoirc moznomail mozsvg mpeg mpi ncurses nls oggvorbis
opengl pam pdflib perl pic png ppds python qt quicktime readline sasl sdl slang
snmp spell sse ssl tcltk tcpd tetex threads tiff truetype usagi vim-with-x wmf
x86 xml xml2 xmms xv zlib"


In my opinion this is related to my kernel headers, now I'm using
linux-headers-2.6.0_beta11. Must I downgrade to 2.4.21-r1 headers?
Comment 1 SpanKY gentoo-dev 2003-12-13 08:31:28 UTC
yes, it is completely related to linux-2.6.x headers
Comment 2 SpanKY gentoo-dev 2003-12-23 16:02:48 UTC
Created attachment 22600 [details, diff]
patch for /usr/include/linux/fb.h

i'm not 100% sure this is 'correct' but it fixes xine-lib and DirectFB
Comment 3 Tim Yamin (RETIRED) gentoo-dev 2003-12-24 04:15:26 UTC
Fixed in linux-headers-2.6.0.