LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 04-02-2007, 02:47 PM   #1
tkmsr
Member
 
Registered: Oct 2006
Distribution: Ubuntu,Open Suse,Debian,Mac OS X
Posts: 798

Rep: Reputation: 39
driver compilation problems


I had a new Lan Card I am using Fedora Core 6 kernel 2.6.18

the Chipset is RTL 8139D
since kudzu could not detect it I checked the required kernel modules they were missing compiling the drivers given by vendor
using the following command as root
gcc -DMODULE -Wall -Wstrict-prototypes -O6 -c rtl8139.c

gave me following errors



rtl8139.c:59:26: error: linux/config.h: No such file or directory
rtl8139.c:64:26: error: linux/module.h: No such file or directory
rtl8139.c:73:26: error: linux/string.h: No such file or directory
rtl8139.c:74:25: error: linux/timer.h: No such file or directory
rtl8139.c:76:26: error: linux/ioport.h: No such file or directory
rtl8139.c:77:26: error: linux/malloc.h: No such file or directory
rtl8139.c:78:29: error: linux/interrupt.h: No such file or directory
rtl8139.c:81:31: error: linux/etherdevice.h: No such file or directory
rtl8139.c:82:26: error: linux/skbuff.h: No such file or directory
rtl8139.c:83:70: error: asm/processor.h: No such file or directory
rtl8139.c:84:24: error: asm/bitops.h: No such file or directory
rtl8139.c:85:20: error: asm/io.h: No such file or directory
rtl8139.c:92:25: error: linux/delay.h: No such file or directory
rtl8139.c:176: error: expected specifier-qualifier-list before ‘u16’
rtl8139.c:188: warning: excess elements in struct initializer
rtl8139.c:188: warning: (near initialization for ‘pci_tbl[0]’)
rtl8139.c:188: warning: excess elements in struct initializer
rtl8139.c:188: warning: (near initialization for ‘pci_tbl[0]’)
rtl8139.c:188: warning: excess elements in struct initializer
rtl8139.c:188: warning: (near initialization for ‘pci_tbl[0]’)
rtl8139.c:188: warning: excess elements in struct initializer
rtl8139.c:188: warning: (near initialization for ‘pci_tbl[0]’)
rtl8139.c:188: warning: excess elements in struct initializer
rtl8139.c:188: warning: (near initialization for ‘pci_tbl[0]’)
rtl8139.c:188: warning: excess elements in struct initializer
rtl8139.c:188: warning: (near initialization for ‘pci_tbl[0]’)
rtl8139.c:190: warning: excess elements in struct initializer
rtl8139.c:190: warning: (near initialization for ‘pci_tbl[1]’)
rtl8139.c:190: warning: excess elements in struct initializer
rtl8139.c:190: warning: (near initialization for ‘pci_tbl[1]’)
rtl8139.c:190: warning: excess elements in struct initializer
rtl8139.c:190: warning: (near initialization for ‘pci_tbl[1]’)
rtl8139.c:190: warning: excess elements in struct initializer
rtl8139.c:190: warning: (near initialization for ‘pci_tbl[1]’)
rtl8139.c:190: warning: excess elements in struct initializer
rtl8139.c:190: warning: (near initialization for ‘pci_tbl[1]’)
rtl8139.c:190: warning: excess elements in struct initializer
rtl8139.c:190: warning: (near initialization for ‘pci_tbl[1]’)
rtl8139.c:192: warning: excess elements in struct initializer
rtl8139.c:192: warning: (near initialization for ‘pci_tbl[2]’)
rtl8139.c:192: warning: excess elements in struct initializer
rtl8139.c:192: warning: (near initialization for ‘pci_tbl[2]’)
rtl8139.c:192: warning: excess elements in struct initializer
rtl8139.c:192: warning: (near initialization for ‘pci_tbl[2]’)
rtl8139.c:192: warning: excess elements in struct initializer
rtl8139.c:192: warning: (near initialization for ‘pci_tbl[2]’)
rtl8139.c:192: warning: excess elements in struct initializer
rtl8139.c:192: warning: (near initialization for ‘pci_tbl[2]’)
rtl8139.c:192: warning: excess elements in struct initializer
rtl8139.c:192: warning: (near initialization for ‘pci_tbl[2]’)
rtl8139.c:274: error: field ‘timer’ has incomplete type
rtl8139.c:294: error: expected declaration specifiers or ‘...’ before string constant
rtl8139.c:294: warning: data definition has no type or storage class
rtl8139.c:294: warning: type defaults to ‘int’ in declaration of ‘MODULE_AUTHOR’
rtl8139.c:294: warning: function declaration isn’t a prototype
rtl8139.c:295: error: expected declaration specifiers or ‘...’ before string constant
rtl8139.c:295: warning: data definition has no type or storage class
rtl8139.c:295: warning: type defaults to ‘int’ in declaration of ‘MODULE_DESCRIPTION’
rtl8139.c:295: warning: function declaration isn’t a prototype
rtl8139.c:296: error: expected ‘)’ before string constant
rtl8139.c:297: error: expected ‘)’ before string constant
rtl8139.c:298: error: expected ‘)’ before string constant
rtl8139.c:299: error: expected ‘)’ before string constant
rtl8139.c:300: error: expected ‘)’ before string constant
rtl8139.c:313: warning: ‘struct pt_regs’ declared inside parameter list
rtl8139.c:313: warning: its scope is only this definition or declaration, which is probably not what you want
rtl8139.c:317: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ether_crc’
rtl8139.c: In function ‘rtl8139_probe’:
rtl8139.c:335: warning: implicit declaration of function ‘pcibios_present’
rtl8139.c:339: error: ‘u16’ undeclared (first use in this function)
rtl8139.c:339: error: (Each undeclared identifier is reported only once
rtl8139.c:339: error: for each function it appears in.)
rtl8139.c:339: error: expected ‘;’ before ‘vendor’
rtl8139.c:343: warning: implicit declaration of function ‘pcibios_find_class’
rtl8139.c:345: error: ‘PCIBIOS_SUCCESSFUL’ undeclared (first use in this function)
rtl8139.c:347: warning: implicit declaration of function ‘pcibios_read_config_word’
rtl8139.c:348: error: ‘vendor’ undeclared (first use in this function)
rtl8139.c:350: error: ‘device’ undeclared (first use in this function)
rtl8139.c:352: error: ‘struct pci_id_info’ has no member named ‘vendor_id’
rtl8139.c:353: error: ‘struct pci_id_info’ has no member named ‘vendor_id’
rtl8139.c:354: error: ‘struct pci_id_info’ has no member named ‘device_id_mask’
rtl8139.c:355: error: ‘struct pci_id_info’ has no member named ‘device_id’
rtl8139.c:357: error: ‘struct pci_id_info’ has no member named ‘vendor_id’
rtl8139.c:362: warning: implicit declaration of function ‘pci_find_slot’
rtl8139.c:362: warning: initialization makes pointer from integer without a cast
rtl8139.c:363: error: dereferencing pointer to incomplete type
rtl8139.c:364: error: dereferencing pointer to incomplete type
rtl8139.c:377: error: ‘struct pci_id_info’ has no member named ‘flags’
rtl8139.c:378: warning: implicit declaration of function ‘check_region’
rtl8139.c:378: error: ‘struct pci_id_info’ has no member named ‘io_size’
rtl8139.c:383: error: ‘pci_command’ undeclared (first use in this function)
rtl8139.c:384: error: ‘new_command’ undeclared (first use in this function)
rtl8139.c:384: error: ‘struct pci_id_info’ has no member named ‘flags’
rtl8139.c:386: warning: implicit declaration of function ‘printk’
rtl8139.c:386: error: ‘KERN_INFO’ undeclared (first use in this function)
rtl8139.c:386: error: expected ‘)’ before string constant
rtl8139.c:389: warning: implicit declaration of function ‘pcibios_write_config_word’
rtl8139.c:393: error: ‘struct pci_id_info’ has no member named ‘probe1’
rtl8139.c:396: error: ‘struct pci_id_info’ has no member named ‘flags’
rtl8139.c:397: error: ‘u8’ undeclared (first use in this function)
rtl8139.c:397: error: expected ‘;’ before ‘pci_latency’
rtl8139.c:398: warning: implicit declaration of function ‘pcibios_read_config_byte’
rtl8139.c:399: error: ‘pci_latency’ undeclared (first use in this function)
rtl8139.c:401: error: ‘KERN_NOTICE’ undeclared (first use in this function)
rtl8139.c:401: error: expected ‘)’ before string constant
rtl8139.c:404: warning: implicit declaration of function ‘pcibios_write_config_byte’
rtl8139.c: In function ‘rtl8129_probe1’:
rtl8139.c:424: error: ‘KERN_INFO’ undeclared (first use in this function)
rtl8139.c:424: error: expected ‘)’ before string constant
rtl8139.c:426: warning: implicit declaration of function ‘init_etherdev’
rtl8139.c:426: warning: assignment makes pointer from integer without a cast
rtl8139.c:428: error: expected ‘)’ before string constant
rtl8139.c:432: warning: implicit declaration of function ‘outb’
rtl8139.c:436: error: ‘u16’ undeclared (first use in this function)
rtl8139.c:436: error: expected expression before ‘)’ token
rtl8139.c:436: error: dereferencing pointer to incomplete type
rtl8139.c:439: error: dereferencing pointer to incomplete type
rtl8139.c:439: warning: implicit declaration of function ‘inb’
rtl8139.c:442: error: dereferencing pointer to incomplete type
rtl8139.c:443: error: dereferencing pointer to incomplete type
rtl8139.c:446: warning: implicit declaration of function ‘request_region’
rtl8139.c:446: error: ‘struct pci_id_info’ has no member named ‘io_size’
rtl8139.c:446: error: dereferencing pointer to incomplete type
rtl8139.c:448: error: dereferencing pointer to incomplete type
rtl8139.c:449: error: dereferencing pointer to incomplete type
rtl8139.c:452: warning: implicit declaration of function ‘kmalloc’
rtl8139.c:452: error: ‘GFP_KERNEL’ undeclared (first use in this function)
rtl8139.c:452: error: ‘GFP_DMA’ undeclared (first use in this function)
rtl8139.c:452: warning: assignment makes pointer from integer without a cast
rtl8139.c:453: warning: implicit declaration of function ‘memset’
rtl8139.c:453: warning: incompatible implicit declaration of built-in function ‘memset’
rtl8139.c:454: error: dereferencing pointer to incomplete type
rtl8139.c:473: error: expected ‘)’ before string constant
rtl8139.c:478: error: expected ‘)’ before string constant
rtl8139.c:504: error: expected ‘)’ before string constant
rtl8139.c:510: error: dereferencing pointer to incomplete type
rtl8139.c:511: error: dereferencing pointer to incomplete type
rtl8139.c:512: error: dereferencing pointer to incomplete type
rtl8139.c:513: error: dereferencing pointer to incomplete type
rtl8139.c:514: error: dereferencing pointer to incomplete type
rtl8139.c:515: error: dereferencing pointer to incomplete type
rtl8139.c: In function ‘read_eeprom’:
rtl8139.c:556: warning: implicit declaration of function ‘inl’
rtl8139.c: In function ‘mdio_read’:
rtl8139.c:609: error: dereferencing pointer to incomplete type
rtl8139.c:616: warning: implicit declaration of function ‘inw’
rtl8139.c:616: error: dereferencing pointer to incomplete type
rtl8139.c: In function ‘mdio_write’:
rtl8139.c:642: error: dereferencing pointer to incomplete type
rtl8139.c:648: warning: implicit declaration of function ‘outw’
rtl8139.c:648: error: dereferencing pointer to incomplete type
rtl8139.c: In function ‘rtl8129_open’:
rtl8139.c:675: error: dereferencing pointer to incomplete type
rtl8139.c:676: error: dereferencing pointer to incomplete type
rtl8139.c:682: warning: implicit declaration of function ‘request_irq’
rtl8139.c:682: error: dereferencing pointer to incomplete type
rtl8139.c:682: error: ‘SA_SHIRQ’ undeclared (first use in this function)
rtl8139.c:682: error: dereferencing pointer to incomplete type
rtl8139.c:686: error: ‘MOD_INC_USE_COUNT’ undeclared (first use in this function)
rtl8139.c:688: error: ‘GFP_KERNEL’ undeclared (first use in this function)
rtl8139.c:688: warning: assignment makes pointer from integer without a cast
rtl8139.c:689: warning: assignment makes pointer from integer without a cast
rtl8139.c:692: warning: implicit declaration of function ‘kfree’
rtl8139.c:694: error: ‘KERN_ERR’ undeclared (first use in this function)
rtl8139.c:694: error: expected ‘)’ before string constant
rtl8139.c:706: error: dereferencing pointer to incomplete type
rtl8139.c:710: warning: implicit declaration of function ‘outl’
rtl8139.c:717: error: ‘u16’ undeclared (first use in this function)
rtl8139.c:717: error: expected ‘;’ before ‘mii_reg5’
rtl8139.c:718: error: ‘mii_reg5’ undeclared (first use in this function)
rtl8139.c:724: error: ‘KERN_INFO’ undeclared (first use in this function)
rtl8139.c:724: error: expected ‘)’ before string constant
rtl8139.c:735: warning: implicit declaration of function ‘virt_to_bus’
rtl8139.c:743: error: dereferencing pointer to incomplete type
rtl8139.c:744: error: dereferencing pointer to incomplete type
rtl8139.c:745: error: dereferencing pointer to incomplete type
rtl8139.c:752: error: ‘KERN_DEBUG’ undeclared (first use in this function)
rtl8139.c:752: error: expected ‘)’ before string constant
rtl8139.c:759: warning: implicit declaration of function ‘init_timer’
rtl8139.c:760: error: ‘jiffies’ undeclared (first use in this function)
rtl8139.c:760: error: ‘HZ’ undeclared (first use in this function)
rtl8139.c:763: warning: implicit declaration of function ‘add_timer’
rtl8139.c: In function ‘rtl8129_timer’:
rtl8139.c:771: error: dereferencing pointer to incomplete type
rtl8139.c:772: error: dereferencing pointer to incomplete type
rtl8139.c:780: error: ‘KERN_INFO’ undeclared (first use in this function)
rtl8139.c:780: error: expected ‘)’ before string constant
rtl8139.c:787: error: ‘HZ’ undeclared (first use in this function)
rtl8139.c:792: error: ‘KERN_DEBUG’ undeclared (first use in this function)
rtl8139.c:792: error: expected ‘)’ before string constant
rtl8139.c:795: error: expected ‘)’ before string constant
rtl8139.c:797: error: expected ‘)’ before string constant
rtl8139.c:801: error: expected ‘)’ before string constant
rtl8139.c:806: error: ‘jiffies’ undeclared (first use in this function)
rtl8139.c: In function ‘rtl8129_tx_timeout’:
rtl8139.c:813: error: dereferencing pointer to incomplete type
rtl8139.c:814: error: dereferencing pointer to incomplete type
rtl8139.c:818: error: ‘KERN_WARNING’ undeclared (first use in this function)
rtl8139.c:818: error: expected ‘)’ before string constant
rtl8139.c:827: error: dereferencing pointer to incomplete type
rtl8139.c:829: error: ‘KERN_DEBUG’ undeclared (first use in this function)
rtl8139.c:829: error: expected ‘)’ before string constant
rtl8139.c:832: error: expected ‘)’ before string constant
rtl8139.c:844: error: dereferencing pointer to incomplete type
rtl8139.c:863: error: dereferencing pointer to incomplete type
rtl8139.c:864: warning: implicit declaration of function ‘memcpy’
rtl8139.c:864: warning: incompatible implicit declaration of built-in function ‘memcpy’
rtl8139.c:864: error: dereferencing pointer to incomplete type
rtl8139.c:864: error: dereferencing pointer to incomplete type
rtl8139.c:867: error: dereferencing pointer to incomplete type
rtl8139.c:869: error: dereferencing pointer to incomplete type
rtl8139.c:869: error: dereferencing pointer to incomplete type
rtl8139.c:876: error: dereferencing pointer to incomplete type
rtl8139.c:883: error: dereferencing pointer to incomplete type
rtl8139.c:883: error: ‘jiffies’ undeclared (first use in this function)
rtl8139.c: In function ‘rtl8129_init_ring’:
rtl8139.c:896: error: dereferencing pointer to incomplete type
rtl8139.c: In function ‘rtl8129_start_xmit’:
rtl8139.c:912: error: dereferencing pointer to incomplete type
rtl8139.c:913: error: dereferencing pointer to incomplete type
rtl8139.c:918: warning: implicit declaration of function ‘test_and_set_bit’
rtl8139.c:918: error: dereferencing pointer to incomplete type
rtl8139.c:919: error: ‘jiffies’ undeclared (first use in this function)
rtl8139.c:919: error: dereferencing pointer to incomplete type
rtl8139.c:919: error: ‘HZ’ undeclared (first use in this function)
rtl8139.c:929: error: dereferencing pointer to incomplete type
rtl8139.c:930: warning: incompatible implicit declaration of built-in function ‘memcpy’
rtl8139.c:930: error: dereferencing pointer to incomplete type
rtl8139.c:930: error: dereferencing pointer to incomplete type
rtl8139.c:933: error: dereferencing pointer to incomplete type
rtl8139.c:935: error: dereferencing pointer to incomplete type
rtl8139.c:935: error: dereferencing pointer to incomplete type
rtl8139.c:939: warning: implicit declaration of function ‘clear_bit’
rtl8139.c:939: error: dereferencing pointer to incomplete type
rtl8139.c:944: error: dereferencing pointer to incomplete type
rtl8139.c:946: error: ‘KERN_DEBUG’ undeclared (first use in this function)
rtl8139.c:946: error: expected ‘)’ before string constant
rtl8139.c: At top level:
rtl8139.c:954: warning: ‘struct pt_regs’ declared inside parameter list
rtl8139.c:955: error: conflicting types for ‘rtl8129_interrupt’
rtl8139.c:313: error: previous declaration of ‘rtl8129_interrupt’ was here
rtl8139.c: In function ‘rtl8129_interrupt’:
rtl8139.c:957: error: dereferencing pointer to incomplete type
rtl8139.c:960: error: dereferencing pointer to incomplete type
rtl8139.c:964: error: dereferencing pointer to incomplete type
rtl8139.c:965: error: ‘KERN_ERR’ undeclared (first use in this function)
rtl8139.c:965: error: expected ‘)’ before string constant
rtl8139.c:967: error: dereferencing pointer to incomplete type
rtl8139.c:984: error: ‘KERN_DEBUG’ undeclared (first use in this function)
rtl8139.c:984: error: expected ‘)’ before string constant
rtl8139.c:1009: error: ‘KERN_NOTICE’ undeclared (first use in this function)
rtl8139.c:1009: error: expected ‘)’ before string constant
rtl8139.c:1041: warning: implicit declaration of function ‘dev_kfree_skb’
rtl8139.c:1047: error: expected ‘)’ before string constant
rtl8139.c:1056: error: dereferencing pointer to incomplete type
rtl8139.c:1057: warning: implicit declaration of function ‘mark_bh’
rtl8139.c:1057: error: ‘NET_BH’ undeclared (first use in this function)
rtl8139.c:1067: error: expected ‘)’ before string constant
rtl8139.c:1100: error: ‘u32’ undeclared (first use in this function)
rtl8139.c:1100: error: expected ‘;’ before ‘pci_cmd_status’
rtl8139.c:1101: warning: implicit declaration of function ‘pcibios_read_config_dword’
rtl8139.c:1102: error: ‘pci_cmd_status’ undeclared (first use in this function)
rtl8139.c:1104: error: expected ‘)’ before string constant
rtl8139.c:1109: error: ‘KERN_WARNING’ undeclared (first use in this function)
rtl8139.c:1109: error: expected ‘)’ before string constant
rtl8139.c:1119: error: expected ‘)’ before string constant
rtl8139.c:1123: error: dereferencing pointer to incomplete type
rtl8139.c: In function ‘rtl8129_rx’:
rtl8139.c:1134: error: dereferencing pointer to incomplete type
rtl8139.c:1135: error: dereferencing pointer to incomplete type
rtl8139.c:1137: error: ‘u16’ undeclared (first use in this function)
rtl8139.c:1137: error: expected ‘;’ before ‘cur_rx’
rtl8139.c:1140: error: ‘KERN_DEBUG’ undeclared (first use in this function)
rtl8139.c:1140: error: expected ‘)’ before string constant
rtl8139.c:1146: error: ‘cur_rx’ undeclared (first use in this function)
rtl8139.c:1147: error: ‘u32’ undeclared (first use in this function)
rtl8139.c:1147: error: expected ‘;’ before ‘rx_status’
rtl8139.c:1148: error: ‘rx_status’ undeclared (first use in this function)
rtl8139.c:1152: error: expected ‘)’ before string constant
rtl8139.c:1154: error: expected ‘)’ before string constant
rtl8139.c:1161: error: ‘KERN_NOTICE’ undeclared (first use in this function)
rtl8139.c:1161: error: expected ‘)’ before string constant
rtl8139.c:1167: error: expected ‘)’ before string constant
rtl8139.c:1185: warning: implicit declaration of function ‘dev_alloc_skb’
rtl8139.c:1185: warning: assignment makes pointer from integer without a cast
rtl8139.c:1187: error: ‘KERN_WARNING’ undeclared (first use in this function)
rtl8139.c:1187: error: expected ‘)’ before string constant
rtl8139.c:1194: error: dereferencing pointer to incomplete type
rtl8139.c:1195: warning: implicit declaration of function ‘skb_reserve’
rtl8139.c:1198: warning: incompatible implicit declaration of built-in function ‘memcpy’
rtl8139.c:1198: warning: implicit declaration of function ‘skb_put’
rtl8139.c:1199: warning: passing argument 1 of ‘memcpy’ makes pointer from integer without a cast
rtl8139.c:1201: warning: passing argument 1 of ‘memcpy’ makes pointer from integer without a cast
rtl8139.c:1204: error: expected ‘)’ before string constant
rtl8139.c:1209: warning: incompatible implicit declaration of built-in function ‘memset’
rtl8139.c:1213: warning: implicit declaration of function ‘eth_copy_and_sum’
rtl8139.c:1221: error: dereferencing pointer to incomplete type
rtl8139.c:1221: warning: implicit declaration of function ‘eth_type_trans’
rtl8139.c:1222: warning: implicit declaration of function ‘netif_rx’
rtl8139.c:1233: error: expected ‘)’ before string constant
rtl8139.c: In function ‘rtl8129_close’:
rtl8139.c:1244: error: dereferencing pointer to incomplete type
rtl8139.c:1245: error: dereferencing pointer to incomplete type
rtl8139.c:1248: error: dereferencing pointer to incomplete type
rtl8139.c:1249: error: dereferencing pointer to incomplete type
rtl8139.c:1252: error: ‘KERN_DEBUG’ undeclared (first use in this function)
rtl8139.c:1252: error: expected ‘)’ before string constant
rtl8139.c:1265: warning: implicit declaration of function ‘del_timer’
rtl8139.c:1267: warning: implicit declaration of function ‘free_irq’
rtl8139.c:1267: error: dereferencing pointer to incomplete type
rtl8139.c:1282: error: ‘MOD_DEC_USE_COUNT’ undeclared (first use in this function)
rtl8139.c: In function ‘mii_ioctl’:
rtl8139.c:1289: error: dereferencing pointer to incomplete type
rtl8139.c:1290: error: ‘u16’ undeclared (first use in this function)
rtl8139.c:1290: error: ‘data’ undeclared (first use in this function)
rtl8139.c:1290: error: expected expression before ‘)’ token
rtl8139.c:1300: warning: implicit declaration of function ‘suser’
rtl8139.c: In function ‘rtl8129_get_stats’:
rtl8139.c:1312: error: dereferencing pointer to incomplete type
rtl8139.c:1313: error: dereferencing pointer to incomplete type
rtl8139.c:1315: error: dereferencing pointer to incomplete type
rtl8139.c:1320: warning: return from incompatible pointer type
rtl8139.c: At top level:
rtl8139.c:1327: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ether_crc’
rtl8139.c: In function ‘set_rx_mode’:
rtl8139.c:1349: error: dereferencing pointer to incomplete type
rtl8139.c:1350: error: ‘u32’ undeclared (first use in this function)
rtl8139.c:1350: error: expected ‘;’ before ‘mc_filter’
rtl8139.c:1354: error: ‘KERN_DEBUG’ undeclared (first use in this function)
rtl8139.c:1354: error: expected ‘)’ before string constant
rtl8139.c:1358: error: dereferencing pointer to incomplete type
rtl8139.c:1360: error: ‘KERN_NOTICE’ undeclared (first use in this function)
rtl8139.c:1360: error: expected ‘)’ before string constant
rtl8139.c:1362: error: ‘mc_filter’ undeclared (first use in this function)
rtl8139.c:1363: error: dereferencing pointer to incomplete type
rtl8139.c:1364: error: dereferencing pointer to incomplete type
rtl8139.c:1372: error: dereferencing pointer to incomplete type
rtl8139.c:1372: error: dereferencing pointer to incomplete type
rtl8139.c:1373: error: dereferencing pointer to incomplete type
rtl8139.c:1374: warning: implicit declaration of function ‘set_bit’
rtl8139.c:1374: warning: implicit declaration of function ‘ether_crc’
rtl8139.c:1374: error: dereferencing pointer to incomplete type
rtl8139.c: In function ‘cleanup_module’:
rtl8139.c:1397: error: dereferencing pointer to incomplete type
rtl8139.c:1399: warning: implicit declaration of function ‘unregister_netdev’
rtl8139.c:1400: warning: implicit declaration of function ‘release_region’
rtl8139.c:1400: error: dereferencing pointer to incomplete type
rtl8139.c:1401: error: ‘struct pci_id_info’ has no member named ‘io_size’



