LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-17-2006, 12:55 PM   #1
niwhsa
LQ Newbie
 
Registered: Dec 2006
Posts: 13

Rep: Reputation: 0
problems galore :(


hi guys, yesterday i installed UBUNTU EDGY on my system ...

during installation,a message came up saying that no network interfaces were detected
{but i have an ethernet card plugged into my pci slot }
it gave me 2 options..1 to go back and try again and the other to continue.. i tried the former a few times but to no avail..so i continued the installation..

after installation, i tried to download a driver for my ethernet card from the manufacturers website
and it asked me to compile the c code given..
i tried to compile using the regular
cc filename.c
and cc filename.c -ll

neither of them worked...it gave a lot of errors {atleast 50}

also my modem is a winmodem with support for using USB and ethernet .. but UBUNTU detects my modem as a USB device but i cannot connect it to interent...i feel i need a driver for that ..

so ppl please help me connect to the internet using UBUNTU....

TIA
 
Old 12-17-2006, 09:56 PM   #2
niwhsa
LQ Newbie
 
Registered: Dec 2006
Posts: 13

Original Poster
Rep: Reputation: 0
guys i need some help!!!
 
Old 12-17-2006, 11:27 PM   #3
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
It would help if you posted the model of your Ethernet card and the driver you tried to compile. There might be an easier way of installing than compiling from source. If not, you are probably missing the kernel source which is needed to compile a driver and/or the driver code is too old for your running kernel. Again -- post the card and someone should be able to help.

Winmodems are particularly nasty to get working on Linux since manufacturers don't usually release specs or drivers for them. Have you tried googling on the model? If you must use a modem it might be easier just to go out and buy a cheap external modem that connects via a serial port.
 
Old 12-17-2006, 11:40 PM   #4
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
It might also help to post the compiler errors.
 
Old 12-18-2006, 01:26 AM   #5
niwhsa
LQ Newbie
 
Registered: Dec 2006
Posts: 13

Original Poster
Rep: Reputation: 0
well yes the driver did have a C source file but it also had some make file as well...along with a read me { but the read me had no instruction about the compiling part }

well i have uploaded the complete driver folder here...

http://rapidshare.com/files/7957867/...m_lan.rar.html

from the driver folder, i have taken the subfolder LINUX and the other contents of it...

and the manufacturers website is www.techcomindia.com

and the drivers are available at

http://www.techcomindia.com/download_driver.asp
 
Old 12-18-2006, 03:44 AM   #6
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
File not found for first link.
 
Old 12-18-2006, 04:10 AM   #7
niwhsa
LQ Newbie
 
Registered: Dec 2006
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Wim Sturkenboom
File not found for first link.

oh sorry shud've cross checked

anyways here is another link

http://rapidshare.com/files/7970852/...m_lan.rar.html

hope it works this time around
 
Old 12-18-2006, 04:18 AM   #8
deroB
Member
 
Registered: Dec 2005
Location: Sydney, Australia
Distribution: Arch Linux
Posts: 208

Rep: Reputation: 30
Hi niwhsa,

I had a look at http://www.techcomindia.com and had a guess that this is your card.

if it is your card then download thisthen:

extract the sl_linux.tgz archive and follow the instructions in sc92031/readme.txt.

Quote:
Installation
============
1) Create a temporary directory:
# mkdir /temp

2) Change to the temporary directory:
#cd /temp

3) Copy driver (sl_linux.tgz) from CD-ROM to the temporary directory, and follow the commands:
# mount -t iso9660 /dev/cdrom /mnt
# cp /mnt/sl_linux.tgz /temp

4) untar the archive file:
# tar xzvf sl_linux.tgz
# cd sc92031

5) Compile the driver source files and it will generate sc92031.o, and
copy it to correct driver installation path (The installation directory
is different in different kernel versions. In 2.4.x kernel, the path is
/lib/modules/KERNEL_VERSION/kernel/drivers/net/, and in 2.2.x kernel,
the path is /lib/modules/KERNEL_VERSION/net/)
# make install

6) Check configuration file (/etc/modules.conf or /etc/conf.modules,it
depend on your Linux distribution) for loading kernel modules. Make sure
there is the following content in the configuration file, where # is
interface number :
alias eth# sc92031

7) Reboot now:
shutdown -r now

8) Install your driver module (If the driver module is in the wrong place,
an error message will appear, and say that can't find the driver
module):
insmod sc92031.o

8) Use ifconfig command to assign the IP address, where # is network
interface number:
ifconfig eth# <IP>

9) Check the interface works:
ping <remote_host_IP>
good luck

EDIT. ok, so it is you card, try the install notes as suggested

EDIT2. disregard instructions 1,2 and 3 above , just untar sl_linux.tar and run "#make install" from within the folder sc92031

Last edited by deroB; 12-18-2006 at 04:27 AM.
 
Old 12-18-2006, 05:01 AM   #9
niwhsa
LQ Newbie
 
Registered: Dec 2006
Posts: 13

Original Poster
Rep: Reputation: 0
well u r right abt the LAN card and the driver ...and i downloaded them and tried to compile the c file..
i used cc <filename>.c

and cc <filename>.c -ll

