Re: Compile error with hostap, 2.4.19, and DEC Alpha.


From: Jouni Malinen (jkmaline_at_cc.hut.fi)
Date: 2002-09-11 16:40:06 UTC



On Mon, Sep 09, 2002 at 08:38:09PM -0500, Fulmer, John wrote:

> Okay. After almost a week, I've got my little DEC trying to compile against
> the kernel instead of the pcmcia-cs package.

> /usr/src/linux/include/asm/current.h:4: global register variable follows a
> function definition
> /usr/src/linux/include/asm/current.h:4: warning: call-clobbered register
> used for global register variable

Uh.. If I understood that correctly, something has defined a function called current() and it certainly does not like Alpha version of asm/current.h.. Maybe something else should be included before or something should be re-ordered in header includes. At least the Host AP driver should not be using a function with that name.

I don't have access to any Linux-Alpha boxes and just running the driver through C pre-processor didn't so anything useful, so I would have to build a cross-compiler for testing this out some more.

> In file included from driver/modules/hostap_cs.c:59:
> driver/modules/hostap_hw.c: In function `prism2_transmit_cb':
> driver/modules/hostap_hw.c:1434: warning: cast from pointer to integer of
> different size
> driver/modules/hostap_hw.c: In function `prism2_transmit':
> driver/modules/hostap_hw.c:1514: warning: cast to pointer from integer of
> different size

That is ugly, but I don't think it causes an error. TX path is using a pointer to represent a small integer value to avoid having to allocate small buffer and storing the integer there.. I should probably at least fix it to make sure that the value is type casted correctly on all systems.

> The driver compiles fine if I use the pcmcia-cs driver package instead,
> which is what I am currently running on.

Hmm.. Maybe it includes something else for this.. Are you using the same kernel version at /usr/src/linux (with changed configuration though) in both cases?

-- 
Jouni Malinen                                            PGP id EFC895FA


This archive was generated by hypermail 2.1.4.