my problem is how to compile these drivers they do not have a make file and how to make this extra PCI lan card working on Fedora Core 6
 
Old 04-02-2007, 02:55 PM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,986

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
If I'm not mistaken,you shouldn't have to compile that driver module; it looks like a very common realtek chipset nic. That driver(8139too) has been part of the kernel for ages. Try manually loading the driver with:

# /sbin/modprobe 8139too
 
Old 04-02-2007, 03:57 PM   #3
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 78
Here is a generic kernel module Makefile for linux-2.6 kernels
Code:
ifndef KERNELDIR
        KERNELDIR  := /lib/modules/$(shell uname -r)/build
endif

obj-m := rtl8139.o

all:
        $(MAKE) -C $(KERNELDIR) M=$(PWD)

clean:
        $(MAKE) -C $(KERNELDIR) M=$(PWD) clean

install:
        $(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install
        /sbin/depmod -ae
But as mentioned above, you shouldn’t need to compile a third-party module since this driver has been in the vanilla kernel for awhile.
 
Old 11-01-2007, 03:56 PM   #4
tkmsr
Member
 
Registered: Oct 2006
Distribution: Ubuntu,Open Suse,Debian,Mac OS X
Posts: 798

Original Poster
Rep: Reputation: 39
hey this is Novemeber of year 2007 finally I got the solution to my problem which I was searching from february kernel 2.6.22.5 or above has a stable driver for this particular chipset names sc92031.c any one facing this problem can google it , it works now I faced problem with kernel 2.6.21 although it had lan the said driver but did not worked properly.
 
Old 11-02-2007, 12:11 AM   #5
Misbah Naveed
Member
 
Registered: Oct 2007
Posts: 41

Rep: Reputation: 15
Hi
how we will configure that we have installed the new driver for memory stick(USB)?
Thanks
 
Old 11-02-2007, 10:46 AM   #6
tkmsr
Member
 
Registered: Oct 2006
Distribution: Ubuntu,Open Suse,Debian,Mac OS X
Posts: 798

Original Poster
Rep: Reputation: 39
Quote:
Originally Posted by Misbah Naveed View Post
Hi
how we will configure that we have installed the new driver for memory stick(USB)?
Thanks
hey I would suggest you to ask this question in a new thread since it is an old thread so people might not notice more over the topic is different

now coming to your question I do not how to find the USB driver but I have a suggestion
type as root on command prompt
dmesg >> usb.txt
search for a line USB
USB Universal Host Controller Interface driver v2.3
might be you get there relevant thing

since I feel you are not able to use your USB in Linux so I am writing here
if your USB is not recognized in Linux
do one thing connect your USB to computer make sure the hardware settings on USB ,like lock or mode are set to read write then
boot linux login as root on command prompt type fdisk -l
you will some entries and at the last you will see
/dev/sda1 or so that will be your usb mount it

in a temporart folder then you can see the contents of usb I hope this should solve your problem in case you do not know how to mount then
type
mount -t vfat /dev/sda1 /mnt/
If command fails try
as root
mount -t msdos /dev/sda /mnt/

if this also fails try the command below

mount -t auto /dev/sda /mnt/
if this also fails try
mount -t ntfs /dev/sda /mnt/ probably your pen drive is NTFS partition
based

then do
#cd /mnt/
if you are able to see contents of your USB voilla you got it then after using type
#umount /mnt

then you can detatch it
http://www.linuxforums.org/forum/121743-post6.html

http://linux-hotplug.sourceforge.net/?selected=usb

http://www.usb.org/developers/docs.html

Last edited by tkmsr; 11-02-2007 at 11:00 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Logitech QuickCam driver compilation problems evilmonkey Linux - Hardware 5 02-04-2005 10:23 AM
usbvision driver compilation patthew Linux - Hardware 0 09-30-2004 08:23 PM
Kernel Driver compilation amish_geek Linux - Software 1 09-20-2004 08:18 AM
problems with driver compilation, kernel 2.4.22-10mdk MasterOfTheWind Linux - General 0 07-29-2004 08:12 AM
ALSA driver compilation Blek Linux - Hardware 0 05-12-2003 10:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration