PDA

View Full Version : Error when Installing Wireless Card driver


CICA
2005-06-28, 12:07 PM CDT
How'ya folks...

I've been trying to install a driver for my wireless card so I can connect to the Internet using my Linux box... When running the "make install" command (as the installation instructions says) I recieve the following error:

[root@localhost linux-wlan-ng-0.1.6]# make install
set -e; for d in src doc man etc ; do make -C $d install ; done
make[1]: Entering directory `/tmp/linux-wlan-ng-0.1.6/src'
set -e; for d in am930 p80211 prism2 shared wlanctl wland nwepgen skeleton mkmeta `cat *.addon`; do make -C $d install ; done
cat: *.addon: No such file or directory
make[2]: Entering directory `/tmp/linux-wlan-ng-0.1.6/src/am930'
Nothing to do...
make[2]: Leaving directory `/tmp/linux-wlan-ng-0.1.6/src/am930'
make[2]: Entering directory `/tmp/linux-wlan-ng-0.1.6/src/p80211'
cc -O2 -Wall -Wstrict-prototypes -Winline -fomit-frame-pointer -pipe -D__LINUX_WLAN__ -D__KERNEL__ -DMODULE=1 -I../include -I/usr/src/linux/include -c -o p80211conv.o p80211conv.c
In file included from ../include/wlan/wlan_compat.h:461,
from p80211conv.c:58:
/usr/include/linux/modversions.h:1:2: error: #error Modules should never use kernel-headers system headers,
/usr/include/linux/modversions.h:2:2: error: #error but rather headers from the appropriate kernel package.
/usr/include/linux/modversions.h:3:2: error: #error Change -I/usr/src/linux/include (or similar) to
/usr/include/linux/modversions.h:4:2: error: #error -I/lib/modules/$(uname -r)/build/include
/usr/include/linux/modversions.h:5:2: error: #error to build against the currently-running kernel.
In file included from /usr/src/linux/include/asm/processor.h:18,
from /usr/src/linux/include/asm/thread_info.h:17,
from /usr/src/linux/include/linux/thread_info.h:21,
from /usr/src/linux/include/linux/spinlock.h:12,
from /usr/src/linux/include/linux/capability.h:45,
from /usr/src/linux/include/linux/sched.h:7,
from /usr/src/linux/include/linux/module.h:10,
from p80211conv.c:61:
/usr/src/linux/include/asm/system.h: In function ‘__set_64bit_var’:
/usr/src/linux/include/asm/system.h:193: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/src/linux/include/asm/system.h:193: warning: dereferencing type-punned pointer will break strict-aliasing rules
In file included from /usr/src/linux/include/linux/irq.h:21,
from /usr/src/linux/include/asm/hardirq.h:6,
from /usr/src/linux/include/linux/hardirq.h:6,
from /usr/src/linux/include/linux/interrupt.h:11,
from /usr/src/linux/include/asm/highmem.h:24,
from /usr/src/linux/include/linux/highmem.h:12,
from /usr/src/linux/include/linux/skbuff.h:27,
from p80211conv.c:65:
/usr/src/linux/include/asm/irq.h:16:25: error: irq_vectors.h: No such file or directory
In file included from /usr/src/linux/include/asm/hardirq.h:6,
from /usr/src/linux/include/linux/hardirq.h:6,
from /usr/src/linux/include/linux/interrupt.h:11,
from /usr/src/linux/include/asm/highmem.h:24,
from /usr/src/linux/include/linux/highmem.h:12,
from /usr/src/linux/include/linux/skbuff.h:27,
from p80211conv.c:65:
/usr/src/linux/include/linux/irq.h: At top level:
/usr/src/linux/include/linux/irq.h:72: error: ‘NR_IRQS’ undeclared here (not in a function)
In file included from /usr/src/linux/include/linux/irq.h:74,
from /usr/src/linux/include/asm/hardirq.h:6,
from /usr/src/linux/include/linux/hardirq.h:6,
from /usr/src/linux/include/linux/interrupt.h:11,
from /usr/src/linux/include/asm/highmem.h:24,
from /usr/src/linux/include/linux/highmem.h:12,
from /usr/src/linux/include/linux/skbuff.h:27,
from p80211conv.c:65:
/usr/src/linux/include/asm/hw_irq.h:28: error: ‘NR_IRQ_VECTORS’ undeclared here (not in a function)
In file included from p80211conv.c:65:
/usr/src/linux/include/linux/skbuff.h: In function ‘skb_add_data’:
/usr/src/linux/include/linux/skbuff.h:1067: warning: pointer targets in passing argument 1 of ‘csum_and_copy_from_user’ differ in signedness
p80211conv.c:66:26: error: linux/malloc.h: No such file or directory
p80211conv.c: In function ‘p80211pb_ether_to_p80211’:
p80211conv.c:231: error: ‘struct device’ has no member named ‘dev_addr’
p80211conv.c:237: error: ‘struct device’ has no member named ‘dev_addr’
p80211conv.c: In function ‘p80211pb_kfree_s’:
p80211conv.c:529: warning: implicit declaration of function ‘kfree_s’
make[2]: *** [p80211conv.o] Error 1
make[2]: Leaving directory `/tmp/linux-wlan-ng-0.1.6/src/p80211'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/tmp/linux-wlan-ng-0.1.6/src'
make: *** [install] Error 2

Can anyone **PLEASE** help me with one as I haven't got a clue :confused: as to what I should be doing (I am relatively new to Fedora)...

Thanks
CICA

tashirosgt
2005-06-28, 02:02 PM CDT
Give us a link to the driver you are trying to compile. And what version of fedora are your using? FC3? FC4? Are you using a 64 bit version?

CICA
2005-06-28, 02:24 PM CDT
Hi Tashirosgt,

I am using FC4 and the driver is called linux-wlan-ng-0.1.6. This is the URL I used to download the driver (can be found half way down the page as a .tar file)

Thanks for the reply
Rgds
CICA

CICA
2005-06-28, 02:25 PM CDT
Sorry forgot to paste the URL : http://www.guerrilla.net/gnet_linux_software.html

CICA

tashirosgt
2005-06-28, 04:29 PM CDT
I got the driver. Where do I get the pcmcia source?

CICA
2005-06-28, 09:55 PM CDT
How'ya friend...

Sorry but I ain't quite sure what u mean by "pcmcia source". Like I said I'm a total newbie to FC4 and the likes! :)

CICA

PS: I'll hazard a guess and say you're looking for the card source/brand, well its a RangeLAN-DS. Please let me know if this is not what you meant...

Rgds
CICA

tashirosgt
2005-06-29, 07:33 AM CDT
When I do the command
make config
I am asked for the kernel source and then asked for:
pcmcia-cs source dir [/usr/src/pcmcia-cs-3.2.7]: \c
So I assume one needs the source for pcmcia-cs-3.2.7

CICA
2005-06-29, 02:10 PM CDT
Hi

This may well have been were the problem was as I didn't have a source specified for pcmcia-cs.

But I have now downloaded this package and installed it in /usr/src...

Incidently the version I have is pcmcia-cs-3.2.8 (if that makes any difference)

So I take it I have to run the make config command again in the /usr/src/linux-wlan-ng dir???

Thanks for the help with this...
CICA :)

tashirosgt
2005-06-30, 07:38 AM CDT
Yes, you should do the make config again. Where did you get the pcmcia-cs source?

CICA
2005-06-30, 08:24 AM CDT
Found the source here: http://www.rocklinux.net/packages/pcmcia-cs.html

I have now made the config again. Can you please advise of the next step...

Thanks
CICA

tashirosgt
2005-06-30, 10:54 AM CDT
I can't download the file from the sourceforge link on that page. The error says "page cannot be read".

CICA
2005-06-30, 11:38 AM CDT
Funny you should say that because I had quite a bit of difficulty locating the package too.

I tried several different sites but to no avail, I kept trying that one I sent you the URL of, and eventually it came up with the download page. You could keep trying it, or if it's not too big I could mail it to you, but I'd need to check the size of it first...

What ya think??

Thanks
CICA

tashirosgt
2005-06-30, 05:17 PM CDT
ok, I have the source for pcmcia-cs. I ran the wlan's make config and got errors similar to yours. (My kernel source code was installed in /usr/src/kernels/2.6.11-1.1369_FC4-i686. Did you make a link from /usr/src/linux to that directory?)
I think the first fatal error is the one about not finding irq_vectors.h. As I read the Makefiles (for example in linux-wlan-ng-0.1.6/src/nwepgen/Makefile ) they want to look for *.h files in "$(LINUX_SRC)/include", but to find irq_vectors.h, I think they would have to look also in places like $(LINUX_SRC)/include/asm-i386/mach_default, which is where I find a file name irq_vectors.h.

I don't have any more time to look at this today, but I will look at it again tommorrow. The solution may involve editing the Makefiles to add another compile option like -I $(LINUX_SRC)/include/asm-xen/asm-i386/mach_default, which tells the compiler another path to use in looking for *.h files. But that would be alot of work!

CICA
2005-06-30, 08:00 PM CDT
Yeah I made a symlink from /usr/src/kernels/2.6.11-1.1369_FC4-i686 to /usr/src/linux...

Yeah I see what your saying about the irq_vectors, but I wouldn't be sure about the editing that would be required in the Makefiles...

Thanks for taking time to help with this, the saga continues... :)

tashirosgt
2005-07-01, 09:35 AM CDT
I think the linux-wlan-ng source that you got is not intended for the 2.6 kernel. I tried
ftp://ftp.linux-wlan.org/pub/linux-wlan-ng/
and got the file
ftp://ftp.linux-wlan.org/pub/linux-wlan-ng/linux-wlan-ng-0.2.1-pre25.tar.gz
and it compiled on FC3. I just accepted all the defaults offered by make config.

CICA
2005-07-01, 11:00 AM CDT
Hi Tashirosgt

I have tried using the package you specified, and I ran the "make config", which went considerably smoothly (compared to the "make config" of the previous package)

When running the following command "make all" I experienced the following error, which is shorter than the error I was getting with the "make install" of the previous package.

Can you please shed any light on the following error found or what steps I should take from here:

[root@localhost linux-wlan-ng-0.2.1pre25]# make all
set -e; for d in src doc man etc; do make -C $d ; done
make[1]: Entering directory `/tmp/linux-wlan-ng-0.2.1pre25/src'
set -e; for d in mkmeta p80211 prism2 shared wlanctl wland nwepgen wlancfg; do make -C $d ; done
make[2]: Entering directory `/tmp/linux-wlan-ng-0.2.1pre25/src/mkmeta'
ngcc -E -M -I../include -I/lib/modules/2.6.11-1.1369_FC4/build/include -D__LINUX_WLAN__ ../shared/p80211types.c ../shared/p80211metamsg.c ../shared/p80211metamib.c ../shared/p80211meta.c mkmetadef.c ../shared/p80211types.c ../shared/p80211metamsg.c ../shared/p80211metamib.c ../shared/p80211meta.c mkmetastruct.c > .depend
/bin/sh: ngcc: command not found
make[2]: *** [.depend] Error 127
make[2]: Leaving directory `/tmp/linux-wlan-ng-0.2.1pre25/src/mkmeta'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/tmp/linux-wlan-ng-0.2.1pre25/src'
make: *** [all] Error 2


Many thanks :)
CICA

tashirosgt
2005-07-01, 03:32 PM CDT
My interpretation of your error: Somehow the variable HOST_COMPILE has become 'n' instead of an empty string "". The Makefiles are trying to use the command $HOST_COMPILE)gcc, which should be "gcc", but in your case it is "ngcc". (Check my theory by looking in config.out and see what your HOST_COMPILE is.

Try running make config again, don't answer 'n' to anything, just press enter and take the defaults.