Prism2-2002-05-19 Compilation Errors (unknown fields)


From: Alex Ly (Ly_at_lytek.net)
Date: 2002-06-05 01:00:24 UTC



Hi All,

I'm having problems installing the PLX drivers for my RedHat systems running kernel 2.4.2-2. I've also tried on a different RedHat system running kernel 2.4.9-31 with no luck. The same compilation errors occur in both instances. They are as follows:

[root_at_obsession Prism2-2002-05-16]# make plx

gcc -I/usr/src/linux-2.4/include -O2 -D__KERNEL__ -DMODULE -Wall -c -DMODVERSIONS -include /usr/src/linux-2.4/include/linux/modversions.h -fomit-frame-pointer -o driver/modules/hostap_plx.o driver/modules/hostap_plx.c
driver/modules/hostap_plx.c: In function `prism2_plx_probe':
driver/modules/hostap_plx.c:327: warning: implicit declaration of function `pci_disable_device'
driver/modules/hostap_plx.c: At top level:
driver/modules/hostap_plx.c:360: unknown field `save_state' specified in initializer
driver/modules/hostap_plx.c:361: duplicate initializer
driver/modules/hostap_plx.c:361: (near initialization for `prism2_plx_drv_id.suspend')
driver/modules/hostap_plx.c:363: unknown field `enable_wake' specified in initializer
driver/modules/hostap_plx.c:364: warning: excess elements in struct initializer
driver/modules/hostap_plx.c:364: warning: (near initialization for `prism2_plx_drv_id')
make: *** [driver/modules/hostap_plx.o] Error 1

If I remove the field "save_state" and "enable_wake" from the struct it compiles okay. The warning (driver/modules/hostap_plx.c:327: warning: implicit declaration of function `pci_disable_device') still exists, but I then get unresolved symbols when I perform a 'make install_plx'.

[root_at_obsession Prism2-2002-05-16]# depmod -a
depmod: *** Unresolved symbols in /lib/modules/2.4.2-2/net/hostap_plx.o

[root_at_obsession Prism2-2002-05-16]# depmod -e
depmod: *** Unresolved symbols in /lib/modules/2.4.2-2/net/hostap_plx.o depmod: pci_disable_device

Any suggestions or fix for the problems I'm having would be much appreciated. Thanx.

-Alex



This archive was generated by hypermail 2.1.4.