Package: hostap-source
Version: 1:0.4.1-1
Severity: important
Justification: fails to build from source
I cannot use "make-kpkg" to build "hostap-source" for
"linux-source-2.6.16-7" although I was able to up until Linux 2.6.12
(the last version I tried).
I'm not familiar with this code, but I think one problem is that
"linux-source-2.6.12/include/pcmcia/ds.h" defines "struct pcmcia_driver"
as:
struct pcmcia_driver {
dev_link_t *(*attach)(void);
void (*detach)(dev_link_t *);
struct module *owner;
struct device_driver drv;
};
but 2.6.16 now defines it as:
struct pcmcia_driver {
int (*probe) (struct pcmcia_device *dev);
void (*remove) (struct pcmcia_device *dev);
int (*suspend) (struct pcmcia_device *dev);
int (*resume) (struct pcmcia_device *dev);
struct module *owner;
struct pcmcia_device_id *id_table;
struct device_driver drv;
};
Perhaps I'm doing something wrong, or perhaps a newer upstream version
fixes this?
Thanks!
CC [M] /usr/src/modules/hostap-source/driver/modules/hostap_cs.o
/usr/src/modules/hostap-source/driver/modules/hostap_cs.c: In function
'prism2_attach':
/usr/src/modules/hostap-source/driver/modules/hostap_cs.c:538: warning:
implicit declaration of function 'pcmcia_register_client'
/usr/src/modules/hostap-source/driver/modules/hostap_cs.c: In function
'prism2_detach':
/usr/src/modules/hostap-source/driver/modules/hostap_cs.c:568: warning:
implicit declaration of function 'pcmcia_deregister_client'
/usr/src/modules/hostap-source/driver/modules/hostap_cs.c: At top level:
/usr/src/modules/hostap-source/driver/modules/hostap_cs.c:917: error:
unknown field 'attach' specified in initializer
/usr/src/modules/hostap-source/driver/modules/hostap_cs.c:917: warning:
excess elements in struct initializer
/usr/src/modules/hostap-source/driver/modules/hostap_cs.c:917: warning:
(near initialization for 'hostap_driver')
/usr/src/modules/hostap-source/driver/modules/hostap_cs.c:918: error:
unknown field 'detach' specified in initializer
/usr/src/modules/hostap-source/driver/modules/hostap_cs.c:918: warning:
excess elements in struct initializer
/usr/src/modules/hostap-source/driver/modules/hostap_cs.c:918: warning:
(near initialization for 'hostap_driver')
make[5]: *** [/usr/src/modules/hostap-source/driver/modules/hostap_cs.o]
Error 1
make[4]: *** [_module_/usr/src/modules/hostap-source/driver/modules]
Error 2
make[4]: Leaving directory `/usr/src/linux-source-2.6.16'
make[3]: *** [2.6] Error 2
make[3]: Leaving directory `/usr/src/modules/hostap-source'
make[2]: *** [binary-modules] Error 2
make[2]: Leaving directory `/usr/src/modules/hostap-source'
make[1]: *** [kdist_build] Error 2
make[1]: Leaving directory `/usr/src/modules/hostap-source'
Module /usr/src/modules/hostap-source failed.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]