Problem with compiling hostap-driver-0.1.1.tar.gz

Ingo Hoffmann ingo
Fri Oct 31 15:33:02 PST 2003


I tried to compile hostap-driver-0.1.1.tar.gz on new SuSE 9.0 (kernel
2.4.21 with SuSE extensions) and got attached error message.
The problem is obviously that there is a problem with the HZ macro,
which has been changed in this kernel version (or in the according SuSE
changes?).

I changed following two lines

static int ap_max_inactivity[MAX_PARM_DEVICES] = { AP_MAX_INACTIVITY / 
HZ,DEF_INTS };

to

static int ap_max_inactivity[MAX_PARM_DEVICES] = { 300, DEF_INTS };

because AP_MAX_INACTIVITY is defined in hostap_ap.h as

#define AP_MAX_INACTIVITY (5 * 60 * HZ)

Afterwards compilation was completed sucessfully!

Regards Ingo

Here the kernel version (from dmesg):
Linux version 2.4.21-99-athlon (root at i386.suse.de) (gcc version 3.3.1
(SuSE Linux)) #1 Wed Sep 24 13:34:32 UTC 2003

Here the the result of make pci:
gcc -I/usr/src/linux/include -include driver/modules/hostap.ver  -O2
-D__KERNEL__ -DMODULE -Wall -g -c  -DMODVERSIONS -include
/usr/src/linux/include/linux/modversions.h -fomit-frame-pointer -o
driver/modules/hostap.o driver/modules/hostap.c
In file included from /usr/src/linux/include/linux/list.h:3,
                  from /usr/src/linux/include/linux/module.h:12,
                  from driver/modules/hostap.c:21:
/usr/src/linux/include/asm/system.h: In function `__set_64bit_var':
/usr/src/linux/include/asm/system.h:189: Warnung: dereferencing
type-punned pointer will break strict-aliasing rules
/usr/src/linux/include/asm/system.h:189: Warnung: dereferencing
type-punned pointer will break strict-aliasing rules
In file included from driver/modules/hostap.c:113:
driver/modules/hostap_ap.c: At top level:
driver/modules/hostap_ap.c:24: error: initializer element is not constant
driver/modules/hostap_ap.c:24: error: (near initialization for
`ap_max_inactivity[0]')
driver/modules/hostap_ap.c: In function `ap_debug_proc_read':
driver/modules/hostap_ap.c:69: Warnung: unsigned int format, long
unsigned int arg (arg 3)
make: *** [driver/modules/hostap.o] Fehler 1








More information about the Hostap mailing list