LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Errors compiling Highpoint drivers from source under Fedora... (https://www.linuxquestions.org/questions/linux-hardware-18/errors-compiling-highpoint-drivers-from-source-under-fedora-261482/)

The Belgain 12-01-2004 05:53 PM

Errors compiling Highpoint drivers from source under Fedora...
 
Hi there... first time posted, so please go easy on me :)

I have a Highpoint Rocket 1540 controller card. This is a 4-port SATA PCI card. The problem I'm having is that with the default driver which Fedora Core 3 uses with this card, the computer will hang at bootup if there are any drives connected to the card (the card does post and detect the drives properly in BIOS though). The computer boots up fine if there are no drives connected to the card.

So I tried to remedy this by compiling the drivers provided by highpoint, from source. This way I'll be sure that the right drivers are being used. I've followed the instructions in the readme included with the drivers: I've unpacked the linux kernel source (in directory /usr/src/linux-2.6.9), and have run "make oldconfig", which seems to work. When I try to run "make dep" (which is suggested in the highpoint readme) I get a "this is no longer necessary" message from the make process. Fair enough, I assume. When I run the make process for the Highpoint drivers, I get a bunch of compile errors, starting with "cannot find kernel header files" (the rest of the errors seem like they are related to this).

It does seem that some header files are missing. What am I doing wrong in building them?

Here are the errors I get when running the make for the Highpoint drivers:

Code:

[root@localhost hpt1540]# make KERLENDIR=/usr/src/linux-2.6.9
cat: /usr/src/linux/include/linux/version.h: No such file or directory
gcc -DDRIVER_VERSION=\"1.0\" -DLIST_H_INCLUDED -DMODVERSIONS -DMODULE -DLINUX -D_LINUX_ -D__KERNEL__=1 -DCONFIG_PCI  -Wall -O2 -Wstrict-prototypes -fomit-frame-pointer -I. -I/usr/src/linux/include -I/usr/src/linux/drivers/scsi -c hpt.c -o hpt.o
In file included from hpt.c:1:
/usr/include/linux/config.h:5:2: #error Incorrectly using glibc headers for a kernel module
In file included from hpt.c:8:
/usr/include/linux/modversions.h:1:2: #error Modules should never use kernel-headers system headers,
/usr/include/linux/modversions.h:2:2: #error but rather headers from the appropriate kernel package.
/usr/include/linux/modversions.h:3:2: #error Change -I/usr/src/linux/include (or similar) to
/usr/include/linux/modversions.h:4:2: #error -I/lib/modules/$(uname -r)/build/include
/usr/include/linux/modversions.h:5:2: #error to build against the currently-running kernel.
In file included from hpt.c:13:
/usr/include/linux/modversions.h:1:2: #error Modules should never use kernel-headers system headers,
/usr/include/linux/modversions.h:2:2: #error but rather headers from the appropriate kernel package.
/usr/include/linux/modversions.h:3:2: #error Change -I/usr/src/linux/include (or similar) to
/usr/include/linux/modversions.h:4:2: #error -I/lib/modules/$(uname -r)/build/include
/usr/include/linux/modversions.h:5:2: #error to build against the currently-running kernel.

Here's the output of lspci, in case it's relevant; this is an old p2 machine (it'll be used only as a fileserver...).

Code:

[root@localhost hpt1540]# /sbin/lspci
00:00.0 Host bridge: Intel Corp. 440LX/EX - 82443LX/EX Host bridge (rev 03)
00:01.0 PCI bridge: Intel Corp. 440LX/EX - 82443LX/EX AGP bridge (rev 03)
00:07.0 ISA bridge: Intel Corp. 82371AB/EB/MB PIIX4 ISA (rev 01)
00:07.1 IDE interface: Intel Corp. 82371AB/EB/MB PIIX4 IDE (rev 01)
00:07.2 USB Controller: Intel Corp. 82371AB/EB/MB PIIX4 USB (rev 01)
00:07.3 Bridge: Intel Corp. 82371AB/EB/MB PIIX4 ACPI (rev 01)
00:0d.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 42)
00:0f.0 RAID bus controller: Triones Technologies, Inc. HPT374 (rev 07)
00:0f.1 RAID bus controller: Triones Technologies, Inc. HPT374 (rev 07)
01:00.0 VGA compatible controller: ATI Technologies Inc 3D Rage Pro AGP 1X/2X (rev 5c)

Cheers for your help guys... really useful forums by the way. A wealth of useful info here, but I just can't seem to find anything which has helped me sort this out...


All times are GMT -5. The time now is 06:10 PM.