LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   PCI Modem installation help (https://www.linuxquestions.org/questions/linux-newbie-8/pci-modem-installation-help-69157/)

ksgill 06-30-2003 08:20 PM

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

yangkuo 06-30-2003 08:44 PM

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

ksgill 06-30-2003 09:08 PM

There is no /usr/src/linux directory although there is a directory called RPM which has some empty folders

yangkuo 06-30-2003 09:35 PM

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 ?

ksgill 06-30-2003 09:57 PM

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"

yangkuo 06-30-2003 11:38 PM

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

ksgill 07-01-2003 11:30 AM

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

yangkuo 07-01-2003 08:49 PM

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

ksgill 07-02-2003 11:21 PM

I couldnt find the kernel-source for 2.4.21-0.13mdk anywhere. Does anyone know where I can get it?

yangkuo 07-03-2003 06:47 AM

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

ksgill 07-03-2003 09:23 AM

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??

yangkuo 07-03-2003 10:25 AM

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

ksgill 07-03-2003 11:21 AM

hey thanks yangkuo. I am downloading kernel-source-2.4.21-0.13mdk.i586.rpm. i hope its the right one.
thanks again


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