Click to See Complete Forum and Search --> : Kernel Headers?


Dark Ninja
06-16-2001, 01:02 AM
They are there...but they aren't...

I definitely found the kernel headers. They are in /usr/include/ (and there are sub folders, asm, linux, etc)

However, when I create a symbolic link in /usr/src like slapNUT told me to...well, here's what happens when I try to run ./build_module See if you can figure it out.


[root@localhost ltmodem-5.99b]# ./build_module


This is ltmodem-5.99b compiler and installer.

To make a record for trouble shooting purposes,
Start again with:
script ltrecord.txt
./build_module
Abort with Ctrl-C to terminate now.
or wait a few seconds


Drivers to be compiled are:
lt_modem.o and lt_serial.o

Checking for necessary consituents, exclusive of ISA modems:
PCI modem, then needed utilities, finally compiling resources.
If all is well,
supporting script will be written from the source/*.in files.

loading cache ./config.cache
Checking OS
Checking machine type
Scanning PCI bus for modem
+-----------------------------------------------------------------------------+ | WARNING: lspci not found or not executable - not checking for modem | +-----------------------------------------------------------------------------+ checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for a BSD compatible install... /usr/bin/install -c
checking for make... yes
checking for ld... yes
Checking for kernel headers
... in /usr/src/linux: nope
... in /usr/src/kernel-headers-2.4.3-20mdk: nope
... in /usr/src/linux-2.4.3: nope
... in /usr/src/linux-2.4.3-20mdk: nope
ERROR: No kernel headers found.
If you have kernel headers installed but configure did not
find them, please try --with-kernel=dir, otherwise please
install the kernel headers from your distribution.

Trying compilation of lt_modem.o and lt_serial.o

make: *** No targets specified and no makefile found. Stop.

With resources provided, as good a make as possible has been done.
Now looking for driver products:

Compilation of lt_modem.o failed!
Read Compile_failure from DOCs.

? Okay. There is definitely a symbolic link pointing to /usr/include/ in the /usr/src folder, and it is named linux. And the kernel headers are definitely installed. I am having major difficulty now, because I know everything is correct. Any kind of help that could get me on the right path would be appreciated.


Dark Ninja

slapNUT
06-16-2001, 03:34 AM
OK it looks like you are nearly there. You just need to fix that link to
point to /usr/include/linux not /usr/include.
rm /usr/src/linux
This gets rid of old link.
ln -s /usr/include/linux /usr/src/linux
This sets up the correct link.