nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   General Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=27)
-   -   cant compile nForce on debian (http://www.nvnews.net/vbulletin/showthread.php?t=30363)

LinHiNun 06-20-04 02:00 AM

cant compile nForce on debian
 
Hi I'm trying to compile the latest nForce driver on debian (IT's really knoppnix distro)

Anyhow, when I try to compile, I get the following errors:

make nvaudio.o
make[1]: Entering directory `/root/downloads/nforce/nvaudio'
cc -D__KERNEL__ -I/lib/modules/2.4.25-chw/build/include -Wall -Wstrict-prototypes -O -fno-strict-aliasing -mpreferred-stack-boundary=2 -march=i686 -falign-functions=4 -DMODULE -DDRIVERVER=\"0274\" -DREMAP_NEW -c -o nvhw.o nvhw.c
In file included from /usr/include/asm/smp.h:18,
from /usr/include/linux/smp.h:17,
from /usr/include/linux/sched.h:23,
from /usr/include/linux/module.h:10,
from nvhw.c:12:
/usr/include/asm/mpspec.h:6:25: mach_mpspec.h: No such file or directory
In file included from /usr/include/asm/smp.h:18,
from /usr/include/linux/smp.h:17,
from /usr/include/linux/sched.h:23,
from /usr/include/linux/module.h:10,
from nvhw.c:12:
/usr/include/asm/mpspec.h:8: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/include/asm/mpspec.h:9: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/include/asm/mpspec.h:10: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/include/asm/mpspec.h:12: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/include/asm/mpspec.h:19: error: `MAX_APICS' undeclared here (not in a function)
/usr/include/asm/mpspec.h:20: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/include/asm/mpspec.h:20: error: conflicting types for `mp_bus_id_to_type'
/usr/include/asm/mpspec.h:8: error: previous declaration of `mp_bus_id_to_type'
/usr/include/asm/mpspec.h:22: error: `MAX_IRQ_SOURCES' undeclared here (not in a function)
/usr/include/asm/mpspec.h:24: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/include/asm/mpspec.h:24: error: conflicting types for `mp_bus_id_to_pci_bus'
/usr/include/asm/mpspec.h:12: error: previous declaration of `mp_bus_id_to_pci_bus'

and many more. I'm trying to get the sound card to work. Anybody have any suggestions?

Thanks,
Ry

Thunderbird 06-20-04 11:00 AM

Re: cant compile nForce on debian
 
To compile the nvidia nforce package you need the kernel headers for your kernel. Currently the makefiles are using files from /usr/include/asm and /usr/include/linux but those headers are generic glibc ones which can't be used to compile kernel modules. Futher note that the i810 audio driver works too with your card, nvidia's own driver isn't much different. (it is a hacked i810 driver)


All times are GMT -5. The time now is 03:33 AM.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.