both of them did not work.. and i got the following errors..
Code:
sc92031.c:743: error: dereferencing pointer to incomplete type
sc92031.c:747: error: dereferencing pointer to incomplete type
sc92031.c:747: error: dereferencing pointer to incomplete type
sc92031.c:748: error: dereferencing pointer to incomplete type
sc92031.c:750: error: dereferencing pointer to incomplete type
sc92031.c:753: error: ‘crc’ undeclared (first use in this function)
sc92031.c:753: error: ‘ETH_ALEN’ undeclared (first use in this function)
sc92031.c:753: error: dereferencing pointer to incomplete type
sc92031.c:775: error: ‘struct silan_private’ has no member named ‘packet_filter’
sc92031.c:775: error: dereferencing pointer to incomplete type
sc92031.c:775: error: ‘IFF_BROADCAST’ undeclared (first use in this function)
sc92031.c:777: warning: passing argument 1 of ‘silan_rx_mode’ from incompatible pointer type
sc92031.c:778: error: ‘struct silan_private’ has no member named ‘packet_filter’
sc92031.c:778: error: dereferencing pointer to incomplete type
sc92031.c: At top level:
sc92031.c:785: warning: ‘struct net_device’ declared inside parameter list
sc92031.c:786: error: conflicting types for ‘silan_rx_mode’
sc92031.c:392: error: previous declaration of ‘silan_rx_mode’ was here
sc92031.c: In function ‘silan_rx_mode’:
sc92031.c:787: error: dereferencing pointer to incomplete type
sc92031.c:789: error: ‘uint32_t’ undeclared (first use in this function)
sc92031.c:789: error: expected ‘;’ before ‘rx_mode’
sc92031.c:791: error: ‘NULL’ undeclared (first use in this function)
sc92031.c:797: error: ‘struct silan_private’ has no member named ‘packet_filter’
sc92031.c:797: error: ‘IFF_PROMISC’ undeclared (first use in this function)
sc92031.c:798: error: ‘rx_mode’ undeclared (first use in this function)
sc92031.c:800: error: ‘struct silan_private’ has no member named ‘packet_filter’
sc92031.c:800: error: ‘IFF_ALLMULTI’ undeclared (first use in this function)
sc92031.c:800: error: ‘IFF_MULTICAST’ undeclared (first use in this function)
sc92031.c:803: error: ‘struct silan_private’ has no member named ‘packet_filter’
sc92031.c:803: error: ‘IFF_BROADCAST’ undeclared (first use in this function)
sc92031.c:806: error: ‘struct silan_private’ has no member named ‘rx_config’
sc92031.c:806: error: ‘struct silan_private’ has no member named ‘rx_config’
sc92031.c:807: error: ‘struct silan_private’ has no member named ‘rx_config’
sc92031.c:808: error: ‘struct silan_private’ has no member named ‘rx_config’
sc92031.c: At top level:
sc92031.c:817: warning: ‘struct net_device’ declared inside parameter list
sc92031.c:818: error: conflicting types for ‘silan_init_ring’
sc92031.c:375: error: previous declaration of ‘silan_init_ring’ was here
sc92031.c: In function ‘silan_init_ring’:
sc92031.c:819: error: dereferencing pointer to incomplete type
sc92031.c:822: error: ‘NULL’ undeclared (first use in this function)
sc92031.c:830: error: ‘struct tx_info’ has no member named ‘mapping’
sc92031.c:833: error: ‘struct silan_private’ has no member named ‘rx_ring_dma’
sc92031.c:834: error: ‘struct silan_private’ has no member named ‘media_duplex’
sc92031.c:835: error: ‘struct silan_private’ has no member named ‘media_link_speed’
sc92031.c: In function ‘silan_tx_clear’:
sc92031.c:848: error: ‘struct tx_info’ has no member named ‘mapping’
sc92031.c:849: error: ‘struct tx_info’ has no member named ‘mapping’
sc92031.c:850: error: dereferencing pointer to incomplete type
sc92031.c:850: error: ‘PCI_DMA_TODEVICE’ undeclared (first use in this function)
sc92031.c:851: error: ‘struct tx_info’ has no member named ‘mapping’
sc92031.c:857: error: ‘NULL’ undeclared (first use in this function)
sc92031.c: At top level:
sc92031.c:865: warning: ‘struct net_device’ declared inside parameter list
sc92031.c:866: error: conflicting types for ‘silan_hw_init’
sc92031.c:365: error: previous declaration of ‘silan_hw_init’ was here
sc92031.c: In function ‘silan_hw_init’:
sc92031.c:867: error: dereferencing pointer to incomplete type
sc92031.c:871: error: ‘NULL’ undeclared (first use in this function)
sc92031.c:892: error: ‘struct silan_private’ has no member named ‘rx_ring_dma’
sc92031.c:896: error: ‘struct silan_private’ has no member named ‘tx_bufs_dma’
sc92031.c:900: error: ‘struct silan_private’ has no member named ‘tx_early_ctrl’
sc92031.c:900: error: ‘struct silan_private’ has no member named ‘rx_early_ctrl’
sc92031.c:902: error: ‘struct silan_private’ has no member named ‘tx_early_ctrl’
sc92031.c:904: error: ‘struct silan_private’ has no member named ‘rx_early_ctrl’
sc92031.c:910: warning: passing argument 1 of ‘silan_config_media’ from incompatible pointer type
sc92031.c:914: error: ‘struct silan_private’ has no member named ‘rx_config’
sc92031.c:915: error: ‘struct silan_private’ has no member named ‘tx_config’
sc92031.c:917: error: ‘struct silan_private’ has no member named ‘rx_config’
sc92031.c:918: error: ‘struct silan_private’ has no member named ‘tx_config’
sc92031.c:921: error: ‘struct silan_private’ has no member named ‘rx_config’
sc92031.c:922: error: ‘struct silan_private’ has no member named ‘tx_config’
sc92031.c:925: error: ‘struct silan_private’ has no member named ‘rx_value’
sc92031.c:928: error: ‘struct silan_private’ has no member named ‘intr_status’
sc92031.c: At top level:
sc92031.c:936: warning: ‘struct net_device’ declared inside parameter list
sc92031.c:937: error: conflicting types for ‘silan_open’
sc92031.c:366: error: previous declaration of ‘silan_open’ was here
sc92031.c: In function ‘silan_open’:
sc92031.c:938: error: dereferencing pointer to incomplete type
sc92031.c:942: error: ‘NULL’ undeclared (first use in this function)
sc92031.c:945: error: dereferencing pointer to incomplete type
sc92031.c:945: error: ‘SA_SHIRQ’ undeclared (first use in this function)
sc92031.c:945: error: dereferencing pointer to incomplete type
sc92031.c:951: error: ‘struct silan_private’ has no member named ‘tx_bufs_dma’
sc92031.c:951: warning: assignment makes pointer from integer without a cast
sc92031.c:953: error: ‘struct silan_private’ has no member named ‘rx_ring_dma’
sc92031.c:953: warning: assignment makes pointer from integer without a cast
sc92031.c:956: error: dereferencing pointer to incomplete type
sc92031.c:960: error: ‘struct silan_private’ has no member named ‘tx_bufs_dma’
sc92031.c:963: error: ‘struct silan_private’ has no member named ‘rx_ring_dma’
sc92031.c:965: error: ‘ENOMEM’ undeclared (first use in this function)
sc92031.c:968: error: ‘struct silan_private’ has no member named ‘lock’
sc92031.c:970: warning: passing argument 1 of ‘silan_init_ring’ from incompatible pointer type
sc92031.c:971: warning: passing argument 1 of ‘silan_hw_init’ from incompatible pointer type
sc92031.c:973: error: ‘struct silan_private’ has no member named ‘lock’
sc92031.c: At top level:
sc92031.c:982: warning: ‘struct net_device’ declared inside parameter list
sc92031.c:983: error: conflicting types for ‘silan_tx_timeout’
sc92031.c:377: error: previous declaration of ‘silan_tx_timeout’ was here
sc92031.c: In function ‘silan_tx_timeout’:
sc92031.c:984: error: dereferencing pointer to incomplete type
sc92031.c:989: error: ‘NULL’ undeclared (first use in this function)
sc92031.c:993: error: ‘struct silan_private’ has no member named ‘tx_timeouts’
sc92031.c:994: error: ‘struct silan_private’ has no member named ‘tx_timeouts’
sc92031.c:1008: error: ‘struct silan_private’ has no member named ‘lock’
sc92031.c:1010: error: ‘struct silan_private’ has no member named ‘lock’
sc92031.c:1012: warning: passing argument 1 of ‘silan_hw_init’ from incompatible pointer type
sc92031.c:1013: warning: passing argument 1 of ‘silan_set_multi_list’ from incompatible pointer type
sc92031.c: At top level:
sc92031.c:1018: warning: ‘struct net_device’ declared inside parameter list
sc92031.c:1019: error: conflicting types for ‘silan_start_xmit’
sc92031.c:367: error: previous declaration of ‘silan_start_xmit’ was here
sc92031.c: In function ‘silan_start_xmit’:
sc92031.c:1020: error: dereferencing pointer to incomplete type
sc92031.c:1023: error: dereferencing pointer to incomplete type
sc92031.c:1025: error: ‘NULL’ undeclared (first use in this function)
sc92031.c:1026: error: ‘KERN_WARNING’ undeclared (first use in this function)
sc92031.c:1026: error: expected ‘)’ before string constant
sc92031.c:1034: error: ‘struct tx_info’ has no member named ‘mapping’
sc92031.c:1039: error: ‘ETH_ZLEN’ undeclared (first use in this function)
sc92031.c:1039: error: ‘struct silan_private’ has no member named ‘txenablepad’
sc92031.c:1041: warning: incompatible implicit declaration of built-in function ‘memcpy’
sc92031.c:1041: error: dereferencing pointer to incomplete type
sc92031.c:1042: warning: incompatible implicit declaration of built-in function ‘memset’
sc92031.c:1043: error: ‘struct silan_private’ has no member named ‘tx_bufs_dma’
sc92031.c:1046: error: dereferencing pointer to incomplete type
sc92031.c:1048: warning: incompatible implicit declaration of built-in function ‘memcpy’
sc92031.c:1048: error: dereferencing pointer to incomplete type
sc92031.c:1049: error: ‘struct silan_private’ has no member named ‘tx_bufs_dma’
sc92031.c:1052: error: ‘struct tx_info’ has no member named ‘mapping’
sc92031.c:1053: error: dereferencing pointer to incomplete type
sc92031.c:1053: error: ‘PCI_DMA_TODEVICE’ undeclared (first use in this function)
sc92031.c:1054: error: ‘struct tx_info’ has no member named ‘mapping’
sc92031.c:1064: error: dereferencing pointer to incomplete type
sc92031.c:1064: error: ‘jiffies’ undeclared (first use in this function)
sc92031.c:1066: error: ‘struct silan_private’ has no member named ‘lock’
sc92031.c:1072: error: ‘struct silan_private’ has no member named ‘lock’
sc92031.c: At top level:
sc92031.c:1081: warning: ‘struct net_device’ declared inside parameter list
sc92031.c:1082: error: conflicting types for ‘silan_tx_interrupt’
sc92031.c:378: error: previous declaration of ‘silan_tx_interrupt’ was here
sc92031.c: In function ‘silan_tx_interrupt’:
sc92031.c:1083: error: dereferencing pointer to incomplete type
sc92031.c:1089: error: ‘NULL’ undeclared (first use in this function)
sc92031.c:1114: error: ‘KERN_NOTICE’ undeclared (first use in this function)
sc92031.c:1114: error: expected ‘)’ before string constant
sc92031.c:1133: error: ‘struct tx_info’ has no member named ‘mapping’
sc92031.c:1134: error: ‘struct tx_info’ has no member named ‘mapping’
sc92031.c:1135: error: dereferencing pointer to incomplete type
sc92031.c:1135: error: ‘PCI_DMA_TODEVICE’ undeclared (first use in this function)
sc92031.c:1136: error: ‘struct tx_info’ has no member named ‘mapping’
sc92031.c:1148: error: ‘KERN_ERR’ undeclared (first use in this function)
sc92031.c:1148: error: expected ‘)’ before string constant
 
