| Summary: | mplayer fails to compile (with linux-headers 2.6.5?) | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Christian Korff <christian.korff> |
| Component: | Current packages | Assignee: | Gentoo Media-video project <media-video> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | normal | ||
| Priority: | Low | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
You are not (yet?) supposed to use 2.6.x headers in user space. I found the following on a suse mailing list: "Kernel headers for normal user space apps are part of the C library glibc and are found under /usr/include/linux and /usr/include/asm. These are the kernel headers glibc was built against and for normal user space apps these should suffice." I run 2.6 with 2.4 user space headers and I have never had problems compiling mplayer works fine. stsp@dice stsp $ qpkg -I -v linux-headers sys-kernel/linux-headers-2.4.19 * sys-kernel/linux-headers-2.4.21-r1 * stsp@dice stsp $ uname -a Linux dice 2.6.7-gentoo-r6 #1 Sat Jun 26 15:17:25 CEST 2004 i686 AMD Athlon(tm) XP 2400+ AuthenticAMD GNU/Linux |
mplayer-1.0_pre4-r4 fails to compile on my system. Since there seems to be issues with the kernel headers: I use linux-headers-2.6.5. ebuild version of linux-headers (copied to PORTDIR_OVERLAY): # $Header: /home/cvsroot/gentoo-x86/sys-kernel/linux-headers/linux-headers-2.6.5.ebuild,v 1.8 2004/04/27 22:01:40 agriffis Exp $ I know this is tricky since the headers are not marked with the x86 or ~x86 keyword. output of mplayer compile: ... gcc -fno-pic -nopie -c -I../libvo/ -I../../libvo -O4 -march=pentium4 -mcpu=pentium4 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I. -I.. -I../osdep -I/usr/include/freetype2 -I/usr/include/SDL -D_REENTRANT -I/usr/X11R6/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/include/directfb -DMPG12PLAY -o vo_fbdev.o vo_fbdev.c In file included from /usr/include/asm/thread_info.h:13, from /usr/include/linux/thread_info.h:21, from ../osdep/kerneltwosix.h:4, from vo_fbdev.c:21: /usr/include/asm/processor.h:68: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function) /usr/include/asm/processor.h:68: error: requested alignment is not a constant make[1]: *** [vo_fbdev.o] Error 1 make[1]: Leaving directory `/tmp/portage/mplayer-1.0_pre4-r4/work/MPlayer-1.0pre4/libvo' make: *** [libvo/libvo.a] Fehler 2 !!! ERROR: media-video/mplayer-1.0_pre4-r4 failed. !!! Function src_compile, Line 295, Exitcode 2 !!! Failed to build MPlayer! I didn't test other versions of linux-headers. I am using 2.6.5 as running kernel.