problems with 0.0.4 and gcc-3.2/3.3

Francois Gurin matrix at spic.net
Fri Aug 1 22:56:30 EDT 2003



I've been working on 0.0.4 for a few days now and have encountered 
problems compiling hostap with gcc 3.2 and 3.3.  When i use 2.95 
everything works as expected.
I had thought 3.2 was working fine until fairly recently.

The system is debian sid/unstable on i386 with kernel 2.4.21-pre3.  

3.2 compiles cleanly and loads without errors and intitalizes the card, 
then immediately locks the system.  

3.3 shows the attached errors when compiling.  
when the module loads, the kernel panics and the system becomes unstable.

any ideas?

--francois

-------------- next part --------------
/usr/bin/make KERNELRELEASE=2.4.21-pre3-fg4 KERNEL_PATH=/usr/src/kernel-source-2.4.21-pre3 \
	DESTDIR=/usr/src/modules/hostap-source/debian/hostap-modules-2.4.21-pre3-fg4 pccard
make[1]: Entering directory `/usr/src/modules/hostap-source'
gcc-3.3 -I/usr/src/kernel-source-2.4.21-pre3/include -O2 -D__KERNEL__ -DMODULE -Wall -g -c  -DMODVERSIONS -include /usr/src/kernel-source-2.4.21-pre3/include/linux/modversions.h -fomit-frame-pointer -E -D__GENKSYMS__ driver/modules/hostap.c | \
	/sbin/genksyms -k 2.4.21 > driver/modules/hostap.ver
In file included from driver/modules/hostap.c:21:
/usr/src/kernel-source-2.4.21-pre3/include/linux/module.h:15:1: warning: "_set_ver" redefined
In file included from /usr/src/kernel-source-2.4.21-pre3/include/linux/modversions.h:3,
                 from <command line>:8:
/usr/src/kernel-source-2.4.21-pre3/include/linux/modsetver.h:9:1: warning: this is the location of the previous definition
gcc-3.3 -I/usr/src/kernel-source-2.4.21-pre3/include -O2 -D__KERNEL__ -DMODULE -Wall -g -c  -DMODVERSIONS -include /usr/src/kernel-source-2.4.21-pre3/include/linux/modversions.h -fomit-frame-pointer -E -D__GENKSYMS__ driver/modules/hostap_crypt.c | \
	/sbin/genksyms -k 2.4.21 > driver/modules/hostap_crypt.ver
In file included from driver/modules/hostap_crypt.c:18:
/usr/src/kernel-source-2.4.21-pre3/include/linux/module.h:15:1: warning: "_set_ver" redefined
In file included from /usr/src/kernel-source-2.4.21-pre3/include/linux/modversions.h:3,
                 from <command line>:8:
/usr/src/kernel-source-2.4.21-pre3/include/linux/modsetver.h:9:1: warning: this is the location of the previous definition
gcc-3.3 -I/usr/src/kernel-source-2.4.21-pre3/include -include driver/modules/hostap_crypt.ver -include driver/modules/hostap.ver -O2 -D__KERNEL__ -DMODULE -Wall -g -c  -DMODVERSIONS -include /usr/src/kernel-source-2.4.21-pre3/include/linux/modversions.h -fomit-frame-pointer -o driver/modules/hostap_cs.o driver/modules/hostap_cs.c
In file included from /usr/src/kernel-source-2.4.21-pre3/include/asm/semaphore.h:39,
                 from /usr/src/kernel-source-2.4.21-pre3/include/linux/fs.h:200,
                 from /usr/src/kernel-source-2.4.21-pre3/include/linux/capability.h:17,
                 from /usr/src/kernel-source-2.4.21-pre3/include/linux/binfmts.h:5,
                 from /usr/src/kernel-source-2.4.21-pre3/include/linux/sched.h:9,
                 from /usr/src/kernel-source-2.4.21-pre3/include/linux/skbuff.h:19,
                 from driver/modules/hostap_cs.c:13:
/usr/src/kernel-source-2.4.21-pre3/include/asm/system.h: In function `__set_64bit_var':
/usr/src/kernel-source-2.4.21-pre3/include/asm/system.h:190: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/src/kernel-source-2.4.21-pre3/include/asm/system.h:190: warning: dereferencing type-punned pointer will break strict-aliasing rules
gcc-3.3 -I/usr/src/kernel-source-2.4.21-pre3/include -include driver/modules/hostap_crypt.ver -include driver/modules/hostap.ver -O2 -D__KERNEL__ -DMODULE -Wall -g -c  -DMODVERSIONS -include /usr/src/kernel-source-2.4.21-pre3/include/linux/modversions.h -fomit-frame-pointer -o driver/modules/hostap.o driver/modules/hostap.c
In file included from /usr/src/kernel-source-2.4.21-pre3/include/asm/semaphore.h:39,
                 from /usr/src/kernel-source-2.4.21-pre3/include/linux/fs.h:200,
                 from /usr/src/kernel-source-2.4.21-pre3/include/linux/capability.h:17,
                 from /usr/src/kernel-source-2.4.21-pre3/include/linux/binfmts.h:5,
                 from /usr/src/kernel-source-2.4.21-pre3/include/linux/sched.h:9,
                 from /usr/src/kernel-source-2.4.21-pre3/include/linux/mm.h:4,
                 from /usr/src/kernel-source-2.4.21-pre3/include/linux/slab.h:14,
                 from driver/modules/hostap.c:23:
