[realtek] pb compiling RTL8139

Abdon RAZAFIMAHEFA abrazafi@yahoo.com
Sun, 24 Dec 2000 13:11:26 -0800 (PST)


Hi All,

My kernel version is :  linux-2.2.15
             under Mandrake 7.1 (GPL)

My gcc version is     : 
 >gcc -v
  Reading specs from
/usr/lib/gcc-lib/i586-mandrake-linux/2.95.3/specs
  gcc version 2.95.3 19991030 (prerelease)

I am trying to install the :
  Realtek RTL8139(A/B/C/8130) PCI Fast Ethernet NIC
Card

I downloaded the following 
   pci-scan.h 
   pci-scan.c 
   kern_compat.h 
   

I compiled as mentioned from web page and 
I got bunch of errors like :

  
> gcc -DMODULE -D__KERNEL__ -DEXPORT_SYMTAB -Wall
-Wstrict-prototypes -O6 -c pci-scan.c
In file included from /usr/include/linux/fs.h:270,
                 from
/usr/include/linux/capability.h:13,
                 from /usr/include/linux/binfmts.h:5,
                 from /usr/include/linux/sched.h:8,
                 from /usr/include/linux/mm.h:4,
                 from pci-scan.c:60:
/usr/include/linux/hpfs_fs_i.h:5: parse error before
`ino_t'
/usr/include/linux/hpfs_fs_i.h:5: warning: no
semicolon at end of struct or union
/usr/include/linux/hpfs_fs_i.h:12: parse error before
`:'
In file included from /usr/include/linux/fs.h:272,
                 from
/usr/include/linux/capability.h:13,
                 from /usr/include/linux/binfmts.h:5,
                 from /usr/include/linux/sched.h:8,
                 from /usr/include/linux/mm.h:4,
                 from pci-scan.c:60:
/usr/include/linux/msdos_fs_i.h:36: parse error before
`off_t'
/usr/include/linux/msdos_fs_i.h:36: warning: no
semicolon at end of struct or union
In file included from /usr/include/linux/fs.h:273,
                 from
/usr/include/linux/capability.h:13,
                 from /usr/include/linux/binfmts.h:5,

......

/usr/include/asm/pgtable.h: In function
`flush_tlb_page':
/usr/include/asm/pgtable.h:67: dereferencing pointer
to incomplete type
/usr/include/asm/pgtable.h: In function
`flush_tlb_range':
/usr/include/asm/pgtable.h:74: dereferencing pointer
to incomplete type
/usr/include/asm/pgtable.h: In function `set_pgdir':
/usr/include/asm/pgtable.h:558: dereferencing pointer
to incomplete type
/usr/include/asm/pgtable.h:559: dereferencing pointer
to incomplete type
/usr/include/asm/pgtable.h:561: dereferencing pointer
to incomplete type
pci-scan.c: At top level:
/usr/include/linux/coda.h:261: storage size of
`va_atime' isn't known
/usr/include/linux/coda.h:262: storage size of
`va_mtime' isn't known
/usr/include/linux/coda.h:263: storage size of
`va_ctime' isn't known
/usr/include/linux/coda.h:563: storage size of `attr'
isn't known
/usr/include/linux/fs.h:439: storage size of `f_owner'
isn't known
/usr/include/linux/reiserfs_fs_sb.h:170: storage size
of `j_journal_list' isn't known
pci-scan.c: In function `strnlen':
/usr/include/asm/string.h:392: warning: `__res' might
be used uninitialized in this function
pci-scan.c: At top level:
/usr/include/linux/sched.h:288: storage size of
`times' isn't known


Thanks for you help.
Abdon.


__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/