LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Wireless Networking (https://www.linuxquestions.org/questions/linux-wireless-networking-41/)
-   -   Dell wireless WLAN 1450 Dual Band WLAN Mini-PCI card not recognised (https://www.linuxquestions.org/questions/linux-wireless-networking-41/dell-wireless-wlan-1450-dual-band-wlan-mini-pci-card-not-recognised-198289/)

Hangdog42 10-11-2004 03:09 PM

Quote:

I beleive this is the right version for the linux that I have got!!
Well, ndiswrapper is independant of any linux distro, so in theory it should work. In practice there may, or may not, be trouble. At least you have a reasonable starting place.

Quote:

./configure or make install- -------To compile it , gave me error message. long message the last line was: make:*** [wrapper.o] Error 1.
Two things here: First, be sure to read the INSTALL file and follow the directions exactly. ./configure and make are not needed with ndiswrapper. You should only need to run
make install as root. Second, you need to post many more lines of the error message than you did. What you posted isn't enough to diagnose.

shinobi59 10-11-2004 04:32 PM

I posted some messages here Friday. Can anyone tell me why I don't see them?

shinobi59 10-11-2004 05:00 PM

Disregard my last post about not being able to find my friday posts.

Hangdog: I went to the site from your liink and downloaded the following because it matched the output of the lspci:

02:03.0 Network controller: Broadcom Corporation BCM4309 802.11a/b/g (rev 03)

As you can see the BCM4309 matches the chipset below (from the web site) and also the revision number


Card : Dell Truemobile 1400 minipci 54mbps
Chipset : Broadcom BCM4309 (rev 03)
pciid: 14e4:4324
Driver : http://ftp.us.dell.com/network/R76521na.EXE (use bcmwl5a.inf in directory AR)
Other : Works with WEP and WPA with either CCMP/AES or TKIP ciphers.


I ran:

# ndiswrapper -i R76521na.EXE

# ndiswrapper -l
Installed ndis drivers:
bcmsmwdm hardware present,fuzzy
r76521na.exe hardware NOT present

Then the above shows hardware NOT present.

As I stated from the dell website it states that this Laptop has a BCM1450 even though the lspci output shows a BCM4309 chipset?

Card : Dell Truemobile 1400 minipci 802.11a/b/g
Chipset : Broadcom BCM4309 (rev 02)
pciid: 14e4:4324
Driver : ftp://ftp.dell.com/network/R74092us.EXE
Other : (use bcmwl5a.inf in AR directory) Works with WEP and WPA with either CCMP/AES or TKIP ciphers.
I downloaded the other driver show 4309 (rev02)

which matches the descript on the dell site even though the rev # does not match.

So I searched for a BCM1450 per the Dell web site and came up empty.

Now what?

Hangdog42 10-11-2004 06:01 PM

Quote:

# ndiswrapper -i R76521na.EXE
I think your problem is here. You need to extract the .inf and .sys files for the card and use those,
not the .exe. You need to do the extraction in Windows and then copy the .inf and .sys to something that you can see from linux.

Be sure to have a read through the INSTALL file or the ndiswrapper wiki .
Those two things clear up a lot of questions.

zillah 10-13-2004 03:00 AM

Hi Hangdog42

Thanks for your quick reply.

You asked:"Second, you need to post many more lines of the error message than you did. What you posted isn't enough to diagnose."

These are the very last few lines could you please look at it:

wrapper.c:2354: error: variable `wrapper_fops' has initializer but incomplete type
wrapper.c:2355: error: unknown field `owner' specified in initializer
wrapper.c:2355: warning: excess elements in struct initializer
wrapper.c:2355: warning: (near initialization for `wrapper_fops')
wrapper.c:2356: error: unknown field `ioctl' specified in initializer
wrapper.c:2356: warning: excess elements in struct initializer
wrapper.c:2356: warning: (near initialization for `wrapper_fops')
wrapper.c:2357: error: unknown field `release' specified in initializer
wrapper.c:2358: warning: excess elements in struct initializer
wrapper.c:2358: warning: (near initialization for `wrapper_fops')
wrapper.c: In function `wrapper_init':
wrapper.c:2390: error: `KERN_INFO' undeclared (first use in this function)
wrapper.c:2390: error: syntax error before string constant
wrapper.c:2404: error: `KERN_ERR' undeclared (first use in this function)
wrapper.c:2404: error: syntax error before string constant
wrapper.c:2423: error: syntax error before string constant
wrapper.c: At top level:
ndis.h:742: error: storage size of `hangcheck_timer' isn't known
ndis.h:746: error: storage size of `statcollector_timer' isn't known
ndis.h:766: error: storage size of `recycle_packets_lock' isn't known
wrapper.c:80: error: storage size of `driverlist_lock' isn't known
wrapper.c:2354: error: storage size of `wrapper_fops' isn't known
make[1]: *Untitled 1** [wrapper.o] Error 1
make[1]: Leaving directory `/root/ndiswrapper-0.11/driver'
make: *** [install] Error 2

I hope this will be helpful for you to dignose the problem.

Thanks


:

Hangdog42 10-13-2004 07:37 AM

I'm no C expert, but those look like errors in the ndiswrapper code. I'd suspect either a bad download or something has gotten corrupted during your installtaion
attempts so far. If I were you, I'd delete the ndiswrapper tarball and directories you've got on your system and then download a brand new copy of the ndiswrapper code and try again.

zillah 10-13-2004 09:39 AM

Hi Hangdog42


I tried many versions of ndiswrapper, 7, 8, 10,last one was 11...all the same probelm!!!!

I just want to double check with you ,,,,Was I doing the right thing by deleting the previous

version of ndiswrapper by using this command: rm -rf,,,or I have to uninstall it, when I want to install any version or clean version?

Another issue I want to double check with you what did you mean by tarball ?

Thanks

Hangdog42 10-13-2004 10:33 AM

Quote:

I tried many versions of ndiswrapper, 7, 8, 10,last one was 11...all the same probelm!!!!
OK, that actually suggests something other than a download problem....if the error message is always the same. If that is the case, you're going to have to post more of the errors because something besides ndiswrapper must be causing it. By the way, do you have your kernel source code installed?

Quote:

Was I doing the right thing by deleting the previous version of ndiswrapper by using this command: rm -rf,,,or I have to uninstall it, when I want to install any version or clean version?
No, rm should do the trick.

Quote:

Another issue I want to double check with you what did you mean by tarball ?
tarball = .tar.gz or .tar.bz2 files.

zillah 10-13-2004 11:00 PM

Hi Hangdog42

Quote:

By the way, do you have your kernel source code installed?
I was about to ask you about this one,,,is the source code for kernel in this directory are: build ,and kernel ?:

/lib/modules/2.4.22-1.2115.nptl
[root@localhost 2.4.22-1.2115.nptl]# ls

build modules.generic_string modules.parportmap

modules.usbmap kernel modules.ieee1394map

modules.pcimap unsupported modules.dep

modules.isapnpmap modules.pnpbiosmap vmlinux



Quote:

No, rm should do the trick.
What is the right command to uninstall or delete in my case?

Hangdog42 10-14-2004 07:08 AM

The kernel source code absolutely has to be installed for ndiswrapper to compile, and that is the main reason I asked you to post more of the errors you get when you run make install. The directory you are looking in in your last post (lib/modules) is where kernel modules get placed after you compile a kernel or a kernel module like ndiswrapper

As far as undeleting goes, just use rm to delete all the files in the ndiswrapper directory that was created when you unpacked the ndiswrapper .tar.gz file and then also remove the ndiswrapper.tar.gz file and download a new one. This may not be necessary, but at this point, we don't really know what is going wrong.

Again, posting the full error from make install will hopefully help

zillah 10-14-2004 09:29 AM

Hi Hangdog42

Please look at the error message and then delete it ; because it very long message ,I could not uploaded it as whole message, I have to delete many line of it

[root@localhost ndiswrapper-0.11]# make install
make -C driver install
make[1]: Entering directory `/root/ndiswrapper-0.11/driver'
cc -DNDISWRAPPER_VERSION=\"0.11\" -DEXTRA_VERSION=\"\" -DLINUX -D__KERNEL__ -DMODULE -I/lib/modules/2.4.22-1.2115.nptl/build/include -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2 -O2 -c -o wrapper.o wrapper.c
wrapper.c:18:27: linux/vmalloc.h: No such file or directory
In file included from /usr/include/linux/sched.h:14,
from /usr/include/linux/mm.h:4,
from /usr/include/linux/locks.h:5,
from /usr/include/linux/devfs_fs_kernel.h:6,
from /usr/include/linux/miscdevice.h:4,
from wrapper.c:24:
/usr/include/linux/timex.h:56: error: syntax error before "and"
In file included from /usr/include/linux/timex.h:126,
from /usr/include/linux/sched.h:14,
from /usr/include/linux/mm.h:4,
from /usr/include/linux/locks.h:5,
from /usr/include/linux/devfs_fs_kernel.h:6,
from /usr/include/linux/miscdevice.h:4,
from wrapper.c:24:
/usr/include/asm/timex.h:33: error: syntax error before "cacheflush_time"
/usr/include/asm/timex.h:35: error: syntax error before "get_cycles"
In file included from /usr/include/linux/sched.h:14,
from /usr/include/linux/mm.h:4,
from /usr/include/linux/locks.h:5,
from /usr/include/linux/devfs_fs_kernel.h:6,
from /usr/include/linux/miscdevice.h:4,
from wrapper.c:24:
/usr/include/linux/timex.h:147: error: field `time' has incomplete type
In file included from /usr/include/linux/bitops.h:69,
from /usr/include/asm/system.h:7,
from /usr/include/linux/sched.h:16,
from /usr/include/linux/mm.h:4,
from /usr/include/linux/locks.h:5,
from /usr/include/linux/devfs_fs_kernel.h:6,
from /usr/include/linux/miscdevice.h:4,
from wrapper.c:24:
/usr/include/asm/bitops.h:327:2: warning: #warning This includefile is not available on all architectures.
/usr/include/asm/bitops.h:328:2: warning: #warning Using kernel headers in userspace: atomicity not guaranteed
In file included from /usr/include/linux/signal.h:4,
from /usr/include/linux/sched.h:25,
from /usr/include/linux/mm.h:4,
from /usr/include/linux/locks.h:5,
from /usr/include/linux/devfs_fs_kernel.h:6,
from /usr/include/linux/miscdevice.h:4,
from wrapper.c:24:
/usr/include/asm/signal.h:107: error: syntax error before "sigset_t"
/usr/include/asm/signal.h:110: error: syntax error before '}' token
In file included from /usr/include/linux/sched.h:81,
from /usr/include/linux/mm.h:4,
from /usr/include/linux/locks.h:5,
from /usr/include/linux/devfs_fs_kernel.h:6,
from /usr/include/linux/miscdevice.h:4,
from wrapper.c:24:
/usr/include/linux/timer.h:45: error: syntax error before "spinlock_t"
/usr/include/linux/timer.h:53: error: syntax error before '}' token
/usr/include/linux/timer.h:67: error: syntax error before "tvec_base_t"
/usr/include/linux/timer.h:101: error: syntax error before "tvec_bases"
/usr/include/linux/timer.h: In function `init_timer':
/usr/include/linux/timer.h:105: error: dereferencing pointer to incomplete type
/usr/include/linux/timer.h:105: error: dereferencing pointer to incomplete type
/usr/include/linux/timer.h:106: error: dereferencing pointer to incomplete type
/usr/include/linux/timer.h: In function `timer_pending':
/usr/include/linux/timer.h:121: error: dereferencing pointer to incomplete type
In file included from /usr/include/linux/devfs_fs_kernel.h:6,
from /usr/include/linux/miscdevice.h:4,
from wrapper.c:24:
/usr/include/linux/locks.h:8:27: linux/pagemap.h: No such file or directory
In file included from /usr/include/linux/devfs_fs_kernel.h:6,
from /usr/include/linux/miscdevice.h:4,
from wrapper.c:24:
/usr/include/linux/locks.h: In function `wait_on_buffer':
/usr/include/linux/locks.h:19: error: `BH_Lock' undeclared (first use in this function)
/usr/include/linux/locks.h:19: error: (Each undeclared identifier is reported only once
/usr/include/linux/locks.h:19: error: for each function it appears in.)
/usr/include/linux/locks.h:19: error: dereferencing pointer to incomplete type
/usr/include/linux/locks.h:19: error: dereferencing pointer to incomplete type
/usr/include/linux/locks.h: In function `lock_buffer':
/usr/include/linux/locks.h:25: error: `BH_Lock' undeclared (first use in this function)
/usr/include/linux/locks.h:25: error: dereferencing pointer to incomplete type
/usr/include/linux/locks.h: In function `lock_super':
/usr/include/linux/locks.h:39: error: dereferencing pointer to incomplete type
/usr/include/linux/locks.h: In function `unlock_super':
/usr/include/linux/locks.h:44: error: dereferencing pointer to incomplete type
wrapper.c:31:28: net/iw_handler.h: No such file or directory
wrapper.c:34:25: asm/uaccess.h: No such file or directory
In file included from ndiswrapper.h:27,
from ntoskernel.h:17,
from ndis.h:18,
from wrapper.c:38:
/usr/include/linux/delay.h:13:23: asm/delay.h: No such file or directory
In file included from ndiswrapper.h:33,
from ntoskernel.h:17,
from ndis.h:18,
from wrapper.c:38:
/usr/include/asm/atomic.h:40:2: warning: #warning Using kernel header in userland program. BAD!
In file included from ndiswrapper.h:80,
from ntoskernel.h:17,
from ndis.h:18,
from wrapper.c:38:
/usr/include/linux/tqueue.h: At top level:
/usr/include/linux/tqueue.h:94: error: syntax error before "tqueue_lock"
In file included from ndiswrapper.h:174,
from ntoskernel.h:17,
from ndis.h:18,
from wrapper.c:38:
/usr/include/linux/interrupt.h:44:25: asm/hardirq.h: No such file or directory
/usr/include/linux/interrupt.h:45:25: asm/softirq.h: No such file or directory
In file included from ndiswrapper.h:174,
from ntoskernel.h:17,
from ndis.h:18,
from wrapper.c:38:
/usr/include/linux/interrupt.h:77: error: syntax error before '(' token
/usr/include/linux/interrupt.h:78: error: syntax error before '(' token
/usr/include/linux/interrupt.h:127: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/linux/interrupt.h:127: error: requested alignment is not a constant
/usr/include/linux/interrupt.h:154: error: syntax error before '(' token
/usr/include/linux/interrupt.h:162: error: syntax error before '(' token
/usr/include/linux/interrupt.h:224: error: syntax error before "global_bh_lock"
In file included from ntoskernel.h:17,
from ndis.h:18,
from wrapper.c:38:
ndiswrapper.h:291: error: syntax error before "spinlock_t"
ndiswrapper.h:291: warning: no semicolon at end of struct or union
ndiswrapper.h:295: error: syntax error before '}' token
ndiswrapper.h: In function `wrap_spin_lock_init':
ndiswrapper.h:300: warning: implicit declaration of function `spin_lock_init'
ndiswrapper.h:300: error: dereferencing pointer to incomplete type
ndiswrapper.h:301: error: dereferencing pointer to incomplete type
ndiswrapper.h: In function `wrap_spin_lock':
ndiswrapper.h:324: warning: implicit declaration of function `in_interrupt'
ndiswrapper.h:326: warning: implicit declaration of function `spin_lock'
ndiswrapper.h:326: error: dereferencing pointer to incomplete type
ndiswrapper.h:327: error: dereferencing pointer to incomplete type
ndiswrapper.h:331: warning: implicit declaration of function `spin_lock_bh'
ndiswrapper.h:331: error: dereferencing pointer to incomplete type
ndiswrapper.h:332: error: dereferencing pointer to incomplete type
ndiswrapper.h: In function `wrap_spin_unlock':
ndiswrapper.h:350: error: dereferencing pointer to incomplete type
ndiswrapper.h:351: warning: implicit declaration of function `spin_unlock_bh'
ndiswrapper.h:351: error: dereferencing pointer to incomplete type
ndiswrapper.h:353: warning: implicit declaration of function `spin_unlock'
ndiswrapper.h:353: error: dereferencing pointer to incomplete type
In file included from ndis.h:18,
from wrapper.c:38:
ntoskernel.h: At top level:
ntoskernel.h:84: error: field `timer' has incomplete type
In file included from wrapper.c:38:
ndis.h:317: error: syntax error before "spinlock_t"
ndis.h:317: warning: no semicolon at end of struct or union
ndis.h:330: error: syntax error before '}' token
ndis.h:398: error: field `pci' has incomplete type
ndis.h:399: error: field `usb' has incomplete type
ndis.h:719: error: field `xmit_ring_lock' has incomplete type
ndis.h:726: error: field `send_packet_lock' has incomplete type
ndis.h:727: error: field `send_packet_done_lock' has incomplete type
ndis.h:729: error: field `ndis_comm_mutex' has incomplete type
ndis.h:730: error: syntax error before "wait_queue_head_t"
ndis.h:730: warning: no semicolon at end of struct or union
ndis.h:780: error: syntax error before '}' token
ndis.h:953: warning: `struct usb_interface' declared inside parameter list
ndis.h:954: warning: `struct usb_interface' declared inside parameter list
wrapper.c:61: error: conflicting declarations of `hangcheck_interval'
ndis.h:741: error: `hangcheck_interval' previously declared here
wrapper.c:61: warning: `hangcheck_interval' was declared `extern' and later `static'
wrapper.c: In function `doreset':
wrapper.c:92: error: dereferencing pointer to incomplete type
wrapper.c:96: error: dereferencing pointer to incomplete type
wrapper.c:99: warning: implicit declaration of function `down_interruptible'
wrapper.c:99: error: dereferencing pointer to incomplete type
wrapper.c:105: error: dereferencing pointer to incomplete type
wrapper.c:106: error: dereferencing pointer to incomplete type
wrapper.c:107: error: dereferencing pointer to incomplete type
wrapper.c:108: error: dereferencing pointer to incomplete type
wrapper.c:108: error: dereferencing pointer to incomplete type
wrapper.c:118: warning: implicit declaration of function `udelay'
wrapper.c:120: warning: implicit declaration of function `sysconf'
wrapper.c:120: error: `_SC_CLK_TCK' undeclared (first use in this function)
wrapper.c:120: error: dereferencing pointer to incomplete type
wrapper.c:120: error: `wait_queue_t' undeclared (first use in this function)
wrapper.c:120: error: syntax error before "__wait"
wrapper.c:120: warning: implicit declaration of function `init_waitqueue_entry'
wrapper.c:120: error: `__wait' undeclared (first use in this function)
wrapper.c:120: error: `current' undeclared (first use in this function)
wrapper.c:120: warning: implicit declaration of function `add_wait_queue'
wrapper.c:120: error: dereferencing pointer to incomplete type
wrapper.c:120: error: dereferencing pointer to incomplete type
wrapper.c:120: warning: implicit declaration of function `signal_pending'
wrapper.c:120: warning: implicit declaration of function `schedule_timeout'
wrapper.c:120: error: `ERESTARTSYS' undeclared (first use in this function)
wrapper.c:120: warning: implicit declaration of function `remove_wait_queue'
wrapper.c:120: error: dereferencing pointer to incomplete type
wrapper.c:122: error: dereferencing pointer to incomplete type
wrapper.c:123: error: dereferencing pointer to incomplete type
wrapper.c:127: error: dereferencing pointer to incomplete type
wrapper.c:131: error: dereferencing pointer to incomplete type
wrapper.c:133: error: dereferencing pointer to incomplete type
wrapper.c:134: error: dereferencing pointer to incomplete type
wrapper.c:135: error: dereferencing pointer to incomplete type
wrapper.c:136: error: dereferencing pointer to incomplete type
wrapper.c:137: error: dereferencing pointer to incomplete type
wrapper.c:138: error: dereferencing pointer to incomplete type
wrapper.c:139: error: dereferencing pointer to incomplete type
wrapper.c:420: error: dereferencing pointer to incomplete type
wrapper.c: In function `statcollector_bh':
wrapper.c:430: error: dereferencing pointer to incomplete type
wrapper.c:438: warning: implicit declaration of function `memset'
wrapper.c: At top level:
wrapper.c:463: error: `statcollector_timer' redeclared as different kind of symbol
ndis.h:746: error: previous declaration of `statcollector_timer'
wrapper.c:463: warning: `statcollector_timer' was declared `extern' and later `static'
wrapper.c: In function `statcollector_timer':
wrapper.c:465: error: dereferencing pointer to incomplete type
wrapper.c:466: error: dereferencing pointer to incomplete type
wrapper.c: In function `statcollector_reinit':
wrapper.c:472: error: dereferencing pointer to incomplete type
wrapper.c:473: error: dereferencing pointer to incomplete type
wrapper.c:474: error: dereferencing pointer to incomplete type
wrapper.c:474: error: `jiffies' undeclared (first use in this function)
wrapper.c:474: error: `_SC_CLK_TCK' undeclared (first use in this function)
wrapper.c:475: error: dereferencing pointer to incomplete type
wrapper.c: In function `statcollector_add':
wrapper.c:742: error: dereferencing pointer to incomplete type
wrapper.c:743: error: dereferencing pointer to incomplete type
wrapper.c:745: error: dereferencing pointer to incomplete type
wrapper.c:749: error: dereferencing pointer to incomplete type
wrapper.c:752: error: dereferencing pointer to incomplete type
wrapper.c:753: error: dereferencing pointer to incomplete type
_detach'
wrapper.c:1331: error: dereferencing pointer to incomplete type
wrapper.c:1331: error: `GFP_KERNEL' undeclared (first use in this function)
wrapper.c:1334: error: `KERN_WARNING' undeclared (first use in this function)
wrapper.c:1334: error: syntax error before string constant
wrapper.c:1334: warning: left-hand operand of comma expression has no effect
wrapper.c:1334: warning: left-hand operand of comma expression has no effect
wrapper.c:1334: warning: left-hand operand of comma expression has no effect
wrapper.c:1334: error: syntax error before ')' token
wrapper.c:1338: error: dereferencing pointer to incomplete type
wrapper.c:1339: error: dereferencing pointer to incomplete type
wrapper.c:1340: error: dereferencing pointer to incomplete type
wrapper.c:1341: error: dereferencing pointer to incomplete type
wrapper.c:1342: error: dereferencing pointer to incomplete type
wrapper.c:1343: error: dereferencing pointer to incomplete type
wrapper.c:1344: error: dereferencing pointer to incomplete type
wrapper.c:1345: error: dereferencing pointer to incomplete type
wrapper.c:1349: error: dereferencing pointer to incomplete type
wrapper.c:1350: error: dereferencing pointer to incomplete type
wrapper.c:1351: error: dereferencing pointer to incomplete type
wrapper.c:1351: error: dereferencing pointer to incomplete type
wrapper.c:1352: error: dereferencing pointer to incomplete type
wrapper.c:1352: error: dereferencing pointer to incomplete type
wrapper.c:1353: error: dereferencing pointer to incomplete type
wrapper.c:1353: error: dereferencing pointer to incomplete type
wrapper.c:1355: warning: implicit declaration of function `register_netdev'
wrapper.c:1358: error: syntax error before string constant
wrapper.c:1362: error: `KERN_INFO' undeclared (first use in this function)
wrapper.c:1362: error: syntax error before string constant
wrapper.c:1368: error: syntax error before string constant
wrapper.c: In function `ndis_init_netdev':
wrapper.c:1394: warning: implicit declaration of function `alloc_etherdev'
wrapper.c:1394: error: dereferencing pointer to incomplete type
wrapper.c:1394: warning: assignment makes pointer from integer without a cast
wrapper.c:1396: error: `KERN_ERR' undeclared (first use in this function)
wrapper.c:1396: error: syntax error before string constant
wrapper.c:1984: warning: unused variable `dup'
wrapper.c:1992: error: break statement not within loop or switch
wrapper.c: At top level:
wrapper.c:1994: error: syntax error before '}' token
wrapper.c:1997: error: syntax error before '&' token
wrapper.c:1997: warning: type defaults to `int' in declaration of `wrap_spin_unlock'
wrapper.c:1997: warning: function declaration isn't a prototype
wrapper.c:1997: error: conflicting types for `wrap_spin_unlock'
ndiswrapper.h:339: error: previous declaration of `wrap_spin_unlock'
wrapper.c:1997: warning: data definition has no type or storage class
wrapper.c: In function `add_file':
wrapper.c:2015: error: `GFP_KERNEL' undeclared (first use in this function)
wrapper.c:2015: warning: assignment makes pointer from integer without a cast
wrapper.c:2018: error: `KERN_ERR' undeclared (first use in this function)
wrapper.c:2018: error: syntax error before string constant
wrapper.c:2031: warning: assignment makes pointer from integer without a cast
wrapper.c:2034: error: syntax error before string constant
wrapper.c:2040: error: syntax error before string constant
wrapper.c: In function `add_device':
wrapper.c:2065: error: `KERN_ERR' undeclared (first use in this function)
wrapper.c:2065: error: syntax error before string constant
wrapper.c:2069: error: `GFP_KERNEL' undeclared (first use in this function)
wrapper.c:2069: warning: assignment makes pointer from integer without a cast
wrapper.c:2089: error: `PCI_ANY_ID' undeclared (first use in this function)
wrapper.c: In function `add_setting':
wrapper.c:2114: error: `GFP_KERNEL' undeclared (first use in this function)
wrapper.c:2114: warning: assignment makes pointer from integer without a cast
wrapper.c:2119: warning: assignment makes pointer from integer without a cast
wrapper.c:2138: warning: implicit declaration of function `strcmp'
wrapper.c: In function `unload_driver':
wrapper.c:2184: warning: implicit declaration of function `pci_unregister_driver'
wrapper.c: At top level:
wrapper.c:2232: warning: `struct file' declared inside parameter list
wrapper.c:2232: warning: `struct inode' declared inside parameter list
wrapper.c: In function `misc_release':
wrapper.c:2234: error: dereferencing pointer to incomplete type
wrapper.c:2238: error: dereferencing pointer to incomplete type
wrapper.c:2239: error: dereferencing pointer to incomplete type
wrapper.c: At top level:
wrapper.c:2244: warning: `struct file' declared inside parameter list
wrapper.c:2244: warning: `struct inode' declared inside parameter list
wrapper.c: In function `misc_ioctl':
wrapper.c:2250: error: dereferencing pointer to incomplete type
wrapper.c:2268: error: dereferencing pointer to incomplete type
wrapper.c:2323: error: dereferencing pointer to incomplete type
wrapper.c:2328: error: `KERN_INFO' undeclared (first use in this function)
wrapper.c:2328: error: syntax error before string constant
wrapper.c:2329: warning: left-hand operand of comma expression has no effect
wrapper.c:2329: warning: left-hand operand of comma expression has no effect
wrapper.c:2329: warning: left-hand operand of comma expression has no effect
wrapper.c:2329: error: syntax error before ')' token
wrapper.c:2346: error: `KERN_ERR' undeclared (first use in this function)
wrapper.c:2346: error: syntax error before string constant
wrapper.c: At top level:
wrapper.c:2354: error: variable `wrapper_fops' has initializer but incomplete type
wrapper.c:2355: error: unknown field `owner' specified in initializer
wrapper.c:2355: warning: excess elements in struct initializer
wrapper.c:2355: warning: (near initialization for `wrapper_fops')
wrapper.c:2356: error: unknown field `ioctl' specified in initializer
wrapper.c:2356: warning: excess elements in struct initializer
wrapper.c:2356: warning: (near initialization for `wrapper_fops')
wrapper.c:2357: error: unknown field `release' specified in initializer
wrapper.c:2358: warning: excess elements in struct initializer
wrapper.c:2358: warning: (near initialization for `wrapper_fops')
wrapper.c: In function `wrapper_init':

make[1]: *** [wrapper.o] Error 1
make[1]: Leaving directory `/root/ndiswrapper-0.11/driver'
make: *** [install] Error 2
[root@localhost ndiswrapper-0.11]#

Hangdog42 10-14-2004 06:30 PM

This is from a new download of ndiswrapper? I wish I could be more helpful, but all I can say is that something is seriously wrong here. It almost looks like a bunch of your library files are screwed up since a lot of those error messages are about syntax errors in library files.

Do you have other problems with linux or is this the only one?


I almost never recommend this, but unless someone else has a better idea, I'd be tempted to do a re-install of Fedora, because this REALLY isn't normal.

zillah 10-15-2004 03:29 PM

Hi Hangdog42

Thanks for your help, I have installed new copy of Fedora core 1 ,,,and I downloaded ndiswrapper-11, I was able to compile it and I was able to verfiy ,my Windows driver was installed,by using this command:

/usr/sbin/ndiswrapper -l

output:

Installed ndis drivers:
bcmwl5 driver present, hardware present

I have not seen "utility" at the end of the output above as this link mention!!!!!!, http://www.linuxelectrons.com/articl...40507104718960

Does that mean there is some thing wrong ?!!!!

Second:

There were errors when I tried to test next step by using the command below :

/sbin/modprobe ndiswrapper

[root@localhost misc]# modprobe ndiswrapper
/lib/modules/2.4.22-1.2115.nptl/misc/ndiswrapper.o: unresolved symbol usb_wrap_funcs
/lib/modules/2.4.22-1.2115.nptl/misc/ndiswrapper.o: unresolved symbol usb_reset_port
/lib/modules/2.4.22-1.2115.nptl/misc/ndiswrapper.o: unresolved symbol usb_submit_nt_urb
/lib/modules/2.4.22-1.2115.nptl/misc/ndiswrapper.o: insmod /lib/modules/2.4.22-1.2115.nptl/misc/ndiswrapper.o failed
/lib/modules/2.4.22-1.2115.nptl/misc/ndiswrapper.o: insmod ndiswrapper failed
############################
[root@localhost misc]# modprobe -q ndiswrapper

/lib/modules/2.4.22-1.2115.nptl/misc/ndiswrapper.o: insmod ndiswrapper failed
####################################
[root@localhost misc]# modprobe -v ndiswrapper

/sbin/insmod /lib/modules/2.4.22-1.2115.nptl/misc/ndiswrapper.o
Using /lib/modules/2.4.22-1.2115.nptl/misc/ndiswrapper.o
Symbol version prefix ''
/lib/modules/2.4.22-1.2115.nptl/misc/ndiswrapper.o: unresolved symbol usb_wrap_funcs
/lib/modules/2.4.22-1.2115.nptl/misc/ndiswrapper.o: unresolved symbol usb_reset_port
/lib/modules/2.4.22-1.2115.nptl/misc/ndiswrapper.o: unresolved symbol usb_submit_nt_urb
/lib/modules/2.4.22-1.2115.nptl/misc/ndiswrapper.o: insmod /lib/modules/2.4.22-1.2115.nptl/misc/ndiswrapper.o failed
/lib/modules/2.4.22-1.2115.nptl/misc/ndiswrapper.o: insmod ndiswrapper failed

The output of command should be :

Check your message log by using dmesg. An entry should appear like the following:

divert: allocating divert_blk for wlan0
wlan0: ndiswrapper ethernet device 00:90:96:68:6e:67 using driver bcmwl5.sys

see : http://www.linuxelectrons.com/articl...40507104718960


I found this link but I did not understand it
http://www.linuxquestions.org/questi...?postid=869725

Thanks in advanced

Hangdog42 10-16-2004 08:44 AM

OK, lets see if we can make some progress here.......

Quote:

I have not seen "utility" at the end of the output above as this link mention!!!!!!,
I wouldn't worry about this just yet. I've never seen that message before either.

Quote:

There were errors when I tried to test next step by using the command below :
Basically you have unresolved dependencies in your kernel modules. Ndiswrapper has usualy been a pain to get to work with stock RH kernels, particularly the 2.4.x series. You may want to consider using a 2.6 kernel (although the stock RH 2.6 kernels have some serious problems of their own as well).

Anyway, from the link you gave there is this:
Quote:

I updated my kernel to 4.2.22-1.2174, installed the source for it, made the sym-link from /lib/modules/<version>/build to /usr/src/linux-<version>, satisfied dependencies, and I was up and good to go this time
OK, so this guy installed his kernel and sources like you've done and then made a link between his /lib/modules/<version>/build directory and the /usr/src/linux<version> directory where the kernel sources reside. You can do this by moving to your /lib/modules/<version>/build directory and issuing this command:

ln -s /usr/src/linux<version>

The other thing to try would be to get into your /usr/src directory and make a link named linux pointing to your linux<version> directory:

ln -s linux<verison> linux

Once you've got one or the other of those done, try re-compiling ndiswrapper and see if it gets you any further.

zillah 10-16-2004 10:43 AM

I follow your steps , It was same error ,look to the output carefuly please:

First:

[root@localhost root]# cd /lib/modules/
[root@localhost modules]# ls
2.4.22-1.2115.nptl
[root@localhost modules]# cd 2.4.22-1.2115.nptl/

[root@localhost 2.4.22-1.2115.nptl]# ls
build modules.dep modules.isapnpmap modules.pnpbiosmap vmlinux
kernel modules.generic_string modules.parportmap modules.usbmap
misc modules.ieee1394map modules.pcimap unsupported

[root@localhost 2.4.22-1.2115.nptl]# cd build/

[root@localhost build]# ls
arch Documentation kernel net
configs drivers lib README
COPYING fs linux-2.4.22-1.2115.nptl REPORTING-BUGS
COPYING.modules include MAINTAINERS Rules.make
CREDITS init Makefile scripts
crypto ipc mm tmp_include_depends

[root@localhost build]# ln -s /usr/src/linux-2.4.22-1.2115.nptl/
ln: `./linux-2.4.22-1.2115.nptl': File exists

#########my comment see the last line of the output above##########


Second Step:

[root@localhost root]# cd /usr
[root@localhost usr]# cd src
[root@localhost src]# ls
linux-2.4 linux-2.4.22-1.2115.nptl redhat

[root@localhost src]# ln -s linux-2.4.22-1.2115.nptl linux

[root@localhost src]# ls
linux linux-2.4 linux-2.4.22-1.2115.nptl redhat

[root@localhost mnt]# ls
cdrom ndiswrapper-0.11 ndiswrapper-0.11.tar.gz windows

[root@localhost mnt]# cd ndiswrapper-0.11

[root@localhost ndiswrapper-0.11]# make install
make -C driver install
make[1]: Entering directory `/mnt/ndiswrapper-0.11/driver'
ld -r -o ndiswrapper.o wrapper.o iw_ndis.o pe_loader.o ntoskernel.o ndis.o misc_ funcs.o proc.o divdi3.o hal.o
mkdir -p /lib/modules/2.4.22-1.2115.nptl/misc
install -m 0644 ndiswrapper.o /lib/modules/2.4.22-1.2115.nptl/misc
/sbin/depmod -a
depmod: *** Unresolved symbols in /lib/modules/2.4.22-1.2115.nptl/misc/ndiswrapp er.o
make[1]: Leaving directory `/mnt/ndiswrapper-0.11/driver'
make -C utils install
make[1]: Entering directory `/mnt/ndiswrapper-0.11/utils'
install -m 755 loadndisdriver /sbin
install -m 755 ndiswrapper /usr/sbin
install -m 755 ndiswrapper-buginfo /usr/sbin
make[1]: Leaving directory `/mnt/ndiswrapper-0.11/utils'

#############See the output of make install!!!!!!!!!!!!#################

Third Step

[root@localhost ndiswrapper-0.11]# /sbin/modprobe ndiswrapper

/lib/modules/2.4.22-1.2115.nptl/misc/ndiswrapper.o: unresolved symbol usb_wrap_f uncs
/lib/modules/2.4.22-1.2115.nptl/misc/ndiswrapper.o: unresolved symbol usb_reset_ port
/lib/modules/2.4.22-1.2115.nptl/misc/ndiswrapper.o: unresolved symbol usb_submit _nt_urb
/lib/modules/2.4.22-1.2115.nptl/misc/ndiswrapper.o: insmod /lib/modules/2.4.22-1 .2115.nptl/misc/ndiswrapper.o failed
/lib/modules/2.4.22-1.2115.nptl/misc/ndiswrapper.o: insmod ndiswrapper failed


Thanks for your help and trying.

By the way:

Quote:

OK, so this guy installed his kernel and sources
what did you mean by source here?


Quote:

try re-compiling ndiswrapper and see if it gets you any further.
Re-compiling does mean ; start from :"make install" , and ndiswrapper -i , ,,,,etc ?

Thanks


All times are GMT -5. The time now is 01:19 AM.