Old 12-18-2006, 05:03 AM   #10
niwhsa
LQ Newbie
 
Registered: Dec 2006
Posts: 13

Original Poster
Rep: Reputation: 0
contd from above reply ...

Code:
sc92031.c: At top level:
sc92031.c:1163: error: expected ‘)’ before ‘rx_status’
sc92031.c:1196: warning: ‘struct net_device’ declared inside parameter list
sc92031.c:1197: error: conflicting types for ‘silan_rx’
sc92031.c:368: error: previous declaration of ‘silan_rx’ was here
sc92031.c: In function ‘silan_rx’:
sc92031.c:1198: error: dereferencing pointer to incomplete type
sc92031.c:1203: error: ‘uint32_t’ undeclared (first use in this function)
sc92031.c:1203: error: expected ‘;’ before ‘rx_status’
sc92031.c:1210: error: ‘NULL’ undeclared (first use in this function)
sc92031.c:1218: error: ‘struct silan_private’ has no member named ‘rx_ring_dma’
sc92031.c:1220: error: ‘struct silan_private’ has no member named ‘rx_ring_dma’
sc92031.c:1229: error: ‘struct silan_private’ has no member named ‘rx_ring_dma’
sc92031.c:1242: error: ‘struct silan_private’ has no member named ‘lock’
sc92031.c:1245: error: ‘rx_status’ undeclared (first use in this function)
sc92031.c:1245: error: expected expression before ‘)’ token
sc92031.c:1274: error: ‘KERN_ERR’ undeclared (first use in this function)
sc92031.c:1274: error: expected ‘)’ before string constant
sc92031.c:1279: error: expected ‘)’ before string constant
sc92031.c:1284: warning: assignment makes pointer from integer without a cast
sc92031.c:1287: error: ‘KERN_WARNING’ undeclared (first use in this function)
sc92031.c:1287: error: expected ‘)’ before string constant
sc92031.c:1292: error: dereferencing pointer to incomplete type
sc92031.c:1297: warning: incompatible implicit declaration of built-in function ‘memcpy’
sc92031.c:1297: warning: passing argument 1 of ‘memcpy’ makes pointer from integer without a cast
sc92031.c:1298: warning: passing argument 1 of ‘memcpy’ makes pointer from integer without a cast
sc92031.c:1305: warning: incompatible implicit declaration of built-in function ‘memcpy’
sc92031.c:1305: warning: passing argument 1 of ‘memcpy’ makes pointer from integer without a cast
sc92031.c:1310: error: dereferencing pointer to incomplete type
sc92031.c:1311: error: dereferencing pointer to incomplete type
sc92031.c:1311: error: ‘jiffies’ undeclared (first use in this function)
sc92031.c:1326: error: ‘struct silan_private’ has no member named ‘lock’
sc92031.c: At top level:
sc92031.c:1338: warning: ‘struct net_device’ declared inside parameter list
sc92031.c:1339: error: conflicting types for ‘silan_mlink_intr’
sc92031.c:381: error: previous declaration of ‘silan_mlink_intr’ was here
sc92031.c: In function ‘silan_mlink_intr’:
sc92031.c:1340: error: dereferencing pointer to incomplete type
sc92031.c:1343: error: ‘uint32_t’ undeclared (first use in this function)
sc92031.c:1343: error: expected ‘;’ before ‘flow_cfg’
sc92031.c:1345: error: ‘NULL’ undeclared (first use in this function)
sc92031.c:1354: error: ‘KERN_INFO’ undeclared (first use in this function)
sc92031.c:1354: error: expected ‘)’ before string constant
sc92031.c:1361: error: ‘struct silan_private’ has no member named ‘rx_config’
sc92031.c:1362: error: ‘struct silan_private’ has no member named ‘tx_config’
sc92031.c:1363: error: ‘struct silan_private’ has no member named ‘rx_config’
sc92031.c:1364: error: ‘struct silan_private’ has no member named ‘tx_config’
sc92031.c:1369: error: expected ‘)’ before string constant
sc92031.c:1374: error: ‘struct silan_private’ has no member named ‘media_duplex’
sc92031.c:1374: error: ‘DUPLEX_FULL’ undeclared (first use in this function)
sc92031.c:1374: error: ‘DUPLEX_HALF’ undeclared (first use in this function)
sc92031.c:1375: error: ‘struct silan_private’ has no member named ‘media_link_speed’
sc92031.c:1375: error: ‘SPEED_100’ undeclared (first use in this function)
sc92031.c:1375: error: ‘SPEED_10’ undeclared (first use in this function)
sc92031.c:1377: error: expected ‘)’ before string constant
sc92031.c:1384: error: ‘struct silan_private’ has no member named ‘rx_config’
sc92031.c:1385: error: ‘struct silan_private’ has no member named ‘tx_config’
sc92031.c:1387: error: ‘struct silan_private’ has no member named ‘txenablepad’
sc92031.c:1388: error: ‘struct silan_private’ has no member named ‘tx_config’
sc92031.c:1390: error: ‘struct silan_private’ has no member named ‘media_link_speed’
sc92031.c:1391: error: ‘struct silan_private’ has no member named ‘tx_config’
sc92031.c:1394: warning: passing argument 1 of ‘silan_rx_mode’ from incompatible pointer type
sc92031.c:1397: warning: passing argument 1 of ‘silan_set_multi_list’ from incompatible pointer type
sc92031.c:1399: error: ‘struct silan_private’ has no member named ‘media_duplex’
sc92031.c:1400: error: ‘struct silan_private’ has no member named ‘rx_config’
sc92031.c:1401: error: ‘struct silan_private’ has no member named ‘tx_config’
sc92031.c:1402: error: ‘flow_cfg’ undeclared (first use in this function)
sc92031.c:1404: error: ‘struct silan_private’ has no member named ‘rx_config’
sc92031.c:1405: error: ‘struct silan_private’ has no member named ‘tx_config’
sc92031.c:1409: error: ‘struct silan_private’ has no member named ‘rx_config’
sc92031.c:1410: error: ‘struct silan_private’ has no member named ‘tx_config’
sc92031.c:1411: error: ‘struct silan_private’ has no member named ‘rx_config’
sc92031.c:1412: error: ‘struct silan_private’ has no member named ‘tx_config’
sc92031.c: At top level:
sc92031.c:1420: warning: ‘struct pt_regs’ declared inside parameter list
sc92031.c:1421: error: conflicting types for ‘silan_interrupt’
sc92031.c:370: error: previous declaration of ‘silan_interrupt’ was here
sc92031.c: In function ‘silan_interrupt’:
sc92031.c:1423: error: dereferencing pointer to incomplete type
sc92031.c:1427: error: ‘struct silan_private’ has no member named ‘intr_status’
sc92031.c:1429: error: ‘struct silan_private’ has no member named ‘intr_status’
sc92031.c:1429: error: ‘struct silan_private’ has no member named ‘intr_status’
sc92031.c:1432: error: ‘struct silan_private’ has no member named ‘intr_status’
sc92031.c:1436: error: ‘struct silan_private’ has no member named ‘intr_status’
sc92031.c:1437: error: ‘struct silan_private’ has no member named ‘lock’
sc92031.c:1438: warning: passing argument 1 of ‘silan_tx_interrupt’ from incompatible pointer type
sc92031.c:1439: error: ‘struct silan_private’ has no member named ‘lock’
sc92031.c:1442: error: ‘struct silan_private’ has no member named ‘intr_status’
sc92031.c:1443: warning: passing argument 1 of ‘silan_rx’ from incompatible pointer type
sc92031.c:1447: error: ‘struct silan_private’ has no member named ‘intr_status’
sc92031.c:1448: warning: passing argument 1 of ‘silan_mlink_intr’ from incompatible pointer type
sc92031.c:1451: error: ‘struct silan_private’ has no member named ‘intr_status’
sc92031.c:1452: error: ‘KERN_WARNING’ undeclared (first use in this function)
sc92031.c:1452: error: expected ‘)’ before string constant
sc92031.c:1456: error: ‘struct silan_private’ has no member named ‘intr_status’
sc92031.c:1457: error: expected ‘)’ before string constant
sc92031.c:1462: error: ‘struct silan_private’ has no member named ‘intr_status’
sc92031.c: At top level:
sc92031.c:1472: warning: ‘struct net_device’ declared inside parameter list
sc92031.c:1473: error: conflicting types for ‘silan_close’
sc92031.c:369: error: previous declaration of ‘silan_close’ was here
sc92031.c: In function ‘silan_close’:
sc92031.c:1474: error: dereferencing pointer to incomplete type
sc92031.c:1478: error: ‘NULL’ undeclared (first use in this function)
sc92031.c:1484: error: ‘struct silan_private’ has no member named ‘lock’
sc92031.c:1486: error: ‘struct silan_private’ has no member named ‘rx_config’
sc92031.c:1487: error: ‘struct silan_private’ has no member named ‘tx_config’
sc92031.c:1488: error: ‘struct silan_private’ has no member named ‘rx_config’
sc92031.c:1489: error: ‘struct silan_private’ has no member named ‘tx_config’
sc92031.c:1493: error: ‘struct silan_private’ has no member named ‘lock’
sc92031.c:1496: error: dereferencing pointer to incomplete type
sc92031.c:1500: error: ‘struct silan_private’ has no member named ‘rx_ring_dma’
sc92031.c:1502: error: ‘struct silan_private’ has no member named ‘rx_ring_dma’
sc92031.c:1504: error: ‘struct silan_private’ has no member named ‘tx_bufs_dma’
sc92031.c: At top level:
sc92031.c:1557: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘silan_remove’
sc92031.c:1586: warning: ‘struct net_device’ declared inside parameter list
sc92031.c:1587: error: conflicting types for ‘silan_get_stats’
sc92031.c:389: error: previous declaration of ‘silan_get_stats’ was here
sc92031.c: In function ‘silan_get_stats’:
sc92031.c:1588: error: dereferencing pointer to incomplete type
sc92031.c:1594: error: ‘struct silan_private’ has no member named ‘lock’
sc92031.c:1599: error: ‘struct silan_private’ has no member named ‘rx_value’
sc92031.c:1600: error: ‘struct silan_private’ has no member named ‘rx_value’
sc92031.c:1602: error: ‘struct silan_private’ has no member named ‘rx_value’
sc92031.c:1605: error: ‘struct silan_private’ has no member named ‘lock’
sc92031.c: At top level:
sc92031.c:1614: warning: ‘struct ethtool_cmd’ declared inside parameter list
sc92031.c:1615: error: conflicting types for ‘Mii_ethtool_gset’
sc92031.c:383: error: previous declaration of ‘Mii_ethtool_gset’ was here
sc92031.c: In function ‘Mii_ethtool_gset’:
sc92031.c:1618: error: dereferencing pointer to incomplete type
sc92031.c:1621: error: dereferencing pointer to incomplete type
sc92031.c:1625: error: dereferencing pointer to incomplete type
sc92031.c:1628: error: dereferencing pointer to incomplete type
sc92031.c:1631: error: dereferencing pointer to incomplete type
sc92031.c:1634: error: dereferencing pointer to incomplete type
sc92031.c:1637: error: dereferencing pointer to incomplete type
sc92031.c:1640: error: dereferencing pointer to incomplete type
sc92031.c:1641: error: dereferencing pointer to incomplete type
sc92031.c:1641: error: ‘AUTONEG_ENABLE’ undeclared (first use in this function)
sc92031.c:1643: error: dereferencing pointer to incomplete type
sc92031.c:1643: error: ‘AUTONEG_DISABLE’ undeclared (first use in this function)
sc92031.c:1648: error: dereferencing pointer to incomplete type
sc92031.c:1648: error: ‘SPEED_100’ undeclared (first use in this function)
sc92031.c:1648: error: ‘SPEED_10’ undeclared (first use in this function)
sc92031.c:1649: error: dereferencing pointer to incomplete type
sc92031.c:1649: error: ‘DUPLEX_FULL’ undeclared (first use in this function)
sc92031.c:1649: error: ‘DUPLEX_HALF’ undeclared (first use in this function)
sc92031.c: At top level:
sc92031.c:1656: warning: ‘struct ethtool_cmd’ declared inside parameter list
sc92031.c:1657: error: conflicting types for ‘Mii_ethtool_sset’
sc92031.c:384: error: previous declaration of ‘Mii_ethtool_sset’ was here
sc92031.c: In function ‘Mii_ethtool_sset’:
sc92031.c:1658: error: ‘uint32_t’ undeclared (first use in this function)
sc92031.c:1658: error: expected ‘;’ before ‘temp’
sc92031.c:1660: error: dereferencing pointer to incomplete type
sc92031.c:1660: error: ‘SPEED_10’ undeclared (first use in this function)
sc92031.c:1660: error: dereferencing pointer to incomplete type
sc92031.c:1660: error: ‘SPEED_100’ undeclared (first use in this function)
sc92031.c:1661: error: ‘EINVAL’ undeclared (first use in this function)
sc92031.c:1663: error: dereferencing pointer to incomplete type
sc92031.c:1663: error: ‘DUPLEX_HALF’ undeclared (first use in this function)
sc92031.c:1663: error: dereferencing pointer to incomplete type
sc92031.c:1663: error: ‘DUPLEX_FULL’ undeclared (first use in this function)
sc92031.c:1666: error: dereferencing pointer to incomplete type
sc92031.c:1669: error: dereferencing pointer to incomplete type
sc92031.c:1669: error: ‘AUTONEG_DISABLE’ undeclared (first use in this function)
sc92031.c:1669: error: dereferencing pointer to incomplete type
sc92031.c:1669: error: ‘AUTONEG_ENABLE’ undeclared (first use in this function)
sc92031.c:1672: error: dereferencing pointer to incomplete type
sc92031.c:1673: error: dereferencing pointer to incomplete type
sc92031.c:1676: error: ‘temp’ undeclared (first use in this function)
sc92031.c:1677: error: ‘temp1’ undeclared (first use in this function)
sc92031.c:1681: error: dereferencing pointer to incomplete type
sc92031.c:1683: error: ‘KERN_INFO’ undeclared (first use in this function)
sc92031.c:1683: error: expected ‘)’ before string constant
sc92031.c:1688: error: expected ‘)’ before string constant
sc92031.c:1693: error: expected ‘)’ before string constant
sc92031.c:1698: error: expected ‘)’ before string constant
sc92031.c:1703: error: expected ‘)’ before string constant
sc92031.c: At top level:
sc92031.c:1719: warning: ‘struct net_device’ declared inside parameter list
sc92031.c:1720: error: conflicting types for ‘Mii_link_ok’
sc92031.c:385: error: previous declaration of ‘Mii_link_ok’ was here
sc92031.c: In function ‘Mii_restart’:
sc92031.c:1743: error: ‘EINVAL’ undeclared (first use in this function)
sc92031.c: At top level:
sc92031.c:1771: warning: ‘struct ethtool_wolinfo’ declared inside parameter list
sc92031.c:1771: warning: ‘struct net_device’ declared inside parameter list
sc92031.c: In function ‘netdev_get_wol’:
sc92031.c:1773: error: ‘u32’ undeclared (first use in this function)
sc92031.c:1773: error: expected ‘;’ before ‘pmconfig’
sc92031.c:1775: error: dereferencing pointer to incomplete type
sc92031.c:1776: error: dereferencing pointer to incomplete type
sc92031.c:1779: error: ‘pmconfig’ undeclared (first use in this function)
sc92031.c:1780: error: dereferencing pointer to incomplete type
sc92031.c:1783: error: dereferencing pointer to incomplete type
sc92031.c:1786: error: dereferencing pointer to incomplete type
sc92031.c: At top level:
sc92031.c:1795: warning: ‘struct ethtool_wolinfo’ declared inside parameter list
sc92031.c:1795: warning: ‘struct net_device’ declared inside parameter list
sc92031.c: In function ‘netdev_set_wol’:
sc92031.c:1797: error: dereferencing pointer to incomplete type
sc92031.c:1799: error: ‘u32’ undeclared (first use in this function)
sc92031.c:1799: error: expected ‘;’ before ‘pmconfig’
sc92031.c:1802: error: ‘pmconfig’ undeclared (first use in this function)
sc92031.c:1804: error: dereferencing pointer to incomplete type
sc92031.c:1807: error: dereferencing pointer to incomplete type
sc92031.c:1810: error: dereferencing pointer to incomplete type
sc92031.c: At top level:
sc92031.c:1821: warning: ‘struct net_device’ declared inside parameter list
sc92031.c:1823: error: conflicting types for ‘netdev_ethtool_ioctl’
sc92031.c:388: error: previous declaration of ‘netdev_ethtool_ioctl’ was here
sc92031.c: In function ‘netdev_ethtool_ioctl’:
sc92031.c:1824: error: dereferencing pointer to incomplete type
sc92031.c:1826: error: ‘uint32_t’ undeclared (first use in this function)
sc92031.c:1826: error: expected ‘;’ before ‘ethcmd’
sc92031.c:1829: error: ‘ethcmd’ undeclared (first use in this function)
sc92031.c:1829: error: ‘u32’ undeclared (first use in this function)
sc92031.c:1829: error: expected expression before ‘)’ token
sc92031.c:1830: error: ‘EFAULT’ undeclared (first use in this function)
sc92031.c:1834: error: ‘ETHTOOL_GDRVINFO’ undeclared (first use in this function)
sc92031.c:1835: error: variable ‘info’ has initializer but incomplete type
sc92031.c:1835: warning: excess elements in struct initializer
sc92031.c:1835: warning: (near initialization for ‘info’)
sc92031.c:1835: error: storage size of ‘info’ isn’t known
sc92031.c:1836: warning: incompatible implicit declaration of built-in function ‘strcpy’
sc92031.c:1838: error: dereferencing pointer to incomplete type
sc92031.c:1844: error: ‘ETHTOOL_GSET’ undeclared (first use in this function)
sc92031.c:1845: error: variable ‘ecmd’ has initializer but incomplete type
sc92031.c:1845: warning: excess elements in struct initializer
sc92031.c:1845: warning: (near initialization for ‘ecmd’)
sc92031.c:1845: error: storage size of ‘ecmd’ isn’t known
sc92031.c:1846: error: ‘struct silan_private’ has no member named ‘lock’
sc92031.c:1848: error: ‘np’ undeclared (first use in this function)
sc92031.c:1854: error: ‘ETHTOOL_SSET’ undeclared (first use in this function)
sc92031.c:1855: error: variable ‘ecmd’ has initializer but incomplete type
sc92031.c:1855: warning: excess elements in struct initializer
sc92031.c:1855: warning: (near initialization for ‘ecmd’)
sc92031.c:1855: error: storage size of ‘ecmd’ isn’t known
sc92031.c:1858: error: ‘struct silan_private’ has no member named ‘lock’
sc92031.c:1860: error: ‘struct silan_private’ has no member named ‘lock’
sc92031.c:1864: error: ‘ETHTOOL_GLINK’ undeclared (first use in this function)
sc92031.c:1865: error: variable ‘edata’ has initializer but incomplete type
sc92031.c:1865: warning: excess elements in struct initializer
sc92031.c:1865: warning: (near initialization for ‘edata’)
sc92031.c:1865: error: storage size of ‘edata’ isn’t known
sc92031.c:1867: warning: passing argument 1 of ‘Mii_link_ok’ from incompatible pointer type
sc92031.c:1873: error: ‘ETHTOOL_NWAY_RST’ undeclared (first use in this function)
sc92031.c:1878: error: ‘ETHTOOL_GWOL’ undeclared (first use in this function)
sc92031.c:1879: error: variable ‘wol’ has initializer but incomplete type
sc92031.c:1879: warning: excess elements in struct initializer
sc92031.c:1879: warning: (near initialization for ‘wol’)
sc92031.c:1879: error: storage size of ‘wol’ isn’t known
sc92031.c:1880: error: ‘struct silan_private’ has no member named ‘lock’
sc92031.c:1882: warning: passing argument 1 of ‘netdev_get_wol’ from incompatible pointer type
sc92031.c:1883: error: ‘struct silan_private’ has no member named ‘lock’
sc92031.c:1889: error: ‘ETHTOOL_SWOL’ undeclared (first use in this function)
sc92031.c:1890: error: variable ‘wol’ has initializer but incomplete type
sc92031.c:1890: warning: excess elements in struct initializer
sc92031.c:1890: warning: (near initialization for ‘wol’)
sc92031.c:1890: error: storage size of ‘wol’ isn’t known
sc92031.c:1894: error: ‘struct silan_private’ has no member named ‘lock’
sc92031.c:1895: warning: passing argument 1 of ‘netdev_set_wol’ from incompatible pointer type
sc92031.c:1896: error: ‘struct silan_private’ has no member named ‘lock’
sc92031.c:1900:40: error: missing binary operator before token "("
sc92031.c:1960: error: ‘EOPNOTSUPP’ undeclared (first use in this function)
sc92031.c: At top level:
sc92031.c:1964: warning: ‘struct ifreq’ declared inside parameter list
sc92031.c:1964: warning: ‘struct net_device’ declared inside parameter list
sc92031.c:1965: error: conflicting types for ‘netdev_ioctl’
sc92031.c:371: error: previous declaration of ‘netdev_ioctl’ was here
sc92031.c: In function ‘netdev_ioctl’:
sc92031.c:1966: error: dereferencing pointer to incomplete type
sc92031.c:1967: error: dereferencing pointer to incomplete type
sc92031.c:1972: error: ‘struct silan_private’ has no member named ‘lock’
sc92031.c:1975: error: ‘EINVAL’ undeclared (first use in this function)
sc92031.c:1977: error: ‘SIOCETHTOOL’ undeclared (first use in this function)
sc92031.c:1978: error: dereferencing pointer to incomplete type
sc92031.c:1978: warning: passing argument 1 of ‘netdev_ethtool_ioctl’ from incompatible pointer type
sc92031.c:1981: error: ‘struct Mii_ioctl_data’ has no member named ‘reg_num’
sc92031.c:1982: error: ‘struct Mii_ioctl_data’ has no member named ‘reg_num’
sc92031.c:1986: error: ‘SIOCDEVPRIVATE’ undeclared (first use in this function)
sc92031.c:1987: error: ‘struct Mii_ioctl_data’ has no member named ‘phy_id’
sc92031.c:1992: error: ‘struct Mii_ioctl_data’ has no member named ‘val_out’
sc92031.c:1999: error: ‘EOPNOTSUPP’ undeclared (first use in this function)
sc92031.c:2004: error: ‘struct silan_private’ has no member named ‘lock’
sc92031.c: At top level:
sc92031.c:2010: error: variable ‘silan_pci_driver’ has initializer but incomplete type
sc92031.c:2011: error: unknown field ‘name’ specified in initializer
sc92031.c:2011: warning: excess elements in struct initializer
sc92031.c:2011: warning: (near initialization for ‘silan_pci_driver’)
sc92031.c:2012: error: unknown field ‘id_table’ specified in initializer
sc92031.c:2012: error: ‘silan_pci_tbl’ undeclared here (not in a function)
sc92031.c:2012: warning: excess elements in struct initializer
sc92031.c:2012: warning: (near initialization for ‘silan_pci_driver’)
sc92031.c:2013: error: unknown field ‘probe’ specified in initializer
sc92031.c:2013: warning: excess elements in struct initializer
sc92031.c:2013: warning: (near initialization for ‘silan_pci_driver’)
sc92031.c:2014: error: unknown field ‘remove’ specified in initializer
sc92031.c:2014: warning: excess elements in struct initializer
sc92031.c:2014: warning: (near initialization for ‘silan_pci_driver’)
sc92031.c:2022: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘silan_init_module’
sc92031.c:2058: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘silan_cleanup_module’
sc92031.c:2063: warning: data definition has no type or storage class
sc92031.c:2063: warning: parameter names (without types) in function declaration
sc92031.c:2064: warning: data definition has no type or storage class
sc92031.c:2064: warning: parameter names (without types) in function declaration
user@ubuntu:~/sc92031$
now what shud i do???
 
