Re: Where is the file /usr/include/linux/modversions.h ?
--- jjluza [EMAIL PROTECTED] escribió: hi all. I try to compile a driver (nvnet) which includes the file /usr/include/linux/module.h. This file should include the file /usr/include/linux/modversions.h, but it desn't exist anymore :/ where is this file (I think it existed before, because I already succeeded in compiling this module) The modversions.h goes away after a make clean or a make mrproper. It exists after a make config, oldconfig, menuconfig, or xconfig if you elect to save your changes on exit. (You make also need to do a 'make dep', but I don't remember.) HTH, -Roberto ___ Yahoo! Messenger - Nueva versión GRATIS Super Webcam, voz, caritas animadas, y más... http://messenger.yahoo.es -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Where is the file /usr/include/linux/modversions.h ?
jjluza wrote: hi all. I try to compile a driver (nvnet) which includes the file /usr/include/linux/module.h. This file should include the file /usr/include/linux/modversions.h, but it desn't exist anymore :/ where is this file debian installs a generic set of linux include files in /usr/include/linux. While this is a pretty good thing for compiling applications, compiling drivers typically requires the include files of the linux kernel that you actually have installed. These are typically in /usr/src/linux, but basically could be anywhere else where you keep kernel source codes. The correct way of compiling drivers would be that they do not search in /usr/include/linux, but in /lib/modules/`uname -r`/build/include/linux, because /lib/modules/`uname -r`/build should be a symbolic link to where you keep the sourcecode for the kernel you are currently running. So I recommend you either try and edit the Makefile of your driver to change the include path or you can temporarily link /usr/include/linux to /lib/modules/`uname -r`/build/include/linux and your driver should compile. Cheers, Torsten -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Where is the file /usr/include/linux/modversions.h ?
yes, I know that ;) but even after make menuconfig (which made it work before), it doesn't work with test5-mm2 and when I run make dep, it tells me it's not needed now but modversions.h doesn't work too what I think weird is I use the same way to do that since the first 2.6 kernel, and it always works until now as Torsten say (in the next messsage), nvnet should find include files it need in the kernel source instead of /usr/include I think before it searched in the kernel source and now in /usr/include, but I don't know why ... I'll try to force it to compile against kernel source thanks for your help ;) Le Lundi 15 Septembre 2003 18:04, Roberto Sanchez a écrit : --- jjluza [EMAIL PROTECTED] escribió: hi all. I try to compile a driver (nvnet) which includes the file /usr/include/linux/module.h. This file should include the file /usr/include/linux/modversions.h, but it desn't exist anymore :/ where is this file (I think it existed before, because I already succeeded in compiling this module) The modversions.h goes away after a make clean or a make mrproper. It exists after a make config, oldconfig, menuconfig, or xconfig if you elect to save your changes on exit. (You make also need to do a 'make dep', but I don't remember.) HTH, -Roberto ___ Yahoo! Messenger - Nueva versión GRATIS Super Webcam, voz, caritas animadas, y más... http://messenger.yahoo.es -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Where is the file /usr/include/linux/modversions.h ?
As I said to Roberto, I notice the same thing, but I don't know how to force it compiling against kernel source instead of /usr/include... files and I don't understand why it works before ... it's strange Le Lundi 15 Septembre 2003 18:09, Torsten Reuss a écrit : jjluza wrote: hi all. I try to compile a driver (nvnet) which includes the file /usr/include/linux/module.h. This file should include the file /usr/include/linux/modversions.h, but it desn't exist anymore :/ where is this file debian installs a generic set of linux include files in /usr/include/linux. While this is a pretty good thing for compiling applications, compiling drivers typically requires the include files of the linux kernel that you actually have installed. These are typically in /usr/src/linux, but basically could be anywhere else where you keep kernel source codes. The correct way of compiling drivers would be that they do not search in /usr/include/linux, but in /lib/modules/`uname -r`/build/include/linux, because /lib/modules/`uname -r`/build should be a symbolic link to where you keep the sourcecode for the kernel you are currently running. So I recommend you either try and edit the Makefile of your driver to change the include path or you can temporarily link /usr/include/linux to /lib/modules/`uname -r`/build/include/linux and your driver should compile. Cheers, Torsten -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
RE: Where is the file /usr/include/linux/modversions.h ?
Hey All, I had this same issue when it came to compiling a couple of drivers. Modversions.h is a file that is created when you run make menuconfig or oldconfig. If you're running a standard woody revision, or a more recent thing you'll need the kernel headers.. that's where modversions.h is found. so, apt-get install kernel-headers-kernel#revision.. etc. If you're running the most up to date kernel, then you'll have to recompile the kernel (as debian doesn't have the latest headers hanging around, and if you do it the debian way (which I recommend) you'll have to make the debian package as follows: make-kpkg --revision kernel-image kernel-headers In fact, you can just make the kernel-headers and then do dpkg -i kernel-headers.deb That will take care of it... If you're ever compiling things, it's always good to have those headers present for certain operations that may required. let me know how it goes. Paul Matuszewski Systems Administration In Office Networks -Original Message- From: jjluza [mailto:[EMAIL PROTECTED] Sent: Monday, September 15, 2003 11:53 AM To: [EMAIL PROTECTED] Subject: Re: Where is the file /usr/include/linux/modversions.h ? As I said to Roberto, I notice the same thing, but I don't know how to force it compiling against kernel source instead of /usr/include... files and I don't understand why it works before ... it's strange Le Lundi 15 Septembre 2003 18:09, Torsten Reuss a écrit : jjluza wrote: hi all. I try to compile a driver (nvnet) which includes the file /usr/include/linux/module.h. This file should include the file /usr/include/linux/modversions.h, but it desn't exist anymore :/ where is this file debian installs a generic set of linux include files in /usr/include/linux. While this is a pretty good thing for compiling applications, compiling drivers typically requires the include files of the linux kernel that you actually have installed. These are typically in /usr/src/linux, but basically could be anywhere else where you keep kernel source codes. The correct way of compiling drivers would be that they do not search in /usr/include/linux, but in /lib/modules/`uname -r`/build/include/linux, because /lib/modules/`uname -r`/build should be a symbolic link to where you keep the sourcecode for the kernel you are currently running. So I recommend you either try and edit the Makefile of your driver to change the include path or you can temporarily link /usr/include/linux to /lib/modules/`uname -r`/build/include/linux and your driver should compile. Cheers, Torsten -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Where is the file /usr/include/linux/modversions.h ?
I just notice that there is an error with the link build : lrwxr-xr-x1 root root1 2003-09-15 19:19 build - . in the directory /lib/modules/2.6.0-test5-mm2/ it's strange ... it's the first time I notice such an error -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Where is the file /usr/include/linux/modversions.h ?
I just notice a problem : in this directory (kernel I just installed) : /lib/modules/2.6.0-test5-mm2/ i see this : lrwxr-xr-x1 root root1 2003-09-15 19:19 build - . it's strange ... what's wrong ? why does it point to . ?? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Where is the file /usr/include/linux/modversions.h ?
On Mon, Sep 15, 2003 at 07:25:10PM +0200, jjluza wrote: I just notice that there is an error with the link build : lrwxr-xr-x1 root root1 2003-09-15 19:19 build - . in the directory /lib/modules/2.6.0-test5-mm2/ it's strange ... it's the first time I notice such an error Why's that an error? Recursive symlinks like that are OK if a little unusual. -- Colin Watson [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Where is the file /usr/include/linux/modversions.h ?
it is the cause of the problem ! I don't know why this link his wrong by defaults, but when I make the link point to the right directory, all work fine ... raaah ! how can such a little error be so annoying ! :/ so, thank to all ;) Le Lundi 15 Septembre 2003 19:29, jjluza a écrit : I just notice a problem : in this directory (kernel I just installed) : /lib/modules/2.6.0-test5-mm2/ i see this : lrwxr-xr-x1 root root1 2003-09-15 19:19 build - . it's strange ... what's wrong ? why does it point to . ?? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Where is the file /usr/include/linux/modversions.h ?
hmm ... I don't know but in other directories I have in /lib/modules, build point to their kernel source directory. So I make it point to kernel source, and now, it works ... that's all I can tell you Le Lundi 15 Septembre 2003 20:03, Colin Watson a écrit : On Mon, Sep 15, 2003 at 07:25:10PM +0200, jjluza wrote: I just notice that there is an error with the link build : lrwxr-xr-x1 root root1 2003-09-15 19:19 build - . in the directory /lib/modules/2.6.0-test5-mm2/ it's strange ... it's the first time I notice such an error Why's that an error? Recursive symlinks like that are OK if a little unusual. -- Colin Watson [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]