/usr/src/kernel-source-2.4.21-pre3/include/asm/system.h: In function `__set_64bit_var':
/usr/src/kernel-source-2.4.21-pre3/include/asm/system.h:190: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/src/kernel-source-2.4.21-pre3/include/asm/system.h:190: warning: dereferencing type-punned pointer will break strict-aliasing rules
gcc-3.3 -I/usr/src/kernel-source-2.4.21-pre3/include -include driver/modules/hostap_crypt.ver -include driver/modules/hostap.ver -O2 -D__KERNEL__ -DMODULE -Wall -g -c  -DMODVERSIONS -include /usr/src/kernel-source-2.4.21-pre3/include/linux/modversions.h -fomit-frame-pointer -o driver/modules/hostap_crypt.o driver/modules/hostap_crypt.c
In file included from /usr/src/kernel-source-2.4.21-pre3/include/asm/semaphore.h:39,
                 from /usr/src/kernel-source-2.4.21-pre3/include/linux/fs.h:200,
                 from /usr/src/kernel-source-2.4.21-pre3/include/linux/capability.h:17,
                 from /usr/src/kernel-source-2.4.21-pre3/include/linux/binfmts.h:5,
                 from /usr/src/kernel-source-2.4.21-pre3/include/linux/sched.h:9,
                 from /usr/src/kernel-source-2.4.21-pre3/include/linux/mm.h:4,
                 from /usr/src/kernel-source-2.4.21-pre3/include/linux/slab.h:14,
                 from driver/modules/hostap_crypt.c:20:
/usr/src/kernel-source-2.4.21-pre3/include/asm/system.h: In function `__set_64bit_var':
/usr/src/kernel-source-2.4.21-pre3/include/asm/system.h:190: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/src/kernel-source-2.4.21-pre3/include/asm/system.h:190: warning: dereferencing type-punned pointer will break strict-aliasing rules
gcc-3.3 -I/usr/src/kernel-source-2.4.21-pre3/include -include driver/modules/hostap_crypt.ver -include driver/modules/hostap.ver -O2 -D__KERNEL__ -DMODULE -Wall -g -c  -DMODVERSIONS -include /usr/src/kernel-source-2.4.21-pre3/include/linux/modversions.h -fomit-frame-pointer -o driver/modules/hostap_crypt_wep.o driver/modules/hostap_crypt_wep.c
In file included from /usr/src/kernel-source-2.4.21-pre3/include/asm/semaphore.h:39,
                 from /usr/src/kernel-source-2.4.21-pre3/include/linux/fs.h:200,
                 from /usr/src/kernel-source-2.4.21-pre3/include/linux/capability.h:17,
                 from /usr/src/kernel-source-2.4.21-pre3/include/linux/binfmts.h:5,
                 from /usr/src/kernel-source-2.4.21-pre3/include/linux/sched.h:9,
                 from /usr/src/kernel-source-2.4.21-pre3/include/linux/mm.h:4,
                 from /usr/src/kernel-source-2.4.21-pre3/include/linux/slab.h:14,
                 from driver/modules/hostap_crypt_wep.c:16:
/usr/src/kernel-source-2.4.21-pre3/include/asm/system.h: In function `__set_64bit_var':
/usr/src/kernel-source-2.4.21-pre3/include/asm/system.h:190: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/src/kernel-source-2.4.21-pre3/include/asm/system.h:190: warning: dereferencing type-punned pointer will break strict-aliasing rules

Run 'make install_pccard' as root to install hostap_cs.o
Run 'make install_plx' as root to install hostap_plx.o
Run 'make install_pci' as root to install hostap_pci.o

make[1]: Leaving directory `/usr/src/modules/hostap-source'
/usr/bin/make KERNELRELEASE=2.4.21-pre3-fg4 KERNEL_PATH=/usr/src/kernel-source-2.4.21-pre3 \
	DESTDIR=/usr/src/modules/hostap-source/debian/hostap-modules-2.4.21-pre3-fg4 plx