Old 12-18-2006, 05:05 AM   #11
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Did you actually try to compile using "make install"??
 
Old 12-18-2006, 05:19 AM   #12
deroB
Member
 
Registered: Dec 2005
Location: Sydney, Australia
Distribution: Arch Linux
Posts: 208

Rep: Reputation: 30
Having a second look, it seems this driver is way out of date, and hence the problems compiling on 2.6 series kernels.

Have a read of this
http://www.gossamer-threads.com/list.../kernel/714108.

There is a newer driver available at:
Quote:
[1] See http://www.encore-usa.com/faq.php under ENL832-TX-RENT for more
information
But unfortunately, as sugested in the above link you may need to do some patching of the source for this to work.

Hopefully someone else has been able to get this to work and can give you some better advice.

Cheers
Andrew
 
Old 12-18-2006, 05:30 AM   #13
deroB
Member
 
Registered: Dec 2005
Location: Sydney, Australia
Distribution: Arch Linux
Posts: 208

Rep: Reputation: 30
ok. this looks like a better(easier) option:
http://www.geocities.com/rohitksethi/
 
Old 12-18-2006, 10:10 AM   #14
niwhsa
LQ Newbie
 
Registered: Dec 2006
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by deroB
ok. this looks like a better(easier) option:
http://www.geocities.com/rohitksethi/
well first of all thank u very much for digging up such a wonderful link...

