Hello,
 
I'm trying to get my voodoo2 card to run on debian stable (with 
kernel version 2.4.25), but I'm having trouble compiling
the 3dfx.o driver.  I got the source code from the 
device3dfx-source package, but when I compile it, I get
this error message:
 
cc -D__SMP__ -DMODULE -D__KERNEL__  -I/usr/src/linux/include -O2 -m486 
-fomit-frame-pointer -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/linux/include/linux/highmem.h:5,
                 from /usr/src/linux/include/linux/vmalloc.h:8,
                 from /usr/src/linux/includeåsm/io.h:47,
                 from /usr/src/linux/includeåsm/pci.h:41,
                 from /usr/src/linux/include/linux/pci.h:679,
                 from 3dfx_driver.c:119:
/usr/src/linux/include/pgalloc.h: In function `get_pgd_fast':
/usr/src/linux/include/pgalloc.h:78: `cpu_data_Rsmp_60c5f91d'undeclared (first use in 
this function)
/usr/src/linux/include/pgalloc.h:78: (Each undeclared identifier is reported only once
/usr/src/linux/include/pgalloc.h:78: for each function it appears in.)
/usr/src/linux/include/pgalloc.h: In function `free_pgd_fast':
/usr/src/linux/include/pgalloc.h:89: `cpu_data_Rsmp_60c5f91d'undeclared (first use in 
this function)
/usr/src/linux/include/pgalloc.h: In function `pteªllocºne_fast':
/usr/src/linux/include/pgalloc.h:122: `cpu_data_Rsmp_60c5f91d'undeclared (first use in 
this function)
/usr/src/linux/include/pgalloc.h: In function `pte_free_fast':
/usr/src/linux/include/pgalloc.h:132: `cpu_data_Rsmp_60c5f91d'undeclared (first use in 
this function)
make: *** [3dfx.o] Error 1

I have my 2.4.25 source in /usr/src/linux and it is set to compile
an SMP enabled kernel... In the documentation to device3dfx-source it says to 
add the -D__SMP__ flag if the kernel uses SMP, which I did.

As a side not, my machine only has 1 processor.  I'm sort of new
to building kernels and the first time I did so, I left SMP on. 
I realized this later and tried to compile new kernel without SMP,
but I got lots of similiar errors to those above: ie, undefined
references that had smp or num_cpu's in them).  So I just left it
on... :)  
 
Does anyone have any ideas on how to get 3dfx.o to compile 
successfully?  

Oh, about a year ago I got my card to work on debian with a 
2.2.20 kernel.  However, since then I've wiped my harddrive and
reinstalled everything.  Back then I'm pretty sure I didn't have to
compile 3dfx.o, I just downloaded it from somewhere (possibly a package 
in debian?), but now I can't find it.  :(

Maybe somebody knows where I could get a precompiled binary?

Thanks for any help,

-- 
Broderick


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to