Click to See Complete Forum and Search --> : Error with modversions.h


Isam Bayazidi
11-03-2001, 06:42 AM
infact I am not sure if it is with modversions.h or not .. here is the case, I am compiling the Intel-v92ham-415 which is a drivr for MD563x for the 2.4.x kernel.. I have 2.4.13 running a Mandrake 8. the error message that i get when I 'make' the driver is:
/usr/include/linux/modversions.h:1:2: #error Modules should never use kernel-headers system headers,
/usr/include/linux/modversions.h:2:2: #error but headers from an appropriate kernel-source
make[1]: *** [coredrv.o] Error 1

what does this mean, and how can I fix it or turn around it ? I had a semilar message when I tried to compile the Driver for 2.2.x kernels ( another file) .. I had the message on Redhat 7, but not in Mandrake 7.2 .. and now it is in Mandrake 8..
Please help

bdg1983
11-03-2001, 07:23 AM
The message would indicate you need to install the kernel source though if you already have 2.4.13, then I would think the kernel source is in /usr/src/linux-2.4.13.

Is there a option during the building of the Intel-Ham to point it to the correct kernel source?

Forgot... Is /usr/src/linux-2.4.13 symlinked to /usr/src/linux?

[ 03 November 2001: Message edited by: Logon Name Gone ]

Lorithar
11-03-2001, 01:35 PM
*umm*


/usr/include/linux
should be a symlink to
/usr/src/[currentkernelsource]/include

which is frequently not the case after someone upgrades the kernel.

further I suspect that you aren't building this in the normal kernel tree ... some borked modules insist on being in the normal kernel tree to build properly as they use relative pathing rather than dynamic pathing for some of their includes.

Isam Bayazidi
11-04-2001, 09:53 AM
OK here is what the 'makefile' do :
create a symbolic link dir:
/lib/modules/build --> /usr/src/linux-2.4.13

I do not have a /usr/src/linux-2.4.13 so I linked :
/usr/src/linux-2.4.13 --> /usr/linux
and as only have the headers in /usr/include/linux I linked a :
/usr/src/linux/include --> /usr/include/linux

Now the make as you said, does the compilation and building in /lib/modules/build which is linked to the headers ..
I am still getting the same message when running make .. and ideas ? Am I missing a link or permission or setting ? I really don't want to go back to 2.4.3 kernel just to run the modem..
please help