Nikolaos Michalakis
2005-07-24 19:14:19 UTC
Hi,
I 've downloaded SFS from CVS and trying to compile it for Fedora Core 4.
gcc 4.0 seems to be very picky and I constantly get compilation errors so I
have to modify the source
to move on. Has anyone succeeded compiling SFS with gcc 4.0?
I am currently stuck on this error and I can't track it down:
if /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
-I.. -I/usr/include/db4 -DSLEEPYCAT -I.. -I../async -I../arpc -I../crypt
-I../sfsmisc -I../sfsrodb -I../adb -I../svc -I../svc
-DEXECDIR=\"/usr/local/lib/sfs-0.8pre\" -DETCDIR=\"/etc/sfs\"
-DDATADIR=\"/usr/local/share/sfs\" -DPIDDIR=\"/var/run\"
-DSFSDIR=\"/var/sfs\" -g -O2 -Wall -Werror -MT modalg.lo -MD -MP -MF
".deps/modalg.Tpo" -c -o modalg.lo modalg.C; \
then mv -f ".deps/modalg.Tpo" ".deps/modalg.Plo"; else rm -f
".deps/modalg.Tpo"; exit 1; fi
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/db4 -DSLEEPYCAT -I..
-I../async -I../arpc -I../crypt -I../sfsmisc -I../sfsrodb -I../adb -I../svc
-I../svc -DEXECDIR=\"/usr/local/lib/sfs-0.8pre\" -DETCDIR=\"/etc/sfs\"
-DDATADIR=\"/usr/local/share/sfs\" -DPIDDIR=\"/var/run\"
-DSFSDIR=\"/var/sfs\" -g -O2 -Wall -Werror -MT modalg.lo -MD -MP -MF
.deps/modalg.Tpo -c modalg.C -o modalg.o
modalg.C:64: error: '<anonymous enum>' is/uses anonymous type
modalg.C:64: error: trying to instantiate 'template<class T> const traceobj&
operator<<(const traceobj&, const T&)'
modalg.C:64: error: '<anonymous enum>' is/uses anonymous type
modalg.C:64: error: trying to instantiate 'template<class T> const strbuf&
operator<<(const strbuf&, const T&)'
make: *** [modalg.lo] Error 1
Any help would be most welcome
I 've downloaded SFS from CVS and trying to compile it for Fedora Core 4.
gcc 4.0 seems to be very picky and I constantly get compilation errors so I
have to modify the source
to move on. Has anyone succeeded compiling SFS with gcc 4.0?
I am currently stuck on this error and I can't track it down:
if /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
-I.. -I/usr/include/db4 -DSLEEPYCAT -I.. -I../async -I../arpc -I../crypt
-I../sfsmisc -I../sfsrodb -I../adb -I../svc -I../svc
-DEXECDIR=\"/usr/local/lib/sfs-0.8pre\" -DETCDIR=\"/etc/sfs\"
-DDATADIR=\"/usr/local/share/sfs\" -DPIDDIR=\"/var/run\"
-DSFSDIR=\"/var/sfs\" -g -O2 -Wall -Werror -MT modalg.lo -MD -MP -MF
".deps/modalg.Tpo" -c -o modalg.lo modalg.C; \
then mv -f ".deps/modalg.Tpo" ".deps/modalg.Plo"; else rm -f
".deps/modalg.Tpo"; exit 1; fi
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/db4 -DSLEEPYCAT -I..
-I../async -I../arpc -I../crypt -I../sfsmisc -I../sfsrodb -I../adb -I../svc
-I../svc -DEXECDIR=\"/usr/local/lib/sfs-0.8pre\" -DETCDIR=\"/etc/sfs\"
-DDATADIR=\"/usr/local/share/sfs\" -DPIDDIR=\"/var/run\"
-DSFSDIR=\"/var/sfs\" -g -O2 -Wall -Werror -MT modalg.lo -MD -MP -MF
.deps/modalg.Tpo -c modalg.C -o modalg.o
modalg.C:64: error: '<anonymous enum>' is/uses anonymous type
modalg.C:64: error: trying to instantiate 'template<class T> const traceobj&
operator<<(const traceobj&, const T&)'
modalg.C:64: error: '<anonymous enum>' is/uses anonymous type
modalg.C:64: error: trying to instantiate 'template<class T> const strbuf&
operator<<(const strbuf&, const T&)'
make: *** [modalg.lo] Error 1
Any help would be most welcome