[Prism54-users] compile failure on mipsel

Bruno Randolf bruno.randolf@4g-systems.biz
Wed, 26 Nov 2003 20:24:47 +0100


=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hello!

i was now able to fix this problem by adding

#include <linux/init.h>

to islpci_hotplug.c

bruno

On Wednesday 26 November 2003 13:39, Herbert Valerio Riedel wrote:
> 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=3D32  -finline-limit=3D100000 -mcpu=3Dr4600 - -mi=
ps2
> > -Wa,--trap -DMODULE -mlong-calls  -nostdinc -iwithprefix include -
> > -DKBUILD_BASENAME=3Dislpci_hotplug  -c -o islpci_hotplug.o islpci_hotpl=
ug.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=3D
> > =3DMoOh
> > -----END PGP SIGNATURE-----
> >
> > _______________________________________________
> > Prism54-users mailing list
> > Prism54-users@prism54.org
> > http://prism54.org/mailman/listinfo/prism54-users

=2D --=20
4G Systeme GmbH
Am Sandtorkai 71
20457 Hamburg
fon: +49 (0)40 / 48 40 33 28
fax: +49 (0)40 / 48 40 33 30
mail: bruno.randolf@4g-systems.biz
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/xP3/fg2jtUL97G4RAscjAJ9lmMSHBn+zFcI+qyTKJXNaIB4cZQCbBKJf
xLrTuPMMZJlYP7diETHHPaw=3D
=3Dw9HH
=2D----END PGP SIGNATURE-----