LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 08-08-2003, 08:03 PM   #1
Cruxus
Member
 
Registered: Aug 2003
Location: St. Louis, Missouri
Distribution: Debian 3.0r1 (2.4.18-5 i686)
Posts: 104

Rep: Reputation: 21
No Such File "/linux/modversions.h"


I am trying to compile a driver under Debian 3.0r1 woody with GCC 2.95. The Makefile is set to compile with this command line:

gcc -DMODULE -D__KERNEL__ -DDBC=0 -Wall -Wstrict-prototypes-06 -I/usr/src/linux -c -o [filename].o [filename].c

Sorry, it's not verbatim, but my Linux partition cannot get Internet access until this module compiles and insmods correctly. /usr/src/linux is a symbolic link to the kernel headers for my kernel: /usr/src/kernel-headers-2.4.18-686/include/linux.

Any code that has #include <linux/modversions.h> gives me a file-not-found error message; however, other headers like #include <linux/config.h> do not give me such an error. I looked in the appropriate directory, and this file is there, along with the other headers.

Anyway, trying this sample code gives me the same errors with that header:
Code:
#include <linux/config.h>
#include <linux/modversions.h>

int main(void)
{
    return 0;
}
Changing the include for modversions.h to #include "/usr/src/kernel-headers-2.4.18-686/include/linux/modversions.h" only creates file-not-found error messages for whatever modversions.h #include's. If I try compiling the driver with the #include for this header commented out, it will compile; but there will be unresolved external symbols when I try to use insmod on the module. I have also tried compiling this using gcc-3.0, but I get the same error. What should I do?
 
Old 08-08-2003, 11:26 PM   #2
dowmun
Member
 
Registered: Feb 2003
Posts: 119

Rep: Reputation: 15
missing modversions.h

Hi,
You might look at this post concerning someone who had a similar problem to yours:

http://mail-archives.engardelinux.or.../Feb/0012.html

I followed the link given:

ftp://ftp.binarytool.com/pub/linux/e...drv-source.tgz

and downloaded. After unzipping and untaring, the source directory had a "dummy" modversions.h file in it. I do not know if this will serve your purpose or not. I thought it might be worth looking at.
Good luck.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"bad interpreter : no such file or directory" when configure "flex" acer_peri Linux - Software 10 11-10-2010 01:19 AM
How to write a bash script to replace all "KH" to "K" in file ABC??? cqmyg5 Slackware 4 07-24-2007 09:00 AM
what is "S" instead of "X" in the file permission when i look at /usr/bin/chsh? Linux_interest Linux - Newbie 4 08-28-2004 09:22 AM
decrypting a file using "crypt" & "rot13" JAMZM101 Solaris / OpenSolaris 1 03-07-2004 09:32 AM
Can't locate object method "splitpath" via package "File::Spec" RobJohnston Linux - General 2 06-28-2003 09:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 04:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration