[MPlayer-users] Compile with new kernel

Gábor Lénárt lgb at lgb.hu
Thu Jul 31 17:29:48 CEST 2003


On Thu, Jul 31, 2003 at 05:19:24PM +0200, Janos Makadi wrote:
> Sorry for not replaying to the letter, but I'm reading the list in digest.

No prob.
 
> So, it doesn't matter if the /usr/src/linux is a link or not. The 
> building process produce the same result. (Could you drop me a mail to 
> desribe, what's the difference beetween a link and a directory in this 
> point?)

Well. The fact is, some broken distributions (and some strange people)
thinks that /usr/src/linux should point to the current kernel's includes
which is WRONG. It should be point to the kernel headers was used TO COMPILE
LIBC on your system ... There were enough threads about this topic even on
the "big" Linux kernel mailing list.

> If I change the "fbdev" directive in the configuration script to "no", 
> (default is "auto") the build process finish without error.
> I found it happens with 0.90 and the last cvs version too.
> 
> Here is the build log:
> 
> make -C libvo
> make[1]: Entering directory `/root/install/MPlayer-0.90/libvo'
> gcc -c -O4 -march=athlon-xp -mcpu=athlon-xp -pipe -ffast-math 
> -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE 
> -D_FILE_OFFSET_BITS=64 -I. -I.. -I/usr/X11R6/include 
> -I/usr/X11R6/include/freetype2 -I/usr/X11R6/include -DMPG12PLAY 
> -DVIDIX_PATH='"/usr/local/lib/mplayer/vidix/"' -o vo_fbdev.o vo_fbdev.c
> In file included from /usr/include/linux/fb.h:5,
> from vo_fbdev.c:23:
> /usr/include/linux/workqueue.h:15: error: field `entry' has incomplete type
> /usr/include/linux/workqueue.h:19: error: field `timer' has incomplete type

Well. I have even no such file, and mplayer compiles :)
[and yes, I'm using kernel 2.6.0-test2 now]
It looks like your /usr/include/linux is not a link to the source of
linux kernel 2.6.0-testX, or at least a copy from it, instead of the
version came with glibc (glibc-dev package for being more correct) which
it should be.

> In file included from vo_fbdev.c:23:
> /usr/include/linux/fb.h:344: error: parse error before "spinlock_t"
> make[1]: *** [vo_fbdev.o] Error 1
> make[1]: Leaving directory `/root/install/MPlayer-0.90/libvo'
> make: *** [libvo/libvo.a] Error 2

- Gábor (larta'H)



More information about the MPlayer-users mailing list