LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-30-2003, 09:20 PM   #1
ksgill
Senior Member
 
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Ubuntu Jaunty (9.04)
Posts: 1,044

Rep: Reputation: 45
PCI Modem installation help


Hi,
I was trying to install winmodem on my machine. One of the steps is:

Review and edit (if need) 'Makefile'.

Note: Probably you will want to correct in Makefile path to your
local linux kernel header files:

KERNEL_INCLUDES=/path/to/linux/include

Another way is to pass command line the parameter while
running 'make':

$ make KERNEL_INCLUDES=/path/to/linux/include ...

My question is- how do i find where my linux header files are and what are header files?

thanks
 
Old 06-30-2003, 09:44 PM   #2
yangkuo
Member
 
Registered: Jun 2003
Distribution: Redhat9/Slackware9
Posts: 35

Rep: Reputation: 15
Re: PCI Modem installation help

Quote:
Originally posted by Jatt_thugz
Hi,
I was trying to install winmodem on my machine. One of the steps is:

Review and edit (if need) 'Makefile'.

Note: Probably you will want to correct in Makefile path to your
local linux kernel header files:

KERNEL_INCLUDES=/path/to/linux/include

Another way is to pass command line the parameter while
running 'make':

$ make KERNEL_INCLUDES=/path/to/linux/include ...

My question is- how do i find where my linux header files are and what are header files?

thanks

it is usually in /usr/src/linux

actually the 'linux' directory is usually a soft link to the actual linux kernel directory eg. linux-2.4.20-8
 
Old 06-30-2003, 10:08 PM   #3
ksgill
Senior Member
 
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Ubuntu Jaunty (9.04)
Posts: 1,044

Original Poster
Rep: Reputation: 45
There is no /usr/src/linux directory although there is a directory called RPM which has some empty folders
 
Old 06-30-2003, 10:35 PM   #4
yangkuo
Member
 
Registered: Jun 2003
Distribution: Redhat9/Slackware9
Posts: 35

Rep: Reputation: 15
Quote:
Originally posted by Jatt_thugz
There is no /usr/src/linux directory although there is a directory called RPM which has some empty folders
did u install the kernel-devel packages for your distribution ?
 
Old 06-30-2003, 10:57 PM   #5
ksgill
Senior Member
 
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Ubuntu Jaunty (9.04)
Posts: 1,044

Original Poster
Rep: Reputation: 45
I installed the kdevel packages and i still get this error

