RE: Error building berlios driver: IW_MODE_MONITOR undeclared

"Balint" <[email protected]> Wed, 13 Oct 2004 08:02:01 +1000
Newsgroups gmane.linux.drivers.at76c503a.user
Message-ID <006c01c4b0a7$1a068b40$0101a8c0@trogdor>
Hi,

If I recall correctly the source is looking for that in
"linux/wireless.h" which it should be finding in your
"/lib/modules/2.4.19/build/include/linux/wireless.h".

I'm guessing that version of the kernel doesn't have sufficiently new
wireless extensions to have that symbol defined (despite the fact you
might have the newer IW headers installed elsewhere).

Sounds like you might have to either fix your paths so it picks up the
newer IW version or manually fix your files... The question is will the
kernel still be happy?

Good luck!
Balint

> -----Original Message-----
> From: [email protected] [mailto:at76c503a-user-
> [email protected]] On Behalf Of Florian Boelstler
> Sent: Wednesday, 13 October 2004 2:52 AM
> To: [email protected]
> Subject: [at76c503a-user] Error building berlios driver:
IW_MODE_MONITOR
> undeclared
> 
> Hi,
> 
> I just tried to build the recent cvs nightly tarball (from
> at76c503a.berlios.de, v0.12beta14) on a Debian Woody system running
> kernel 2.4.19.
> 
> I got the following error:
> 
> gcc -MD -O2 -Wall -Wstrict-prototypes -pipe -fno-strict-aliasing
> -DCOMPILE_FIRMWARE_INTO_DRIVER -fno-common -Wno-sign-compare
-Wno-unused
> -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB
> -I/lib/modules/2.4.19/build/include -DMODVERSIONS -include
> /lib/modules/2.4.19/build/include/linux/modversions.h -c at76c503.c
> at76c503.c: In function `start_scan':
> at76c503.c:1844: `IW_MODE_MONITOR' undeclared (first use in this
function)
> at76c503.c:1844: (Each undeclared identifier is reported only once
> at76c503.c:1844: for each function it appears in.)
> at76c503.c: In function `kevent':
> at76c503.c:2917: `IW_MODE_MONITOR' undeclared (first use in this
function)
> at76c503.c: In function `at76c503_iw_handler_set_mode':
> at76c503.c:5297: `IW_MODE_MONITOR' undeclared (first use in this
function)
> at76c503.c: In function `set_monitor_mode':
> at76c503.c:6457: `IW_MODE_MONITOR' undeclared (first use in this
function)
> at76c503.c: In function
`at76c503_iw_handler_PRIV_IOCTL_SET_MONITOR_MODE':
> at76c503.c:6500: `IW_MODE_MONITOR' undeclared (first use in this
function)
> make: *** [at76c503.o] Error 1
> 
> 
> The README says that the driver works on 2.4.x and 2.6.x. I
successfully
> build the driver on various 2.6.x-based systems.
> Do I have to use an official release version? 0.11?
> 
> wireless-tools is v23-2.
> 
> Thanks in advance,
> 
> Regards,
> 
>    Florian
> 
> 
> --
> 
> 
> _______________________________________________
> at76c503a-user mailing list
> [email protected]
> http://lists.berlios.de/mailman/listinfo/at76c503a-user