Re: Linux 2.4.19-pre6 doesn't compile on Alpha and sparc64

Jurgen Philippaerts (jurgen@pophost.eunet.be)
Fri, 5 Apr 2002 15:02:24 +0200


On Fri, Apr 05, 2002 at 03:00:11PM +0200, Jurgen Philippaerts wrote:
> On Fri, Apr 05, 2002 at 02:00:14PM +0200, Alexander Viro wrote:
> >
> > > init/do_mounts.c:45: parse error before `mount_initrd'
> > [snip]
> >
> > Looks like a missing init.h - sorry, this sucker didn't get caught (on
> > x86 slab.h ends up pulling it in, on alpha it doesn't).
> >
> > Fix: add #include <linux/init.h> in init/do_mounts.c
>
> same on sparc64.
> adding the extra #include fixes it.

but then it goes wrong with `make modules`

ps: pre5 did work.

sparc64-linux-gcc -D__KERNEL__ -I/usr/src/linux2419pre6/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing
-fno-common -fomit-frame-pointer -m64 -pipe -mno-fpu -mcpu=ultrasparc
-mcmodel=medlow -ffixed-g4 -fcall-used-g5 -fcall-used-g7
-Wno-sign-compare -Wa,--undeclared-regs -DMODULE -nostdinc -I
/usr/lib/gcc-lib/sparc64-slackware-linux/egcs-2.92.11/include
-DKBUILD_BASENAME=nfsctl -c -o nfsctl.o nfsctl.c
nfsctl.c:316: parse error before `nfsd_init'
nfsctl.c:317: warning: return-type defaults to `int'
nfsctl.c:334: parse error before `nfsd_exit'
nfsctl.c:335: warning: return-type defaults to `int'
nfsctl.c: In function `nfsd_exit':
nfsctl.c:345: warning: control reaches end of non-void function
nfsctl.c: At top level:
nfsctl.c:347: warning: type defaults to `int' in declaration of
`module_init'
nfsctl.c:347: warning: parameter names (without types) in function
declaration
nfsctl.c:347: warning: data definition has no type or storage class
nfsctl.c:348: warning: type defaults to `int' in declaration of
`module_exit'
nfsctl.c:348: warning: parameter names (without types) in function
declaration
nfsctl.c:348: warning: data definition has no type or storage class
make[2]: *** [nfsctl.o] Error 1
make[2]: Leaving directory `/usr/src/linux2419pre6/fs/nfsd'
make[1]: *** [_modsubdir_nfsd] Error 2
make[1]: Leaving directory `/usr/src/linux2419pre6/fs'
make: *** [_mod_fs] Error 2

Jurgen.

-- 
http://www.tuxedo.org/~esr/faqs/smart-questions.html

Linux sparkie 2.4.19-pre5 #1 Thu Apr 4 19:14:41 CEST 2002 sparc64 unknown 2:55pm up 19:08, 8 users, load average: 0.01, 0.26, 0.45 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/