Hello all.
First of all, very new to most of this. I program for a living (2 years out of college) so I'm familiar with building and all that on a *nix system, but not so much with the linux way of doing things (IE still learning RPMs, modules, and the like).
That out of the way. I wanted to start a linux box. So I jumped in and tried Debian, drowned fast, so went to a "simpler" distro : Fedora. Core 1 installed great, and I figured out how to install the drivers for the nVidia chipset that is on my motherboard. Used it for a week, and of course, core 2 is out, so I want to use that --- gotta have the newest! Decided to just wipe everything and install from scratch, great, fine. But now, when I try to build and install my nVidia nForce2 drivers, I get build errors. In this thread (I can't insert URLs cuz I'm new, but it's thread 187823) someone had the exact same error, but it was with the VIDEO driver, and no one actually solved his BUILD problems, he just used the nVidia installer script and everything worked out.
The error output is as follows. Errors are identical if I use the RPMs or just get the source tarball and try to do a make. NOTE that this is not the EXACT error output (I actually copied it from the above thread's post) but aside from teh version number of the directories is almost identical.
cc -c -Wall -DLINUX -DMODULE -DEXPORT_SYMTAB -D__KERNEL__ -O2 -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -DCONFIG_PM -falign-functions=4 -I/lib/modules/2.6.5-1.358/build/include nvenet.c
In file included from /lib/modules/2.6.5-1.358/build/include/linux/irq.h:20,
from /lib/modules/2.6.5-1.358/build/include/asm/hardirq.h:6,
from /lib/modules/2.6.5-1.358/build/include/linux/interrupt.h:11,
from nvenet.h:30,
from nvenet.c:22:
/lib/modules/2.6.5-1.358/build/include/asm/irq.h:16:25: irq_vectors.h: No such file or directory
In file included from /lib/modules/2.6.5-1.358/build/include/asm/hardirq.h:6,
from /lib/modules/2.6.5-1.358/build/include/linux/interrupt.h:11,
from nvenet.h:30,
from nvenet.c:22:
/lib/modules/2.6.5-1.358/build/include/linux/irq.h:70: error: `NR_IRQS' undeclared here (not in a function)
In file included from /lib/modules/2.6.5-1.358/build/include/linux/irq.h:72,
from /lib/modules/2.6.5-1.358/build/include/asm/hardirq.h:6,
from /lib/modules/2.6.5-1.358/build/include/linux/interrupt.h:11,
from nvenet.h:30,
from nvenet.c:22:
/lib/modules/2.6.5-1.358/build/include/asm/hw_irq.h:28: error: `NR_IRQ_VECTORS' undeclared here (not in a function)
/lib/modules/2.6.5-1.358/build/include/asm/hw_irq.h:32: error: `NR_IRQS' undeclared here (not in a function)
nvenet.c: In function `nvenet_open':
nvenet.c:692: warning: passing arg 2 of `request_irq' from incompatible pointer type
nvenet.c: In function `nvenet_remove':
nvenet.c:1214: error: structure has no member named `driver_data'
nvenet.c: In function `nvenet_reboot_handler':
nvenet.c:2360: warning: implicit declaration of function `pci_for_each_dev'
nvenet.c:2361: error: syntax error before '{' token
nvenet.c: At top level:
nvenet.c:2367: error: syntax error before '}' token
nvenet.c: In function `nvenet_proc_full_info_open':
nvenet.c:2605: warning: `MOD_INC_USE_COUNT' is deprecated (declared at /lib/modules/2.6.5-1.358/build/include/linux/module.h:501)
nvenet.c: In function `nvenet_proc_hardware_info_open':
nvenet.c:2645: warning: `MOD_INC_USE_COUNT' is deprecated (declared at /lib/modules/2.6.5-1.358/build/include/linux/module.h:501)
nvenet.c: In function `nvenet_proc_command_line_open':
nvenet.c:2686: warning: `MOD_INC_USE_COUNT' is deprecated (declared at /lib/modules/2.6.5-1.358/build/include/linux/module.h:501)
nvenet.c: In function `nvenet_proc_configuration_open':
nvenet.c:2727: warning: `MOD_INC_USE_COUNT' is deprecated (declared at /lib/modules/2.6.5-1.358/build/include/linux/module.h:501)
nvenet.c: In function `nvenet_proc_rx_stats_open':
nvenet.c:2762: warning: `MOD_INC_USE_COUNT' is deprecated (declared at /lib/modules/2.6.5-1.358/build/include/linux/module.h:501)
nvenet.c: In function `nvenet_proc_tx_stats_open':
nvenet.c:2804: warning: `MOD_INC_USE_COUNT' is deprecated (declared at /lib/modules/2.6.5-1.358/build/include/linux/module.h:501)
nvenet.c: In function `nvenet_proc_release':
nvenet.c:2821: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at /lib/modules/2.6.5-1.358/build/include/linux/module.h:513)
make[1]: *** [nvnet.o] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/nforce/nvnet'
make: *** [nvnet_make] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.89256 (%build)
I've found the files irq_vectors.h in other directories, and kinda hoped if I copied them into the include path everything would just magically work, but no such luck, just more random build errors. SO, my questions are :
1. Why do I get these errors with Core 2 and not Core 1?
2. Where are these missing include files, and why are they not in the include path?
3. How can I get around this?
Thanks for the help, and if I said anything that makes no sense, I apologize
Bob