/usr/include/linux/version.h:3:2: #error "You should not include /usr/include/{l
inux,asm}/ header"
/usr/include/linux/version.h:4:2: #error "files directly for the compilation of
kernel modules."
/usr/include/linux/version.h:5:2: #error ""
/usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files fro
m a well-defined"
/usr/include/linux/version.h:7:2: #error "working kernel version (as recommended
by Linus Torvalds)"
/usr/include/linux/version.h:8:2: #error "These files are glibc internal and may
not match the"
/usr/include/linux/version.h:9:2: #error "currently running kernel. They should
only be"
/usr/include/linux/version.h:10:2: #error "included via other system header file
s - user space"
/usr/include/linux/version.h:11:2: #error "programs should not directly include
<linux/*.h> or"
/usr/include/linux/version.h:12:2: #error "<asm/*.h> as well."
/usr/include/linux/version.h:13:2: #error ""
/usr/include/linux/version.h:14:2: #error "To build kernel modules please do the
following:"
/usr/include/linux/version.h:15:2: #error ""
/usr/include/linux/version.h:16:2: #error " o Have the kernel sources installed"
/usr/include/linux/version.h:17:2: #error ""
/usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic link"
/usr/include/linux/version.h:19:2: #error " /lib/modules/`uname -r`/build exis
ts and points to"
 
Old 07-01-2003, 12:38 AM   #6
yangkuo
Member
 
Registered: Jun 2003
Distribution: Redhat9/Slackware9
Posts: 35

Rep: Reputation: 15
are you sure you pointed the make to the correct linux kernel path ?

the root of the kernel source is usually /usr/src/linux and not /usr/include/linux !

also make sure u install the kernel-devel which matches the kernel you use to boot into linux

u can check the kernel running by using the command

uname -r
 
Old 07-01-2003, 12:30 PM   #7
ksgill
Senior Member
 
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Ubuntu Jaunty (9.04)
Posts: 1,044

Original Poster
Rep: Reputation: 45
Okay...where do I get kernel-devel for mandrake 9.1. I couldnt find it on installation cd's.I only found kdevel package which I installed but there is still no /usr/src/linux folder. Only folder present is /usr/src/rpm/SOURCES which is empty. Here's the output for
uname -r command

2.4.21-0.13mdk
 
Old 07-01-2003, 09:49 PM   #8
yangkuo
Member
 
Registered: Jun 2003
Distribution: Redhat9/Slackware9
Posts: 35

Rep: Reputation: 15
Quote:
Originally posted by Jatt_thugz
Okay...where do I get kernel-devel for mandrake 9.1. I couldnt find it on installation cd's.I only found kdevel package which I installed but there is still no /usr/src/linux folder. Only folder present is /usr/src/rpm/SOURCES which is empty. Here's the output for
uname -r command

2.4.21-0.13mdk
if you don't have the Mandrake source CDs, then goto a site that host Mandrake packages, look for kernel-dev* packages with the EXACTLY same kernel version that u r currently running
 
Old 07-03-2003, 12:21 AM   #9
ksgill
Senior Member
 
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Ubuntu Jaunty (9.04)
Posts: 1,044

Original Poster
Rep: Reputation: 45
I couldnt find the kernel-source for 2.4.21-0.13mdk anywhere. Does anyone know where I can get it?
 
Old 07-03-2003, 07:47 AM   #10
yangkuo
Member
 
Registered: Jun 2003
Distribution: Redhat9/Slackware9
Posts: 35

Rep: Reputation: 15
Quote:
Originally posted by Jatt_thugz
I couldnt find the kernel-source for 2.4.21-0.13mdk anywhere. Does anyone know where I can get it?
i found this using google :-

http://rpms.mandrakeclub.com/rpms/ma...3mdk.i586.html

Last edited by yangkuo; 07-03-2003 at 07:52 AM.
 
Old 07-03-2003, 10:23 AM   #11
ksgill
Senior Member
 
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Ubuntu Jaunty (9.04)
Posts: 1,044

Original Poster
Rep: Reputation: 45
Well, apparently I have to become mandrakeclub member (and pay about $60/yr for that) in order to download the kernel-source from their website. I queried rpmfind but I couldnt find rpm for my version(they had sources for other mandrake versions). This really sucks, I thought they gave out source code for free??
 
Old 07-03-2003, 11:25 AM   #12
yangkuo
Member
 
Registered: Jun 2003
Distribution: Redhat9/Slackware9
Posts: 35

Rep: Reputation: 15
Quote:
Originally posted by Jatt_thugz
Well, apparently I have to become mandrakeclub member (and pay about $60/yr for that) in order to download the kernel-source from their website. I queried rpmfind but I couldnt find rpm for my version(they had sources for other mandrake versions). This really sucks, I thought they gave out source code for free??
i found a FTP location hosting the Mandrake distribution, the kernel source package (and all other RPMs are there)

ftp://ftp.sunet.se/pub/Linux/distrib.../Mandrake/RPMS
 
Old 07-03-2003, 12:21 PM   #13
ksgill
Senior Member
 
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Ubuntu Jaunty (9.04)
Posts: 1,044

Original Poster
Rep: Reputation: 45
hey thanks yangkuo. I am downloading kernel-source-2.4.21-0.13mdk.i586.rpm. i hope its the right one.
thanks again
 
  


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
difficulties in modem instalation Agere systems PCI soft modem mcstanoye SUSE / openSUSE 2 02-01-2007 11:48 AM
Atlantis Land PCI Modem Installation jackfigus Linux - Hardware 0 01-13-2005 05:11 AM
installation off a pci modem in suse 8.0 psycho_matic Linux - Hardware 1 07-10-2003 01:32 AM
Creative Labs Pci Modem Installation Help On Storm Linux 2000 kalabaw22b Linux - Software 1 10-14-2001 09:13 AM
found my pci modem in /cat /proc/pci... now what? bxb32001 Linux - Newbie 2 06-24-2001 12:43 AM


All times are GMT -5. The time now is 01:19 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