now i tried to proceed in accordance with the steps mentioned there ...

the steps :

Code:
I faced the problem of installing Ethernet Card having SC92031 chipset 
on linux having kernel 2.6.The linux driver for the card is only avialable
 for kernel 2.4 or 2.5.

I got the following message when i did "lspci" :-

Ethernet controller:Unknown device 1904:2031(rev 01)
 
After searching on the internet I somehow made the card work on my linux
machine.I found that Windows drivers which came with the card can be used on
linux OS using a utility called "ndiswrapper" which is available at
http://ndiswrapper.sourceforge.net.

The instructions below explain how to install ndiswrapper and the Ethernet
card drivers. 

Prerequisites
==============

You need a recent kernel, at least 2.6.6 or 2.4.26, with header files
for the kernel. Make sure there is a link to the kernel source from
the modules directory. The command

  ls /lib/modules/`uname -r`/build

should have at least 'include' directory and '.config' file.

Downloading
============

Download the latest version of the ndiswrapper sources and
extract it with the command

  tar zxvf ndiswrapper-version.tar.gz

This will create ndiswrapper-version directory. Change to that
directory and run

  make uninstall
  make

Login as root and run
  make install

Install Windows driver 
======================

If this is the first time you install ndiswrapper, you need to install
Windows driver for Windows XP (in some cases Windows NT or Windows
2000 may also work). 

