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

Re: Other modversions.h glitch



I just got over this obsticle lastnight at 4am! =)

This is the note which one website states:
gcc -DMODULE -D__KERNEL__ -O6 -c pci-scan.c
With some distributions, especially those based on the
2.4 kernel,
you may need to add the following options to the
compile command
   -I/usr/src/linux/include -include
/usr/src/linux/include/linux/modversions.h

Therefore the full command line would be:
gcc -DMODULE -D__KERNEL__ -O6 -c
-I/usr/src/linux/include -include
/usr/src/linux/include/linux/modversions.h
 pci-scan.c

If you notice, the -I tells the compiler where to look
for the include folder. Also, the very next parameter
is the actual full path of the modversion.h file. 

That was their example. In real-life your
modversions.h file will not be in that exact path. The
author's intent (even though not explicitly written)
the modversion.h file may not reside there for you.
This is all him and anyone actually knows for sure:
/usr/src/........./modversions.h

What I had to do to find the exact full path of the
modversions.h file was to look for it using:
find / | grep 'modversions\.h'

This command which search the all of / for the exact
filename. Once you have the full path place replace
the path in the example with your findings.

Note: If you notice there is an -I parameter. This
should match the path you found minus the filename.

Good Luck!
--- ciber@celasmaya.edu.gt wrote:
> Like Dom Leon I am trying to compile a new module,
> in this case for a FlashPath
>  for SmartMedia/MultiMediaCard Floppy Adaptor.
> 
>
http://www.smartdisk.com/Downloads/Software/flashpath-0.2.1.tar.gz
> 
> It looks like it hasn't been under any development
> for 2 years, and is meant for
> kernel version 2.2.x
> 
> The problem is that the configure script keeps
> getting /usr/include as the
> location of the kernel headers, and then make fails
> when it cannot find
> modversions.h
> 
> make[2]: Entering directory
> `/usr/src/flashpath-0.2.1/linux'
> c++ -DHAVE_CONFIG_H -I. -I. -I.. -I../include
> -I/usr/include     -O2 -DSD_LINUX
> -D__KERNEL__ -Wall -fomit-frame-pointer
> -DMODVERSIONS -c cppfake.cpp
> cppfake.cpp:25: linux/modversions.h: No such file or
> directory
> make[2]: *** [cppfake.o] Error 1
> make[2]: Leaving directory
> `/usr/src/flashpath-0.2.1/linux'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory
> `/usr/src/flashpath-0.2.1'
> make: *** [all-recursive-am] Error 2
> 
> 
> term102:/usr/src/flashpath-0.2.1# locate
> modversions.h
>
/usr/src/kernel-source-2.4.18/include/linux/modversions.h
> 
> 
> How do I tell the configure script where the kernel
> headers actually are? And
> will I run into other errors due to the modules
> being designed for a 2.2.x
> kernel rather then our 2.4.x series?
> 
> 
>
----------------------------------------------------------------------
> 
> http://espanol.groups.yahoo.com/group/LinuxDeXela/
> 
> http://www.celasmaya.edu.gt/
> 
> 
> -- 
> To UNSUBSCRIBE, email to
> debian-user-request@lists.debian.org 
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com


-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: