On Sunday 02 December 2007 05:45:23 am Mark Goldstein wrote:
> Hi,
>
> On Dec 2, 2007 1:26 PM, Hans Lombard <[EMAIL PROTECTED]> wrote:
> > Trying to install the sk98lin driver for a Marvell 88E8001 Gigabit
> > Ethernet controller, I run into an error message saying
> > "Kernel header not found. Please install the linux header files
> > development package."
> >
> > There are several header files on the Software Management list in
> > Opensuse 10.3 but I cannot identify the appropriate file(s).
>
> Have you tried "linux-kernel-headers"?
> --
> Mark Goldstein
For kernel drivers it should be 'kernel-source' package.
The '#error' lines in file '/usr/include/linux/version.h' are giving
instructions how to compile modules. For readers convenience, here is a copy:
#error "======================================================="
#error "You should not include /usr/include/{linux,asm}/ header"
#error "files directly for the compilation of kernel modules."
#error ""
#error "glibc now uses kernel header files from a well-defined"
#error "working kernel version (as recommended by Linus Torvalds)"
#error "These files are glibc internal and may not match the"
#error "currently running kernel. They should only be"
#error "included via other system header files - user space"
#error "programs should not directly include <linux/*.h> or"
#error "<asm/*.h> as well."
#error ""
#error "To build kernel modules please do the following:"
#error ""
#error " o Have the kernel sources installed"
#error ""
#error " o Make sure that the symbolic link"
#error " /lib/modules/`uname -r`/build exists and points to"
#error " the matching kernel source directory"
#error ""
#error " o Configure kernel sources:"
#error " - cd /usr/src/linux"
#error " - make mrproper"
#error " - make cloneconfig"
#error " - make prepare"
#error ""
#error " o When compiling, make sure to use the following"
#error " compiler option to use the correct include files:"
#error ""
#error " -I/lib/modules/`uname -r`/build/include"
#error ""
#error " instead of"
#error ""
#error " -I/usr/include/linux"
#error ""
#error " Please adjust the Makefile accordingly."
#error "======================================================="
--
Regards,
Rajko
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]