[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CVS jffs2 does not compile with stock 2.4.19



Hi guys, I'm trying to get 2.4.19 to compile with the jffs2 code in the
CVS, but am encountering problems.

This is the relevant output from "make modules", followed by my own
comments:

------------   BEGIN   -------------

make[2]: Entering directory `/usr/src/linux-2.4.19/fs/jffs2'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.19/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4.19/include/linux/modversions.h  -nostdinc -I
/usr/lib/gcc-lib/i386-redhat-linux/2.96/include
-DKBUILD_BASENAME=compr_zlib  -c -o compr_zlib.o compr_zlib.c
gcc -D__KERNEL__ -I/usr/src/linux-2.4.19/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4.19/include/linux/modversions.h  -nostdinc -I
/usr/lib/gcc-lib/i386-redhat-linux/2.96/include -DKBUILD_BASENAME=dir  -c
-o dir.o dir.c
dir.c: In function `jffs2_symlink':
dir.c:328: warning: implicit declaration of function `crc32'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.19/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4.19/include/linux/modversions.h  -nostdinc -I
/usr/lib/gcc-lib/i386-redhat-linux/2.96/include -DKBUILD_BASENAME=file 
-c -o file.o file.c
file.c: In function `jffs2_setattr':
file.c:144: warning: implicit declaration of function `crc32'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.19/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4.19/include/linux/modversions.h  -nostdinc -I
/usr/lib/gcc-lib/i386-redhat-linux/2.96/include -DKBUILD_BASENAME=ioctl 
-c -o ioctl.o ioctl.c
gcc -D__KERNEL__ -I/usr/src/linux-2.4.19/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4.19/include/linux/modversions.h  -nostdinc -I
/usr/lib/gcc-lib/i386-redhat-linux/2.96/include
-DKBUILD_BASENAME=nodelist  -c -o nodelist.o nodelist.c
nodelist.c: In function `jffs2_get_inode_nodes':
nodelist.c:242: warning: implicit declaration of function `crc32'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.19/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4.19/include/linux/modversions.h  -nostdinc -I
/usr/lib/gcc-lib/i386-redhat-linux/2.96/include -DKBUILD_BASENAME=malloc 
-c -o malloc.o malloc.c
gcc -D__KERNEL__ -I/usr/src/linux-2.4.19/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4.19/include/linux/modversions.h  -nostdinc -I
/usr/lib/gcc-lib/i386-redhat-linux/2.96/include -DKBUILD_BASENAME=read 
-c -o read.o read.c
read.c: In function `jffs2_read_dnode':
read.c:46: warning: implicit declaration of function `crc32'
read.c:127: warning: int format, jint32_t arg (arg 2)
gcc -D__KERNEL__ -I/usr/src/linux-2.4.19/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4.19/include/linux/modversions.h  -nostdinc -I
/usr/lib/gcc-lib/i386-redhat-linux/2.96/include
-DKBUILD_BASENAME=nodemgmt  -c -o nodemgmt.o nodemgmt.c
gcc -D__KERNEL__ -I/usr/src/linux-2.4.19/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4.19/include/linux/modversions.h  -nostdinc -I
/usr/lib/gcc-lib/i386-redhat-linux/2.96/include
-DKBUILD_BASENAME=readinode  -c -o readinode.o readinode.c
readinode.c: In function `jffs2_do_read_inode':
readinode.c:416: warning: implicit declaration of function `crc32'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.19/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4.19/include/linux/modversions.h  -nostdinc -I
/usr/lib/gcc-lib/i386-redhat-linux/2.96/include -DKBUILD_BASENAME=write 
-c -o write.o write.c
write.c: In function `jffs2_do_new_inode':
write.c:49: warning: implicit declaration of function `crc32'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.19/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4.19/include/linux/modversions.h  -nostdinc -I
/usr/lib/gcc-lib/i386-redhat-linux/2.96/include -DKBUILD_BASENAME=scan 
-c -o scan.o scan.c
scan.c: In function `jffs2_scan_medium':
scan.c:84: too many arguments to function
scan.c:241: too many arguments to function
scan.c: In function `jffs2_scan_eraseblock':
scan.c:458: warning: implicit declaration of function `crc32'
make[2]: *** [scan.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.4.19/fs/jffs2'
make[1]: *** [_modsubdir_jffs2] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.19/fs'
make: *** [_mod_fs] Error 2

------------    END    -------------

1)
First of all, there seems to be a problem with function `crc32'.

This i've solved by getting the relevant .c files with the "warning" to
#include "crc32.h" (crc32 is defined here) instead of <linux/crc32.h>
(this seems to define different functions with different parameter
lists).

I assume this should be the correct fix for this (am i right?)

2)
for read.c line 127, is there a problem here?
(I'm not familiar with kernel hacking, so pls forgive me if this sounds
newbie-ish. Some kind soul pls explain to me if there's no problem here)

3)
the last outstanding error (as far as i am aware) is that in scan.c,
lines 84 and 241. This i do not know how to solve (yet).


Would appreciate some kind soul's help here.
Thank you very much.

-jf



 
--
  "It's an extraordinary world!" - jfsworld <at> fastmail.fm
 
 

To unsubscribe from this list: send the line "unsubscribe jffs-dev" in
the body of a message to majordomo@xxxxxxx.com