Compile errors for rtl8139.c and pci-scan.c
Dev Nll <[email protected]> Fri, 18 Nov 2005 09:03:25 -0800 (PST)
| Newsgroups | gmane.linux.drivers.realtek.devel |
|---|---|
| Message-ID | <[email protected]> |
--===============1954835269==
Content-Type: multipart/alternative; boundary="0-1890693552-1132333405=:45528"
Content-Transfer-Encoding: 8bit
--0-1890693552-1132333405=:45528
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
The NIC is recognized and functional with the 8139too driver, but I am attempting to create the RealTek driver. OS is Debian Sarge, 2.4.27-2-386
I have downloaded the files:
kern_compat.h
pci-scan.c
pci-scan.h
rtl8139.c
and placed them in /usr/src/modlues/rtl8139/
For both rtl8139.c and pci-scan.c I get similar results, so here's what I did for rtl8139.c :
Per the comments at the tail of the file, I execute the command:
gcc -DMODULE -Wall -Wstrict-prototypes -O6 -c rtl8139.c
and receive several screens of errors like these snippets:
/usr/include/linux/fs.h:1322: error: syntax error before "generic_file_writev"
/usr/include/linux/fs.h:1323: error: syntax error before "loff_t"
/usr/include/linux/fs.h:1324: error: syntax error before "no_llseek"
/usr/include/linux/fs.h:1388: error: syntax error before "generic_read_dir"
/usr/include/linux/fs.h:1388: error: syntax error before "size_t"
/usr/include/linux/fs.h:1401: error: syntax error before "parent_ino"
/usr/include/linux/fs.h:1406: error: dereferencing pointer to incomplete type
In file included from /usr/include/asm/pci.h:7,
from /usr/include/linux/pci.h:704,
from rtl8139.c:117:
/usr/include/asm/pci.h:80: error: syntax error before "size_t"
In file included from /usr/include/linux/dma-mapping.h:13,
from /usr/include/asm-generic/pci-dma-compat.h:7,
from /usr/include/asm/pci.h:92,
from /usr/include/linux/pci.h:704,
from rtl8139.c:117:
rtl8139.c:1573: warning: `MOD_INC_USE_COUNT' is deprecated (declared at /usr/include/linux/module.h:482)
rtl8139.c:1609: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at /usr/include/linux/module.h:494)
/usr/include/linux/fs.h:382: error: storage size of `i_mtime' isn't known
/usr/include/linux/fs.h:383: error: storage size of `i_ctime' isn't known
/usr/include/linux/fs.h:515: error: storage size of `f_owner' isn't known
gcc is installed, but not the kernel sources...I don't think I need those, do I?
I am a Linux novice, so I'm trying to figure it all out.
If someone can point me in the right direction I would greatly appreciate it!
Thanks,
TK
---------------------------------
Yahoo! FareChase - Search multiple travel sites in one click.
--0-1890693552-1132333405=:45528
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
<DIV id=RTEContent>The NIC is recognized and functional with the 8139too driver, but I am attempting to create the RealTek driver. OS is Debian Sarge, 2.4.27-2-386</DIV> <DIV>I have downloaded the files:<BR> kern_compat.h<BR> pci-scan.c<BR> pci-scan.h<BR> rtl8139.c<BR>and placed them in /usr/src/modlues/rtl8139/</DIV> <DIV><BR>For both rtl8139.c and pci-scan.c I get similar results, so here's what I did for rtl8139.c :</DIV> <DIV>Per the comments at the tail of the file, I execute the command:<BR> gcc -DMODULE -Wall -Wstrict-prototypes -O6 -c rtl8139.c</DIV> <DIV>and receive several screens of errors like these snippets:</DIV> <DIV>/usr/include/linux/fs.h:1322: error: syntax error before "generic_file_writev"<BR>/usr/include/linux/fs.h:1323: error: syntax error before "loff_t"<BR>/usr/include/linux/fs.h:1324: error: syntax error before "no_llseek"
<BR>/usr/include/linux/fs.h:1388: error: syntax error before
"generic_read_dir"<BR>/usr/include/linux/fs.h:1388: error: syntax error before "size_t"<BR>/usr/include/linux/fs.h:1401: error: syntax error before "parent_ino"</DIV> <DIV>/usr/include/linux/fs.h:1406: error: dereferencing pointer to incomplete type<BR>In file included from /usr/include/asm/pci.h:7,<BR> from /usr/include/linux/pci.h:704,<BR> from rtl8139.c:117:</DIV> <DIV>/usr/include/asm/pci.h:80: error: syntax error before "size_t"<BR>In file included from /usr/include/linux/dma-mapping.h:13,<BR> from /usr/include/asm-generic/pci-dma-compat.h:7,<BR> &nbs
p; from
/usr/include/asm/pci.h:92,<BR> from /usr/include/linux/pci.h:704,<BR> from rtl8139.c:117:</DIV> <DIV>rtl8139.c:1573: warning: `MOD_INC_USE_COUNT' is deprecated (declared at /usr/include/linux/module.h:482)<BR>rtl8139.c:1609: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at /usr/include/linux/module.h:494)</DIV> <DIV>/usr/include/linux/fs.h:382: error: storage size of `i_mtime' isn't known<BR>/usr/include/linux/fs.h:383: error: storage size of `i_ctime' isn't known<BR>/usr/include/linux/fs.h:515: error: storage size of `f_owner' isn't known</DIV> <DIV><BR>gcc is installed, but not the kernel sources...I don't think I need those, do I?</DIV> <DIV>I am a Linux novice, so I'm trying to figur
e it all out. <BR>If someone can point me in the right direction I would greatly ap!
preciate
it!</DIV> <DIV>Thanks,<BR>TK</DIV><p>
<hr size=1> <a href="http://us.lrd.yahoo.com/_ylc=X3oDMTFqODRtdXQ4BF9TAzMyOTc1MDIEX3MDOTY2ODgxNjkEcG9zAzEEc2VjA21haWwtZm9vdGVyBHNsawNmYw--/SIG=110oav78o/**http%3a//farechase.yahoo.com/">Yahoo! FareChase - Search multiple travel sites in one click.</a>
--0-1890693552-1132333405=:45528--
--===============1954835269==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
realtek mailing list
[email protected]
http://www.scyld.com/mailman/listinfo/realtek
--===============1954835269==--