[Prism54-users] compile failure on mipsel

Herbert Valerio Riedel hvr@hvrlab.org
Wed, 26 Nov 2003 13:39:23 +0100


On Wed, Nov 26, 2003 at 11:22:46AM +0100, Bruno Randolf wrote:
> -----BEGIN PGP SIGNED MESSAGE-----

> when i try to compile prism54-cvs20031126 for a mips kernel (2.4.23-rc5) with 
> gcc version 3.3.2 20030831 i get the following error. last time i could 
> successfully compile was prism54-cvs20031113.


seems __init and __exit are unknown symbols...

just add something like

#define __init
#define __exit

somewhere before those error as a workaround; will add a proper fix
later today to cvs...
 
> bruno
> 
> mipsel-linux-gcc -D__KERNEL__ -I/data/kernel/mips-2.4.23-rc5/include -Wall 
> - -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common 
> - -fomit-frame-pointer -I /data/kernel/mips-2.4.23-rc5/include/asm/gcc -G 0 
> - -mno-abicalls -fno-pic -pipe  -mabi=32  -finline-limit=100000 -mcpu=r4600 
> - -mips2 -Wa,--trap -DMODULE -mlong-calls  -nostdinc -iwithprefix include 
> - -DKBUILD_BASENAME=islpci_hotplug  -c -o islpci_hotplug.o islpci_hotplug.c
> islpci_hotplug.c:188:2: warning: #warning temporary workaround (loading 
> firmware at probe time is wrong (hvr))
> islpci_hotplug.c:302: parse error before "prism54_module_init"
> islpci_hotplug.c:303: warning: return type defaults to `int'
> islpci_hotplug.c:314: parse error before "prism54_module_exit"
> islpci_hotplug.c:315: warning: return type defaults to `int'
> islpci_hotplug.c:326: warning: type defaults to `int' in declaration of 
> `module_init'
> islpci_hotplug.c:326: warning: parameter names (without types) in function 
> declaration
> islpci_hotplug.c:326: warning: data definition has no type or storage class
> islpci_hotplug.c:327: warning: type defaults to `int' in declaration of 
> `module_exit'
> islpci_hotplug.c:327: warning: parameter names (without types) in function 
> declaration
> islpci_hotplug.c:327: warning: data definition has no type or storage class
> make[3]: *** [islpci_hotplug.o] Error 1
> make[3]: Leaving directory `/mnt/mtx/software/wlan/prism54/
> prism54-cvs20031126/ksrc'
> make[2]: *** [_mod_/mnt/mtx/software/wlan/prism54/prism54-cvs20031126/ksrc] 
> Error 2
> make[2]: Leaving directory `/data/kernel/mips-2.4.23-rc5'
> make[1]: *** [modules] Error 2
> make[1]: Leaving directory `/mnt/mtx/software/wlan/prism54/
> prism54-cvs20031126/ksrc'
> make: *** [modules-all] Error 2
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.3 (GNU/Linux)
> 
> iD8DBQE/xH73fg2jtUL97G4RAg6zAJwNmFVNgz/HYzTPu6NEK8/D/utoOgCeOJCM
> S8c4xPlKhUISyM4ct97tegc=
> =MoOh
> -----END PGP SIGNATURE-----
> 
> _______________________________________________
> Prism54-users mailing list
> Prism54-users@prism54.org
> http://prism54.org/mailman/listinfo/prism54-users

-- 
Herbert Valerio Riedel       /    Phone: (EUROPE) +43-1-58801-18840
Email: hvr@hvrlab.org       /    Finger hvr@gnu.org for GnuPG Public Key
GnuPG Key Fingerprint: 7BB9 2D6C D485 CE64 4748  5F65 4981 E064 883F 4142