hi, please help, I've got a huge headache in my eye
I cannot compile tulip.c on slackware 8.0 as per the instructions found on
http://www.scyld.com/expert/modules.html I download the files pci-scan.c pci-scan.h kern_compat.h and tulip.c and try:
gcc -DMODULE -D__KERNEL__ -I/usr/src/linux/net/ -Wall -Wstrict-prototypes -O6 -c tulip.c `[ -f /usr/include/linux/modversions.h ] && echo -DMODVERSIONS`
......and
gcc -DMODULE -D__KERNEL__ -O6 -c tulip.c
and variations of this found on several sites but what I get is this:
In file included from /usr/include/linux/fs.h:15,
from /usr/include/linux/capability.h:17,
from /usr/include/linux/binfmts.h:5,
from /usr/include/linux/sched.h:9,
from tulip.c:119:
/usr/include/linux/net.h:112: parse error before `ssize_t'
/usr/include/linux/net.h:112: warning: no semicolon at end of struct or union
In file included from /usr/include/linux/dcache.h:7,
from /usr/include/linux/fs.h:19,
from /usr/include/linux/capability.h:17,
from /usr/include/linux/binfmts.h:5,
from /usr/include/linux/sched.h:9,
from tulip.c:119:
/usr/include/linux/mount.h:30: parse error before `uid_t'
/usr/include/linux/mount.h:30: warning: no semicolon at end of struct or union
/usr/include/linux/mount.h: In function `mntget':
/usr/include/linux/mount.h:36: dereferencing pointer to incomplete type
/usr/include/linux/mount.h: In function `mntput':
/usr/include/linux/mount.h:45: dereferencing pointer to incomplete type
In file included from /usr/include/linux/string.h:25,
from /usr/include/linux/fs.h:23,
from /usr/include/linux/capability.h:17,
from /usr/include/linux/binfmts.h:5,
from /usr/include/linux/sched.h:9,
from tulip.c:119:
/usr/include/asm/string.h: At top level:
/usr/include/asm/string.h:47: parse error before `size_t'
/usr/include/asm/string.h:48: warning: function declaration isn't a prototype
/usr/include/asm/string.h: In function `strncpy':
/usr/include/asm/string.h:61: `src' undeclared (first use in this function)
/usr/include/asm/string.h:61: (Each undeclared identifier is reported only once
/usr/include/asm/string.h:61: for each function it appears in.)
/usr/include/asm/string.h:61: `dest' undeclared (first use in this function)
/usr/include/asm/string.h:61: `count' undeclared (first use in this function)
/usr/include/asm/string.h:63: warning: control reaches end of non-void function
/usr/include/asm/string.h: At top level:
/usr/include/asm/string.h:83: parse error before `size_t'
/usr/include/asm/string.h:84: warning: function declaration isn't a prototype
/usr/include/asm/string.h: In function `strncat':
/usr/include/asm/string.h:100: `src' undeclared (first use in this function)
/usr/include/asm/string.h:100: `dest' undeclared (first use in this function)
/usr/include/asm/string.h:100: `count' undeclared (first use in this function)
/usr/include/asm/string.h:103: warning: control reaches end of non-void function
/usr/include/asm/string.h: At top level:
/usr/include/asm/string.h:127: parse error before `size_t'
.......................etc
I've recompiled kernel 2.4.5 w/DECchip Tulip (dc21x4x) PCI support loaded as <M> module
cat /proc/modules shows:
tulip 38144 0 (unused)
via-rhine 10336 1
sb 7312 1
sb_lib 34224 0 [sb]
uart401 6256 0 [sb_lib]
sound 57680 1 [sb_lib uart401]
soundcore 3824 4 [sb_lib sound]
ppp_deflate 39008 0 (unused)
ppp_async 6864 0 (unused)
ppp_generic 19280 0 [ppp_deflate ppp_async]
slip 8416 0 (unused)
lp 6096 0 (unused)
parport_pc 19312 1
parport 23776 1 [lp parport_pc]
troubleshooting on the previous link suggests:
cd /usr/src/linux; make include/linux/version.h
but I get:
make: `include/linux/version.h' is up to date.
Once this guy that I used to work with came over, installed the driver, setup eth1 and had ipmasq'ing running in like 2 minutes. He did it so quickly that I couldn't keep track of what he did but this was on Slackware 7.0 running on kernel 2.2.13. I don't know why I wouldn't be able to set this up on kernel 2.2.19 or 2.4.5 or what else I need to do to get this to work.
I've searched some previous posts here but they all seem to suggest getting a different card, but this card was working on 2.2.13 so I know that I'm just doing something wrong. If anyone has gone through this and found a resolution I would be soooooo grateful for any info. lemme know if there is anymore info that I can provide.
sorry for the long post.
thx alot in advance