-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Robert Fox wrote on Thu, Jan 09, 2003 at 09:39:43PM +0000 :
> Now I have proof.
> Latest Cooker as of todays date (11.01.03)
> [rfox@foxhome NVIDIA_kernel-1.0-4191]$ make
> cc -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts
> -Wparentheses -Wpointer-arith -Wcast-qual -Wno-multichar -O -MD -D__KERNEL__
> -DMODULE -D_LOOSE_KERNEL_NAMES -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES
> -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0
> -DNV_PATCHLEVEL=4191 -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86
> -I. -I/usr/src/linux/include -Wno-cast-qual nv.c
<snip>
> /usr/include/asm/processor.h:55: requested alignment is not a constant
> In file included from /usr/include/linux/module.h:297,
> from nv-linux.h:28,
> from nv.c:14:
> /usr/include/linux/version.h:2:2: #error
> "======================================================="
> /usr/include/linux/version.h:3:2: #error "You should not include
> /usr/include/{linux,asm}/ header"
> /usr/include/linux/version.h:4:2: #error "files directly for the compilation
> of kernel modules."
Does this not tell you exactly what the problem is? It should be
finding the files in /usr/src/linux/include, but instead it's finding
them in /usr/include/linux. If you _really_ want to build it, try
moving /usr/include/linux and temporarily symlink it to
/usr/src/linux/include. Once you're done compiling, put it back the way
it was.
Kernel modules should find the headers they need in
/usr/src/linux/include.
Applications should find the headers they need in /usr/include or
/usr/local/include, or anywhere _except_ /usr/src/linux/include. The
only exception to this is glibc, which will make a copy of
/usr/src/linux/include and place that copy in /usr/linux/include.
(That's what this whole mess is to begin with).
Blue skies... Todd
- --
MandrakeSoft USA http://www.mandrakesoft.com
Mandrake: An amalgam of good ideas from RedHat, Debian, and MandrakeSoft.
All in all, IMHO, an unbeatable combination. --Levi Ramsey on Cooker ML
Cooker Version mandrake-release-9.1-0.1mdk Kernel 2.4.20-2mdk
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+HzJolp7v05cW2woRAl+KAKDLy83yBGXfqsxB60+A5xy+sAY/GgCbB503
pKcXmcWtBxavqZO5i+gI2Hc=
=cWV+
-----END PGP SIGNATURE-----