[Shfs-devel] Compiling under SuSE 10 (GCC 4.0.2)
Status: Beta
Brought to you by:
qiq
|
From: <gm...@cs...> - 2005-11-18 22:28:38
|
I have a brand new SuSE 10 OSS installation and SHFS fails to compile with the following error message: [root@liz shfs-0.35]# make make[1]: Entering directory `/root/build/shfs-0.35/shfs' make[2]: Entering directory `/root/build/shfs-0.35/shfs/Linux-2.6' make -C //lib/modules/2.6.13-15-default/build SUBDIRS=/root/build/shfs-0.35/shfs/Linux-2.6 modules make[3]: Entering directory `/usr/src/linux-2.6.13-15-obj/i386/default' make -C ../../../linux-2.6.13-15 O=../linux-2.6.13-15-obj/i386/default modules CC [M] /root/build/shfs-0.35/shfs/Linux-2.6/dcache.o CC [M] /root/build/shfs-0.35/shfs/Linux-2.6/dir.o /root/build/shfs-0.35/shfs/Linux-2.6/dir.c:491: error: static declaration of â follows non-static declaration /root/build/shfs-0.35/shfs/Linux-2.6/shfs_fs.h:53: error: previous declaration of â was here make[6]: *** [/root/build/shfs-0.35/shfs/Linux-2.6/dir.o] Error 1 make[5]: *** [_module_/root/build/shfs-0.35/shfs/Linux-2.6] Error 2 make[4]: *** [modules] Error 2 make[3]: *** [modules] Error 2 make[3]: Leaving directory `/usr/src/linux-2.6.13-15-obj/i386/default' make[2]: *** [default] Error 2 make[2]: Leaving directory `/root/build/shfs-0.35/shfs/Linux-2.6' make[1]: *** [all] Error 2 make[1]: Leaving directory `/root/build/shfs-0.35/shfs' make: *** [module] Error 2 [root@liz shfs-0.35]# I don't know if this is a GCC bug, an SHFS bug, or both. The lines in question don't even seem to make sense, since they are entirely unrelated and not even both declarations as far as I can tell. And then there's the fact that the weird a-with-carat character doesn't appear anywhere on either of those lines. Based on that it might be a GCC bug, but no bets. Anyways, thanks ahead of time. --Gordon |