Many Windows drivers are distributed either as zipped files or cab
files. Zipped files, even if they are .exe files, can be extracted
with 'unzip' in Linux; cab files can be extracted with combination of
'cabextract' and 'unshield' programs.

Once the driver has been unpacked, locate .inf and .sys files.In this case 
"netslnt.inf" and "slnt.sys" 


Using ndiswrapper
=================
 
 Then install the Windows driver with

  ndiswrapper -i netslnt.inf

This installs .inf file and required .sys and .bin files. Now, see if
installation of Windows driver is "valid" with

  ndiswrapper -l

This should report

"netslnt  driver installed"

If not, the Windows driver has not been installed properly.

Now load ndiswrapper module with

  modprobe ndiswrapper

Open /etc/modeprobe.conf and add following line:

alias wlan0 ndiswrapper

Configure Network
===================

Now open "system-config-network" utility and Add "wireless connection" and
select the "ndiswrapper" device.
After adding the device follow the steps to configure the "wireless
connection" followed by configuring the IP addresses.

After adding the Connection, Activate the connection.

The Ethernet card should work with id wlan0(ifconfig -a).
 
Old 12-18-2006, 10:13 AM   #15
niwhsa
LQ Newbie
 
Registered: Dec 2006
Posts: 13

Original Poster
Rep: Reputation: 0
contd..

but after the "make uninstall" , when i type in "make"
{ i tried both make and sudo make }
i got the following error...

Code:
ashwin@ubuntu:~/ndiswrapper-1.31$ sudo make uninstall
NOTE: Not all installed files are removed, as different distributions install ndiswrapper files at different places.
Run uninstall as many times as necessary until no "removing" messages appear below.
removing /lib/modules/2.6.17-10-generic/misc/ndiswrapper.ko
ashwin@ubuntu:~/ndiswrapper-1.31$ sudo make uninstall
NOTE: Not all installed files are removed, as different distributions install ndiswrapper files at different places.
Run uninstall as many times as necessary until no "removing" messages appear below.
ashwin@ubuntu:~/ndiswrapper-1.31$ sudo make
make -C driver
make[1]: Entering directory `/home/ashwin/ndiswrapper-1.31/driver'
make -C /lib/modules/2.6.17-10-generic/build SUBDIRS=/home/ashwin/ndiswrapper-1.31/driver
make[2]: Entering directory `/usr/src/linux-headers-2.6.17-10-generic'
  Building modules, stage 2.
  MODPOST
