Error compiling hostap-driver-0.2.4 & linux-2.6.6

Lluis xscript
Tue Aug 31 06:32:35 PDT 2004


Hi all!

I've searched through google on this list and many others looking for this
problem, and found many people had it, although the solution was nearly always
as simple as indicating some paths correctly....

but i can't get it to work without doing any nasty modifications on the
kernel includes...

the problem is on linux kernel's include/asm/irq.h file, that includes a so
called irq_vectors.h (but with #include "irq_vectors.h")

the fact is that if i change the include line with
	#include <asm/mach-default/irq_vectors.h>
everything goes without errors... but i don't want to do such things ;)

(in fact, no errors appear on compilation, but a lot of warnings do, such as
	include/asm/system.h:193: warning: dereferencing type-punned pointer
	will break strict-aliasing rules
or a lot of
	*** Warning: "hostap_remove_interface"
	[/usr/src/linuxAP-eh/hostap-driver/driver/modules/hostap_plx.ko] has
	no CRC!
and one
	*** Warning: "hostap_proc"
	[/usr/src/linuxAP-eh/hostap-driver/driver/modules/hostap] is COMMON
	symbol
and i don't know what do they mean)

well, the line with which i call the hostap-driver makefile is as follows:

cd hostap-driver && make \
	KERNEL_PATH=/usr/src/linuxAP-eh/linux \
	CC=/usr/src/linuxAP-eh/toolchain/gcc-3.3.x/toolchain_i386/bin/i386-linux-uclibc-gcc \
	PCMCIA_PATH= \
	DESTDIR=/usr/src/linuxAP-eh/Image_final \
	CFLAGS="-Os -D__KERNEL__ -DMODULE -Wall -g -c -DPRISM2_NO_DEBUG -DPRISM2_NO_PROCFS_DEBUG" \
	> /tmp/hostap-driver-build 2>&1

as i told, the versions are:

hostap-driver: 	0.2.4
linux: 		2.6.0
gcc:		3.3.4  (from uClibc's toolchain)
uClibc:		0.9.26

anybody knows why this problem continues appearing (as i found messages with
this same error from year 2003)?

by the way, i've seen on kernel's  makefile that to build external modules,
the call should be something like
	$(MAKE) -C $(KERNEL_PATH) M=$(PWD)/driver/modules

while the (as i understood) deprecated variables SUBDIRS and MODVERDIR are
used on hostap-driver's makefile
	$(MAKE) -C $(KERNEL_PATH) SUBDIRS=$(PWD)/driver/modules \
                MODVERDIR=$(PWD)/driver/modules modules

well, if any more information is necessary, just tell me and i'll give you
gladly

thanks a lot (and sorry for the length of the message)
-- 
 "And it's much the same thing with knowledge, for whenever you learn
 something new, the whole world becomes that much richer."
 -- The Princess of Pure Reason, as told by Norton Juster in The Phantom
 Tollbooth




More information about the Hostap mailing list