Hi all, I am trying to get a second NIC running in my RH7.2 server. It is Rtl8139. I have now exhausted my pool of knowledge and turn to the collective wisdom of SLUG.
I am following the instructions on www.scyld.com (or at least I think I am) If I try to compile the module from the rtl8139.c file using: gcc -DMODULE -Wall -Wstrict-prototypes -O6 -c rtl8139.c I get: In file included from rtl8139.c:95: /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 an appropriate kernel-source 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. rtl8139.c:127:22: pci-scan.h: No such file or directory rtl8139.c:128:25: kern_compat.h: No such file or directory If I try to build from the SRPM using: rpm -i ftp://ftp.scyld.com/pub/network/netdrivers-3.1-1.src.rpm Seems to work fine Then: cd /usr/src/{redhat,TurboLinux,packages}/ rpm -bb SPECS/netdriver*.spec Gives these errors: pci-skeleton.c:140: parse error before string constant pci-skeleton.c:140: warning: type defaults to `int' in declaration of `MODULE_LICENSE' pci-skeleton.c:140: warning: function declaration isn't a prototype pci-skeleton.c:140: warning: data definition has no type or storage class make: *** [pci-skeleton.o] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.36936 (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.36936 (%build) If I go ahead anyway with: rpm -i --force RPMS/i386/netdrivers-3.1-1.i386.rpm I get: error: open of RPMS/i386/netdriver-3.1-1.i386.rpm failed: No such file or directory Probably becaue it aint there sue to the previous step. _________________________________________ Simon Bryan IT Manager OLMC Parramata ICQ#: 137562751 _________________________________________ -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