make[1]: Entering directory `/usr/src/modules/hostap-source'
gcc-3.3 -I/usr/src/kernel-source-2.4.21-pre3/include -include driver/modules/hostap_crypt.ver -include driver/modules/hostap.ver -O2 -D__KERNEL__ -DMODULE -Wall -g -c  -DMODVERSIONS -include /usr/src/kernel-source-2.4.21-pre3/include/linux/modversions.h -fomit-frame-pointer -o driver/modules/hostap_plx.o driver/modules/hostap_plx.c
In file included from /usr/src/kernel-source-2.4.21-pre3/include/asm/semaphore.h:39,
                 from /usr/src/kernel-source-2.4.21-pre3/include/linux/fs.h:200,
                 from /usr/src/kernel-source-2.4.21-pre3/include/linux/capability.h:17,
                 from /usr/src/kernel-source-2.4.21-pre3/include/linux/binfmts.h:5,
                 from /usr/src/kernel-source-2.4.21-pre3/include/linux/sched.h:9,
                 from /usr/src/kernel-source-2.4.21-pre3/include/linux/skbuff.h:19,
                 from driver/modules/hostap_plx.c:15:
/usr/src/kernel-source-2.4.21-pre3/include/asm/system.h: In function `__set_64bit_var':
/usr/src/kernel-source-2.4.21-pre3/include/asm/system.h:190: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/src/kernel-source-2.4.21-pre3/include/asm/system.h:190: warning: dereferencing type-punned pointer will break strict-aliasing rules

Run 'make install_pccard' as root to install hostap_cs.o
Run 'make install_plx' as root to install hostap_plx.o
Run 'make install_pci' as root to install hostap_pci.o

make[1]: Leaving directory `/usr/src/modules/hostap-source'
/usr/bin/make KERNELRELEASE=2.4.21-pre3-fg4 KERNEL_PATH=/usr/src/kernel-source-2.4.21-pre3 \
	DESTDIR=/usr/src/modules/hostap-source/debian/hostap-modules-2.4.21-pre3-fg4 pci
make[1]: Entering directory `/usr/src/modules/hostap-source'
gcc-3.3 -I/usr/src/kernel-source-2.4.21-pre3/include -include driver/modules/hostap_crypt.ver -include driver/modules/hostap.ver -O2 -D__KERNEL__ -DMODULE -Wall -g -c  -DMODVERSIONS -include /usr/src/kernel-source-2.4.21-pre3/include/linux/modversions.h -fomit-frame-pointer -o driver/modules/hostap_pci.o driver/modules/hostap_pci.c
In file included from /usr/src/kernel-source-2.4.21-pre3/include/asm/semaphore.h:39,
                 from /usr/src/kernel-source-2.4.21-pre3/include/linux/fs.h:200,
                 from /usr/src/kernel-source-2.4.21-pre3/include/linux/capability.h:17,
                 from /usr/src/kernel-source-2.4.21-pre3/include/linux/binfmts.h:5,
                 from /usr/src/kernel-source-2.4.21-pre3/include/linux/sched.h:9,
                 from /usr/src/kernel-source-2.4.21-pre3/include/linux/skbuff.h:19,
                 from driver/modules/hostap_pci.c:12:
/usr/src/kernel-source-2.4.21-pre3/include/asm/system.h: In function `__set_64bit_var':
/usr/src/kernel-source-2.4.21-pre3/include/asm/system.h:190: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/src/kernel-source-2.4.21-pre3/include/asm/system.h:190: warning: dereferencing type-punned pointer will break strict-aliasing rules

Run 'make install_pccard' as root to install hostap_cs.o
Run 'make install_plx' as root to install hostap_plx.o
Run 'make install_pci' as root to install hostap_pci.o

-------------- next part --------------
hostap_crypt: registered algorithm 'NULL'
hostap_cs: 0.0.4 - 2003-07-27 (Jouni Malinen <jkmaline at cc.hut.fi>)
hostap_cs: setting Vcc=33 (constant)
hostap_cs: CS_EVENT_CARD_INSERTION
prism2_config()
hostap_cs: setting Vcc=33 (from config)
Checking CFTABLE_ENTRY 0x01 (default 0x01)
IO window settings: cfg->io.nwin=1 dflt.io.nwin=1
io->flags = 0x0046, io.base=0x0000, len=64
hostap_cs: index 0x01: Vcc 3.3, irq 3, io 0x0100-0x013f
divert: allocating divert_blk for wlan0
hostap_cs: Registered netdevice wlan0
prism2_hw_init()
prism2_hw_init: initialized in 100 ms
Unable to handle kernel NULL pointer dereference at virtual address 00000000
 printing eip:
c0114462
*pde = 00000000
Oops: 0002
CPU:    0
EIP:    0010:[<c0114462>]    Not tainted
EFLAGS: 00010082
eax: cc1dd81c   ebx: 00000000   ecx: 00000202   edx: cd26f71c
esi: cd26f714   edi: cd26e000   ebp: 00000000   esp: cd26f6f8
ds: 0018   es: 0018   ss: 0018
Process cardmgr (pid: 1075, stackpage=cd26f000)
Stack: cc1dd810 cd26f714 c0105ad5 c5208200 cc1dd810 cc1dd800 c5208200 00000001 
       cd26e000 cc1dd81c 00000000 c0105b9b cc1dd810 0000fd0b cf908462 0000a7bc 
       cd26f764 ce1b2260 c5208200 cf90ac4b c5208200 cd26fb84 cf902e52 c5208200 
Call Trace:    [<c0105ad5>] [<c0105b9b>] [<cf908462>] [<cf90ac4b>] [<cf902e52>]
  [<c0113e46>] [<cf902d9d>] [<c0115e50>] [<cf9035dc>] [<cf90ac4b>] [<cf9037e7>]
  [<c0115e50>] [<cf907c86>] [<cf8eaafb>] [<cf8eabe2>] [<cf8ebe9d>] [<cf8eaafb>]
  [<cf8eabe2>] [<cf8ec010>] [<c011d6ab>] [<c011330e>] [<c011330e>] [<c011c89d>]
  [<c011964b>] [<c011959a>] [<c01193cc>] [<cf8eaafb>] [<cf8eabe2>] [<cf8ebe9d>]
  [<cf8eaafb>] [<cf8eabe2>] [<cf8ec010>] [<c011d6ab>] [<c011330e>] [<c0115ce3>]
  [<c0115e50>] [<cf907f99>] [<cf90b1e0>] [<cf907ecc>] [<cf8ef04c>] [<cf906e80>]
  [<c0115f01>] [<cf8f00d8>] [<cf907609>] [<cf90b1e0>] [<cf907ecc>] [<cf8ee528>]
  [<cf8fb615>] [<cf8fb655>] [<cf8fc005>] [<c01ebb89>] [<c01eb262>] [<c01e9d5c>]
  [<c022e83b>] [<c01136c8>] [<c0125973>] [<c0125ce9>] [<c013e68d>] [<c0106b8f>]

Code: 89 13 51 9d 5b 5e c3 56 53 89 d6 9c 5a fa 8d 5e 08 8b 4b 04 
 <7>wlan0: hfa384x_cmd: entry still in list? (entry=c81d7760, type=0, res=0)
wlan0: hfa384x_cmd: command was not completed (res=0, entry=c81d7760, type=0, cmd=0x0021, param0=0xfdc6, EVSTAT=8000 INTEN=0010)
wlan0: hfa384x_get_rid: CMDCODE_ACCESS failed (res=-110, rid=fdc6, len=12)
Unable to handle kernel NULL pointer dereference at virtual address 00000000
 printing eip:
c0113715
*pde = 00000000
Oops: 0000
CPU:    0
EIP:    0010:[<c0113715>]    Not tainted
EFLAGS: 00210097
eax: cc1dd81c   ebx: cc1dd818   ecx: 00000000   edx: 00000003
esi: cc1dd810   edi: 00000001   ebp: ca3d7e40   esp: ca3d7e28
ds: 0018   es: 0018   ss: 0018
Process wmwave (pid: 1353, stackpage=ca3d7000)
Stack: ffffff92 cc1dd810 cc1dd800 cc1dd81c 00200286 00000003 c5208200 c01059f6 
       c0105bb4 cc1dd810 00000001 0000004e cf90846c 0000fdc6 33323130 37363534 
       ca3d7f5c c5208200 ca3d7ecc cf93fed8 cf93fe94 c5208200 0000fdc6 ca3d7e9c 
Call Trace:    [<c01059f6>] [<c0105bb4>] [<cf90846c>] [<cf93fed8>] [<cf93fe94>]
  [<c022e83b>] [<cf93fef0>] [<c01136c8>] [<c01f5c70>] [<cf93fed8>] [<c01f05ac>]
  [<c021bfc9>] [<c01e941a>] [<c013e68d>] [<c0106b8f>]

Code: 8b 01 85 45 fc 74 4c 31 c0 9c 5e fa c7 01 00 00 00 00 83 79 
 <7>hostap_cs: CS_EVENT_CARD_REMOVAL
wlan0: Interrupt, but dev not OK
prism2_release
wlan0: card already removed or not configured during shutdown
release - done


More information about the HostAP mailing list