[Prism54-users] compile failure on mipsel

Luis R. Rodriguez mcgrof@ruslug.rutgers.edu
Fri, 28 Nov 2003 21:21:01 -0500 (EST)


This as been commited, thanks
	Luis

On Wed, 26 Nov 2003, Bruno Randolf wrote:

> -----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=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
>
> - --
> 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
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.3 (GNU/Linux)
>
> iD8DBQE/xP3/fg2jtUL97G4RAscjAJ9lmMSHBn+zFcI+qyTKJXNaIB4cZQCbBKJf
> xLrTuPMMZJlYP7diETHHPaw=
> =w9HH
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> Prism54-users mailing list
> Prism54-users@prism54.org
> http://prism54.org/mailman/listinfo/prism54-users
>