2.4.24 build on alpha.

shogunx shogunx at sleekfreak.ath.cx
Mon Oct 11 19:51:43 EDT 2004


On Mon, 11 Oct 2004, Jouni Malinen wrote:

> On Mon, Oct 11, 2004 at 03:38:56PM -0400, shogunx wrote:
>
> > I'm having a bit of a problem compiling hostap-0.2.5 for the alpha
> > architecture:
>
> Which alpha system (CONFIG_ALPHA_?) is this on? Is there some special
> patches in the kernel or is this with vanilla kernel.org kernel tree?

It is a AS4100 CONFIG_ALPHA_RAWHIDE with EV5.6 processors.  This is the
first patch of several I will apply.  It is a fresh vanilla 2.4.24.

>
> > warnings from make modules
> >
> > hostap_pci.c: In function `hfa384x_from_bap':
> > hostap_pci.c:137: warning: implicit declaration of function `readw'
> > hostap_pci.c:140: warning: implicit declaration of function `readb'
> > hostap_pci.c: In function `hfa384x_to_bap':
> > hostap_pci.c:155: warning: implicit declaration of function `writew'
> > hostap_pci.c:158: warning: implicit declaration of function `writeb'
> > hostap_pci.c: In function `prism2_pci_probe':
> > hostap_pci.c:257: warning: implicit declaration of function `ioremap'
> > hostap_pci.c:305: warning: implicit declaration of function `iounmap'
>
> Hmm.. asm-alpha/io.h seems to be defining ioremap() as inline function
> and this should be included for hostap_pci.c.. However, it looks like
> asm-alpha/pci.h is not including this in the same as many other
> architectures are doing..

This might be because of the modular expandable nature of pci bus(ses) on
some alphas.

> Could you please try adding following line to
> hostap_pci.c after the #include <linux/pci.h> line and recompile?
>
> #include <asm/io.h>
>
>
> If this is not enough to fix the issue, please send the full compiler
> command that was used to compile the file? In addition, it would be
> interesting to know what makefiles you are using if you run 'make
> modules' instead of just 'make' that the Host AP driver is normally
> using.. Is this patched into the kernel tree?
>

Yes it is patched into the kernel tree.  Here is the output after the addition
to hostap_pci.c:

make[3]: Entering directory `/usr/src/linux-2.4.24/drivers/net/wireless'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.24/include -Wall -Wstrict-prototypes
-Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer
-pipe -mno-fp-regs -ffixed-8 -mcpu=ev56 -Wa,-mev6 -DMODULE  -nostdinc
-iwithprefix include -DKBUILD_BASENAME=hostap_pci  -c -o hostap_pci.o
hostap_pci.c
hostap_pci.c:165: parse error before string constant
hostap_pci.c:172: warning: type defaults to `int' in declaration of `reg'
hostap_pci.c:172: conflicting types for `reg'
hostap_pci.c:170: previous declaration of `reg'
hostap_pci.c:172: `dev' undeclared here (not in a function)
hostap_pci.c:172: initializer element is not constant
hostap_pci.c:172: warning: data definition has no type or storage class
hostap_pci.c:173: parse error before string constant
hostap_pci.c:173: warning: type defaults to `int' in declaration of
`printk'
hostap_pci.c:173: warning: function declaration isn't a prototype
hostap_pci.c:173: warning: data definition has no type or storage class
hostap_pci.c:199: parse error before `('
hostap_pci.c:200: parse error before `2'
hostap_pci.c:200: warning: type defaults to `int' in declaration of
`mdelay'
hostap_pci.c:200: warning: function declaration isn't a prototype
hostap_pci.c:200: warning: data definition has no type or storage class
hostap_pci.c:201: parse error before `('
hostap_pci.c:202: parse error before `2'
hostap_pci.c:202: warning: type defaults to `int' in declaration of
`mdelay'
hostap_pci.c:202: warning: function declaration isn't a prototype
hostap_pci.c:202: warning: data definition has no type or storage class
hostap_pci.c:228: `prism2_pci_cor_sreset' undeclared here (not in a
function)
hostap_pci.c:228: initializer element is not constant
hostap_pci.c:228: (near initialization for `prism2_pci_funcs.cor_sreset')
hostap_pci.c: In function `prism2_pci_probe':
hostap_pci.c:267: warning: implicit declaration of function
`prism2_init_local_data'
hostap_pci.c:267: warning: assignment makes pointer from integer without a
cast
hostap_pci.c:278: warning: implicit declaration of function
`prism2_pci_cor_sreset'
hostap_pci.c:282: `prism2_interrupt' undeclared (first use in this
function)
hostap_pci.c:282: (Each undeclared identifier is reported only once
hostap_pci.c:282: for each function it appears in.)
hostap_pci.c:289: warning: implicit declaration of function
`prism2_hw_config'
hostap_pci.c:298: warning: implicit declaration of function
`hostap_hw_ready'
hostap_pci.c:311: warning: implicit declaration of function
`prism2_free_local_data'
hostap_pci.c: In function `prism2_pci_remove':
hostap_pci.c:325: warning: implicit declaration of function
`hfa384x_disable_interrupts'
hostap_pci.c: At top level:
hostap_pci.c:129: warning: `hfa384x_from_bap' defined but not used
hostap_pci.c:147: warning: `hfa384x_to_bap' defined but not used
make[3]: *** [hostap_pci.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.4.24/drivers/net/wireless'
make[2]: *** [_modsubdir_wireless] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.24/drivers/net'
make[1]: *** [_modsubdir_net] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.24/drivers'
make: *** [_mod_drivers] Error 2

Scott


> --
> Jouni Malinen                                            PGP id EFC895FA
> _______________________________________________
> HostAP mailing list
> HostAP at shmoo.com
> http://lists.shmoo.com/mailman/listinfo/hostap
>

sleekfreak pirate broadcast
http://sleekfreak.ath.cx:81/




More information about the HostAP mailing list