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 |
Re: PCI Modem installation help
Quote:
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 |
There is no /usr/src/linux directory although there is a directory called RPM which has some empty folders
|
Quote:
|
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" |
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 |
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 |
Quote:
|
I couldnt find the kernel-source for 2.4.21-0.13mdk anywhere. Does anyone know where I can get it?
|
Quote:
http://rpms.mandrakeclub.com/rpms/ma...3mdk.i586.html |
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??
|
Quote:
ftp://ftp.sunet.se/pub/Linux/distrib.../Mandrake/RPMS |
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. |