Another compiler error: sumtool.c

Andrew Lunn andrew at lunn.ch
Wed Sep 21 17:13:26 EDT 2005


Hi Folks

Thanks to Artem's fix i can now compile jffs2 without write buffer
support. However the sumtool does not compile.....

lunn at londo:~/pkgs/mtd/mtd/util$ make
gcc -I../include -O2 -Wall -g -c -o sumtool.o sumtool.c -g -Wp,-MD,.sumtool.c.dep
sumtool.c:66: error: static declaration of 'target_endian' follows non-static declaration../include/mtd/jffs2-user.h:22: error: previous declaration of 'target_endian' was here
make: *** [sumtool.o] Error 1

The easy fix is to make target_endian not static in sumtool.c, but is
that the correct fix?

        Thanks
                Andrew




More information about the linux-mtd mailing list