Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-24-2005, 03:53 PM   #1
LQ Newbie
Registered: May 2005
Distribution: Mandrake
Posts: 9

Rep: Reputation: 0
Question usb.c error using make

Hello all

I'm quite newbie using linux so please try to understand. =)

Situation is following:

I need to use NDISwrapper (v1.1) to make driver for Wireless lan PC card (zyxel B-101 or B-120) from Windows XP driver, and I found instructions to this...

Problem is that when I give command "make" in NDISwrapper dir I get errors like this:

/home/pertti/ndiswrapper-1.1/driver/usb.c: In function 'usb_select_configuration' :

/home/pertti/ndiswrapper-1.1/driver/usb.c:527: error: iinvalid type argument of '->'

/home/pertti/ndiswrapper-1.1/driver/usb.c:528: error: iinvalid type argument of '->'

Make[3]: *** [/home/pertti/ndiswrapper-1.1/driver/usb.o] Error 1
Make[2]: *** [/home/pertti/ndiswrapper-1.1/driver/] Error 2
Make[2]: Leaving directory '/usr/src/linux-2.6.3-7mdk'
Make[1]: *** [default] Error 2
Make[1]: Leaving directory '/home/pertti/ndiswrapper-1.1/driver'
I'm using Mandrake 10.0 distribution with KDE
My Kernel is 2.6.3-7mdk (as you can see)
Make version is 3.80
GCC version is 3.3.2

My computer is Toshiba Satellite 4000cds (Pentium II 266 mmx, 64Mb RAM, ~16Gb HD)
Old 06-18-2005, 04:52 AM   #2
LQ Newbie
Registered: Jun 2005
Posts: 2

Rep: Reputation: 0
ndiswrapper usb.c compilation error

if you replace the offending lines with more decomposed one,
teh compiler gets happy

#if 1
int j=(intf)->num_altsetting;
struct usb_host_interface * intf2=&(intf)->altsetting[j];
for (i = 0; i < intf2->desc.bNumEndpoints; i++) {
desc = &(intf2->endpoint + i)->desc;
for (i = 0; i < CUR_ALT_SETTING(intf)->desc.bNumEndpoints; i++) {
desc = &(CUR_ALT_SETTING(intf)->endpoint + i)->desc;
for (i = 0; i < CUR_ALT_SETTING(intf).bNumEndpoints; i++) {
desc = &((CUR_ALT_SETTING(intf)).endpoint[i]);

after this, you can have two other problems:

first, modprobe refusing your driver for compatibility reason:
use of gcc-3.4 instead of gcc-3.3
As I like living dangerously, with a binary editor I patched the
string gcc-3.4 in the module and it is OK

Then you can load the module but in /var/log/message you
see that it is unhappy with your drivers file. The problem there
is the new file name: xxxx:xxxx:xxxx:xxxx.Y.conf instead of
xxxx:xxxx:xxxx:xxxx.conf where Y is 0 for an USB card and 5
for a PCI card.

And then it works!!!!


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
lopster v1.2.2 make error: No rule to make target `m4/glibc21.m4' Kropotkin Fedora 0 10-31-2004 11:19 AM
Kernel make bzImage error "undefined reference" w/ Prism2.5 USB driver under 2.6 joachimvb Mandriva 1 09-24-2004 07:43 PM
make failing to make with this error. Help needed? vdemuth Linux - Software 4 06-20-2004 03:08 PM
./MAKEDEV usb error - dont know hot to make device "usb" Zero-0-Effect Linux From Scratch 4 04-10-2004 07:09 PM
make: cc: command not found make: *** [gzip.o]error 127 zyjk Linux - Newbie 5 02-08-2002 09:58 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:55 AM.

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