make[2]: Leaving directory `/usr/src/linux-headers-2.6.17-10-generic'
make[1]: Leaving directory `/home/ashwin/ndiswrapper-1.31/driver'
make -C utils
make[1]: Entering directory `/home/ashwin/ndiswrapper-1.31/utils'
gcc -g -Wall -I../driver -o loadndisdriver loadndisdriver.c
loadndisdriver.c:15:20: error: stdlib.h: No such file or directory
loadndisdriver.c:16:19: error: stdio.h: No such file or directory
loadndisdriver.c:17:19: error: errno.h: No such file or directory
loadndisdriver.c:18:20: error: string.h: No such file or directory
loadndisdriver.c:19:20: error: libgen.h: No such file or directory
loadndisdriver.c:21:22: error: sys/mman.h: No such file or directory
loadndisdriver.c:23:23: error: sys/types.h: No such file or directory
loadndisdriver.c:24:23: error: sys/ioctl.h: No such file or directory
loadndisdriver.c:25:22: error: sys/stat.h: No such file or directory
loadndisdriver.c:26:20: error: unistd.h: No such file or directory
loadndisdriver.c:27:19: error: fcntl.h: No such file or directory
In file included from /usr/lib/gcc/i486-linux-gnu/4.1.2/include/syslimits.h:7,
                 from /usr/lib/gcc/i486-linux-gnu/4.1.2/include/limits.h:11,
                 from loadndisdriver.c:28:
/usr/lib/gcc/i486-linux-gnu/4.1.2/include/limits.h:122:61: error: limits.h: No such file or directory
loadndisdriver.c:29:19: error: ctype.h: No such file or directory
loadndisdriver.c:30:20: error: dirent.h: No such file or directory
loadndisdriver.c:31:20: error: syslog.h: No such file or directory
loadndisdriver.c:34:25: error: linux/major.h: No such file or directory
loadndisdriver.c:35:25: error: linux/ioctl.h: No such file or directory
In file included from loadndisdriver.c:37:
../driver/loader.h:24: error: expected specifier-qualifier-list before ‘size_t’
loadndisdriver.c: In function ‘load_file’:
loadndisdriver.c:67: error: ‘size_t’ undeclared (first use in this function)
loadndisdriver.c:67: error: (Each undeclared identifier is reported only once
loadndisdriver.c:67: error: for each function it appears in.)
loadndisdriver.c:67: error: expected ‘;’ before ‘size’
loadndisdriver.c:68: error: ‘NULL’ undeclared (first use in this function)
loadndisdriver.c:69: error: storage size of ‘statbuf’ isn’t known
loadndisdriver.c:71: warning: implicit declaration of function ‘basename’
loadndisdriver.c:71: warning: initialization makes pointer from integer without a cast
loadndisdriver.c:73: warning: implicit declaration of function ‘open’
loadndisdriver.c:73: error: ‘O_RDONLY’ undeclared (first use in this function)
loadndisdriver.c:75: warning: implicit declaration of function ‘syslog’
loadndisdriver.c:75: error: ‘LOG_KERN’ undeclared (first use in this function)
loadndisdriver.c:75: error: ‘LOG_INFO’ undeclared (first use in this function)
loadndisdriver.c:75: warning: implicit declaration of function ‘strerror’
loadndisdriver.c:75: error: ‘errno’ undeclared (first use in this function)
loadndisdriver.c:76: error: ‘EINVAL’ undeclared (first use in this function)
loadndisdriver.c:79: warning: implicit declaration of function ‘fstat’
loadndisdriver.c:81: warning: implicit declaration of function ‘close’
loadndisdriver.c:84: error: ‘size’ undeclared (first use in this function)
loadndisdriver.c:86: warning: implicit declaration of function ‘mmap’
loadndisdriver.c:86: error: ‘PROT_READ’ undeclared (first use in this function)
loadndisdriver.c:86: error: ‘MAP_PRIVATE’ undeclared (first use in this function)
loadndisdriver.c:86: warning: assignment makes pointer from integer without a cast
loadndisdriver.c:87: error: ‘MAP_FAILED’ undeclared (first use in this function)
loadndisdriver.c:93: warning: implicit declaration of function ‘strncpy’
loadndisdriver.c:93: warning: incompatible implicit declaration of built-in function ‘strncpy’
loadndisdriver.c:95: error: ‘struct load_driver_file’ has no member named ‘size’
loadndisdriver.c:96: error: ‘struct load_driver_file’ has no member named ‘data’
loadndisdriver.c:69: warning: unused variable ‘statbuf’
loadndisdriver.c: In function ‘parse_setting_line’:
loadndisdriver.c:109: warning: implicit declaration of function ‘isspace’
loadndisdriver.c:115: warning: implicit declaration of function ‘strchr’
loadndisdriver.c:115: warning: incompatible implicit declaration of built-in function ‘strchr’
loadndisdriver.c:115: error: ‘NULL’ undeclared (first use in this function)
loadndisdriver.c:117: error: ‘LOG_KERN’ undeclared (first use in this function)
loadndisdriver.c:117: error: ‘LOG_INFO’ undeclared (first use in this function)
loadndisdriver.c:118: error: ‘EINVAL’ undeclared (first use in this function)
loadndisdriver.c:138: warning: implicit declaration of function ‘strlen’
loadndisdriver.c:138: warning: incompatible implicit declaration of built-in function ‘strlen’
loadndisdriver.c: In function ‘read_conf_file’:
loadndisdriver.c:150: error: storage size of ‘statbuf’ isn’t known
loadndisdriver.c:151: error: ‘FILE’ undeclared (first use in this function)
loadndisdriver.c:151: error: ‘config’ undeclared (first use in this function)
loadndisdriver.c:157: warning: implicit declaration of function ‘lstat’
loadndisdriver.c:158: error: ‘LOG_KERN’ undeclared (first use in this function)
loadndisdriver.c:158: error: ‘LOG_INFO’ undeclared (first use in this function)
loadndisdriver.c:158: error: ‘errno’ undeclared (first use in this function)
loadndisdriver.c:160: error: ‘EINVAL’ undeclared (first use in this function)
loadndisdriver.c:163: warning: implicit declaration of function ‘sscanf’
loadndisdriver.c:163: warning: incompatible implicit declaration of built-in function ‘sscanf’
loadndisdriver.c:179: warning: implicit declaration of function ‘fopen’
loadndisdriver.c:179: error: ‘NULL’ undeclared (first use in this function)
loadndisdriver.c:183: warning: implicit declaration of function ‘fgets’
loadndisdriver.c:195: warning: incompatible implicit declaration of built-in function ‘strncpy’
loadndisdriver.c:206: warning: implicit declaration of function ‘fclose’
loadndisdriver.c:150: warning: unused variable ‘statbuf’
loadndisdriver.c: In function ‘load_bin_file’:
loadndisdriver.c:218: error: ‘LOG_KERN’ undeclared (first use in this function)
loadndisdriver.c:218: error: ‘LOG_INFO’ undeclared (first use in this function)
loadndisdriver.c:220: warning: implicit declaration of function ‘tolower’
loadndisdriver.c:222: warning: implicit declaration of function ‘chdir’
loadndisdriver.c:223: error: ‘errno’ undeclared (first use in this function)
loadndisdriver.c:225: error: ‘EINVAL’ undeclared (first use in this function)
loadndisdriver.c:231: warning: incompatible implicit declaration of built-in function ‘strncpy’
loadndisdriver.c:233: warning: implicit declaration of function ‘ioctl’
loadndisdriver.c:233: warning: implicit declaration of function ‘_IOW’
loadndisdriver.c:233: error: expected expression before ‘struct’
loadndisdriver.c: In function ‘load_driver’:
loadndisdriver.c:250: error: ‘DIR’ undeclared (first use in this function)
loadndisdriver.c:250: error: ‘driver_dir’ undeclared (first use in this function)
loadndisdriver.c:252: error: ‘NULL’ undeclared (first use in this function)
loadndisdriver.c:256: error: ‘LOG_KERN’ undeclared (first use in this function)
loadndisdriver.c:256: error: ‘LOG_INFO’ undeclared (first use in this function)
loadndisdriver.c:258: error: ‘errno’ undeclared (first use in this function)
loadndisdriver.c:260: error: ‘EINVAL’ undeclared (first use in this function)
loadndisdriver.c:262: warning: implicit declaration of function ‘opendir’
loadndisdriver.c:268: warning: implicit declaration of function ‘malloc’
loadndisdriver.c:268: warning: incompatible implicit declaration of built-in function ‘malloc’
loadndisdriver.c:272: warning: implicit declaration of function ‘memset’
loadndisdriver.c:272: warning: incompatible implicit declaration of built-in function ‘memset’
loadndisdriver.c:273: warning: incompatible implicit declaration of built-in function ‘strncpy’
loadndisdriver.c:281: warning: implicit declaration of function ‘readdir’
loadndisdriver.c:281: warning: assignment makes pointer from integer without a cast
loadndisdriver.c:283: error: storage size of ‘statbuf’ isn’t known
loadndisdriver.c:285: error: dereferencing pointer to incomplete type
loadndisdriver.c:288: warning: implicit declaration of function ‘stat’
loadndisdriver.c:288: error: dereferencing pointer to incomplete type
loadndisdriver.c:289: warning: implicit declaration of function ‘S_ISREG’
loadndisdriver.c:290: error: dereferencing pointer to incomplete type
loadndisdriver.c:295: warning: incompatible implicit declaration of built-in function ‘strlen’
loadndisdriver.c:295: error: dereferencing pointer to incomplete type
loadndisdriver.c:297: warning: implicit declaration of function ‘strcasecmp’
loadndisdriver.c:297: error: dereferencing pointer to incomplete type
loadndisdriver.c:300: error: dereferencing pointer to incomplete type
loadndisdriver.c:303: error: dereferencing pointer to incomplete type
loadndisdriver.c:304: error: dereferencing pointer to incomplete type
loadndisdriver.c:306: error: dereferencing pointer to incomplete type
loadndisdriver.c:312: error: dereferencing pointer to incomplete type
loadndisdriver.c:313: error: dereferencing pointer to incomplete type
loadndisdriver.c:314: warning: implicit declaration of function ‘strcpy’
loadndisdriver.c:314: warning: incompatible implicit declaration of built-in function ‘strcpy’
loadndisdriver.c:315: error: dereferencing pointer to incomplete type
loadndisdriver.c:318: error: ‘struct load_driver_file’ has no member named ‘size’
loadndisdriver.c:319: error: ‘struct load_driver_file’ has no member named ‘data’
loadndisdriver.c:322: error: dereferencing pointer to incomplete type
loadndisdriver.c:283: warning: unused variable ‘statbuf’
loadndisdriver.c:345: error: expected expression before ‘struct’
loadndisdriver.c:347: warning: implicit declaration of function ‘closedir’
loadndisdriver.c:349: warning: implicit declaration of function ‘free’
loadndisdriver.c:356: warning: implicit declaration of function ‘munmap’
loadndisdriver.c:356: error: ‘struct load_driver_file’ has no member named ‘data’
loadndisdriver.c:356: error: ‘struct load_driver_file’ has no member named ‘size’
loadndisdriver.c:358: error: ‘struct load_driver_file’ has no member named ‘data’
loadndisdriver.c:358: error: ‘struct load_driver_file’ has no member named ‘size’
loadndisdriver.c: In function ‘get_device’:
loadndisdriver.c:368: error: storage size of ‘statbuf’ isn’t known
loadndisdriver.c:371: error: ‘LOG_KERN’ undeclared (first use in this function)
loadndisdriver.c:371: error: ‘LOG_INFO’ undeclared (first use in this function)
loadndisdriver.c:374: error: ‘errno’ undeclared (first use in this function)
loadndisdriver.c:375: error: ‘EINVAL’ undeclared (first use in this function)
loadndisdriver.c:377: warning: implicit declaration of function ‘snprintf’
loadndisdriver.c:377: warning: incompatible implicit declaration of built-in function ‘snprintf’
loadndisdriver.c:408: warning: incompatible implicit declaration of built-in function ‘strncpy’
loadndisdriver.c:368: warning: unused variable ‘statbuf’
loadndisdriver.c: In function ‘load_device’:
loadndisdriver.c:420: error: ‘DIR’ undeclared (first use in this function)
loadndisdriver.c:420: error: ‘dir’ undeclared (first use in this function)
loadndisdriver.c:424: error: ‘LOG_KERN’ undeclared (first use in this function)
loadndisdriver.c:424: error: ‘LOG_INFO’ undeclared (first use in this function)
loadndisdriver.c:425: warning: incompatible implicit declaration of built-in function ‘memset’
loadndisdriver.c:427: error: ‘errno’ undeclared (first use in this function)
loadndisdriver.c:428: error: ‘EINVAL’ undeclared (first use in this function)
loadndisdriver.c:430: error: ‘NULL’ undeclared (first use in this function)
loadndisdriver.c:435: warning: assignment makes pointer from integer without a cast
loadndisdriver.c:436: error: dereferencing pointer to incomplete type
loadndisdriver.c:437: error: dereferencing pointer to incomplete type
loadndisdriver.c:440: error: dereferencing pointer to incomplete type
loadndisdriver.c:449: error: expected expression before ‘struct’
loadndisdriver.c: In function ‘get_ioctl_device’:
loadndisdriver.c:466: error: ‘FILE’ undeclared (first use in this function)
loadndisdriver.c:466: error: ‘proc_misc’ undeclared (first use in this function)
loadndisdriver.c:474: warning: implicit declaration of function ‘strstr’
loadndisdriver.c:474: warning: incompatible implicit declaration of built-in function ‘strstr’
loadndisdriver.c:475: warning: implicit declaration of function ‘strtol’
loadndisdriver.c:475: error: ‘NULL’ undeclared (first use in this function)
loadndisdriver.c:485: error: ‘LOG_KERN’ undeclared (first use in this function)
loadndisdriver.c:485: error: ‘LOG_INFO’ undeclared (first use in this function)
loadndisdriver.c:490: warning: implicit declaration of function ‘unlink’
loadndisdriver.c:491: warning: implicit declaration of function ‘mknod’
loadndisdriver.c:491: error: ‘S_IFCHR’ undeclared (first use in this function)
loadndisdriver.c:491: error: ‘MISC_MAJOR’ undeclared (first use in this function)
loadndisdriver.c:492: error: ‘errno’ undeclared (first use in this function)
loadndisdriver.c:497: error: ‘O_RDONLY’ undeclared (first use in this function)
loadndisdriver.c: In function ‘main’:
loadndisdriver.c:513: warning: implicit declaration of function ‘openlog’
loadndisdriver.c:513: error: ‘LOG_PERROR’ undeclared (first use in this function)
loadndisdriver.c:513: error: ‘LOG_CONS’ undeclared (first use in this function)
loadndisdriver.c:513: error: ‘LOG_KERN’ undeclared (first use in this function)
loadndisdriver.c:513: error: ‘LOG_DEBUG’ undeclared (first use in this function)
loadndisdriver.c:515: error: ‘LOG_INFO’ undeclared (first use in this function)
loadndisdriver.c:517: warning: implicit declaration of function ‘strncmp’
loadndisdriver.c:519: warning: implicit declaration of function ‘printf’
loadndisdriver.c:519: warning: incompatible implicit declaration of built-in function ‘printf’
loadndisdriver.c:529: warning: implicit declaration of function ‘atoi’
loadndisdriver.c:544: warning: implicit declaration of function ‘atof’
loadndisdriver.c:551: warning: implicit declaration of function ‘strcmp’
loadndisdriver.c:558: warning: incompatible implicit declaration of built-in function ‘sscanf’
loadndisdriver.c:592: warning: implicit declaration of function ‘closelog’
make[1]: *** [loadndisdriver] Error 1
make[1]: Leaving directory `/home/ashwin/ndiswrapper-1.31/utils'
make: *** [all] Error 2
guys what next ??
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
GMail invites galore Nargile General 2 11-05-2005 05:30 AM
VNC Errors Galore Corporal Linux - Networking 3 10-10-2005 12:42 PM
Open ports galore rjkfsm Linux - Security 5 04-05-2005 12:17 PM
Bittorrent problems galore QCompson Linux - Software 10 03-28-2005 12:15 AM
headaches galore with binaries corbis_demon Linux - Newbie 1 07-10-2004 04:26 AM


All times are GMT -5. The time now is 02:56 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration