[realtek] Compile errors for rtl8139.c and pci-scan.c

Dev Nll devnll2002 at yahoo.com
Fri Nov 18 09:03:25 PST 2005


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.  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.scyld.com/pipermail/realtek/attachments/20051118/52e12126/attachment.html


More information about the realtek mailing list