Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linux-dvb] Re: scan doesn't compile



On Tue, Oct 29, 2002 at 04:05:25PM +0100, Holger Waechtler wrote:
> Stefan Hußfeldt wrote:
> >
> >scan from todays (CVS) DVB package doesn't compile:
> >
> >|[root@zaphod scan]# make
> >|gcc -M -g -Wall -O0 -I/usr/src/linux-2.4.19-16mdksmp/include 
> >-I../../include scan.c dump.c > .depend
> >|gcc -g -Wall -O0 -I/usr/src/linux-2.4.19-16mdksmp/include -I../../include 
> >-c scan.c -o scan.o
> >|In file included from /usr/include/linux/prefetch.h:13,
> >|                 from /usr/include/linux/list.h:6,
> >|                 from scan.c:13:
> >|/usr/include/asm/processor.h:55: `CONFIG_X86_L1_CACHE_SHIFT' undeclared 
> >here (not in a function)
> >|/usr/include/asm/processor.h:55: requested alignment is not a constant
> >|make: *** [scan.o] Fehler 1
> >
> >|[root@zaphod scan]# rpm -q kernel-headers
> >|kernel-headers-2.4.18-41mdk
> >
> >|[root@zaphod scan]# cat /etc/redhat-release 
> >|Mandrake Linux release 9.0 (dolphin) for i586
> 
> Your kernel include files are screwed up. /usr/include/linux, 
> /usr/include/asm have to refer to the same kernel source. You should use 
> header files of a recent kernel.

AFAIK the header files in /usr/include/linux and asm must match
the glibc installed in the system. Replacing them with newer
ones is not recommended. Sometimes it's necessary to supply
newer driver API header files to use new ioctls (like for the
DVB driver ;-), but in general you should leave the system
header files alone.

What scan.c does to use linux/list.h is simply illegal.


Regards,
Johannes


-- 
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe linux-dvb" as subject.



Home | Main Index | Thread Index