[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

device3dfx



I am having a difficult time compiling the device3dfx driver.

Part of the problem, I'm sure, is my lack of knowledge of how to
correctly setup the kernel-header and kernel-source directories
under Debian.

I am running kernel-2.2.19-ide.

I have

/usr/src/kernel-source-2.2.19
/usr/src/kernel-headers-2.2.19-ide
and  a link from /usr/src/linux to /usr/src/kernel-source-2.2.19

I issue  the following commands

KSRC=/usr/src/kernel-headers-2.2.19-ide ./buildpkg

from /usr/src/modules/device3dfx/debian

for one, it cannot find the Makefile since this is in kernel-sources
directory

The big problem is that I get the following compilation errors

make[1]: Entering directory `/usr/src/modules/device3dfx'
gcc -O2 -m486 -fomit-frame-pointer -DMODULE -D__KERNEL__
-I/usr/src/kernel-headers-2.2.19-ide/include -pipe -fno-strength-reduce
-malign-loops=2 -malign-jumps=2 -malign-functions=2 -c -o 3dfx.o
3dfx_driver.c
In file included from
/usr/src/kernel-headers-2.2.19-ide/include/linux/smp.h:11,
                 from
/usr/src/kernel-headers-2.2.19-ide/include/linux/sched.h:20,
                 from
/usr/src/kernel-headers-2.2.19-ide/include/linux/mm.h:4,
                 from 3dfx_driver.c:119:
/usr/src/kernel-headers-2.2.19-ide/include/asm/smp.h: In function
`hard_smp_processor_id':
/usr/src/kernel-headers-2.2.19-ide/include/asm/smp.h:209: `APIC_BASE'
undeclared (first use in this function)
/usr/src/kernel-headers-2.2.19-ide/include/asm/smp.h:209: (Each
undeclared identifier is reported only once
/usr/src/kernel-headers-2.2.19-ide/include/asm/smp.h:209: for each
function it appears in.)
/usr/src/kernel-headers-2.2.19-ide/include/asm/smp.h:209: `APIC_ID'
undeclared (first use in this function)
make[1]: *** [3dfx.o] Error 1
make[1]: Leaving directory `/usr/src/modules/device3dfx'
make: *** [build-stamp] Error 2

Can you tell me what I am doing incorrectly.

I have tried compile with setting KSRC=/usr/src/kernel-source-2.2.19.

This dies even quicker because in cannot find version.h

Thanks.

P.S. /usr/src/kernel-headers-2.2.19/include/asm is linked to
/usr/src/kernel-headers-2.2.19/asm-i386








Reply to: