gcc error trying to compile the madwifi driver

Niklaus niklaus@gmail.com
Fri Apr 14 07:47:00 GMT 2006


On 4/14/06, tom arnall <kloro@cox.net> wrote:
> while trying to compile the madwifi driver, i encountered the following error:
>
> make[2]: Entering directory `/usr/src/kernel-headers-2.6.8-2-386'
>   CC [M]  /home/kloro/linux/madwifi-ng/ath_hal/ah_osdep.o
> In file included from include/asm/thread_info.h:16,
>                  from include/linux/thread_info.h:21,
>                  from include/linux/spinlock.h:12,
>                  from include/linux/capability.h:45,
>                  from include/linux/sched.h:7,
>                  from include/linux/module.h:10,
>                  from /home/kloro/linux/madwifi-ng/ath_hal/ah_osdep.c:46:
> include/asm/processor.h:87: error: array type has incomplete element type
> make[3]: *** [/home/kloro/linux/madwifi-ng/ath_hal/ah_osdep.o] Error 1
> make[2]: *** [_module_/home/kloro/linux/madwifi-ng/ath_hal] Error 2
> make[2]: Leaving directory `/usr/src/kernel-headers-2.6.8-2-386'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/home/kloro/linux/madwifi-ng/ath_hal'
> make: *** [modules] Error 1
>
> the offending line - in processor.h  - is:
>
>         extern struct tss_struct init_tss[NR_CPUS];
>
> thanks in advance for your help,

I suggest you get the latest headers like 2.6.15

>
> tom arnall
> north spit, ca
>
>
>
>



More information about the Gcc-help mailing list