[chord] Template error...?

Clone7 m93570032 at mail.ntou.edu.tw
Wed Aug 10 22:33:51 EDT 2005


 
Dear all:

        I use Fedora Core3, SFS 0.8pre .
        I get Chord by Anonymous CVS , and put it in /usr/local/src/sfsnet-source .

        I encountered a problem during make. I don't understand why this error
        message appeard....  Do I need to set something to my gmake or g++?

        The command I give:
        cd /usr/local/src/sfsnet-source
        ./setup
        cd ..
        mkdir sfsnet-build
        cp -r sfsnet-source/* sfsnet-build/
        cd sfsnet-build
        /usr/local/src/sfsnet-source/configure --with-dmalloc --with-sfs=/usr/local/src/sfs1-source-backup/
        make

        g++ -v
Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.4/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --          disable-libunwind-exceptions --enable-java-awt=gtk --host=i386-redhat-linux
Thread model: posix
gcc version 3.4.4 20050721 (Red Hat 3.4.4-2)

        gmake -v
GNU Make 3.80
Copyright (C) 2002  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.



        The error message I got : 

make[2]: Leaving directory `/usr/local/src/sfsnet-build/utils'
Making all in merkle
make[2]: Entering directory `/usr/local/src/sfsnet-build/merkle'
if g++ -DHAVE_CONFIG_H -I. -I/usr/local/src/sfsnet-source/merkle -I..   -I../svc -I/usr/local/src/sfsnet-source/lsd -I/usr/local/src/sfsnet-source/svc -I/usr/local/src/sfsnet-source/sfsrodb -I/usr/local/src/sfsnet-source/dhash -I/usr/local/src/sfsnet-source/dhc -I/usr/local/src/sfsnet-source/chord -I/usr/local/src/sfsnet-source/merkle -I/usr/local/src/sfsnet-source/utils  -I/usr/local/src/sfs1-source-backup/ -I/usr/local/src/sfs1-source-backup//./async -I/usr/local/src/sfs1-source-backup//./arpc -I/usr/local/src/sfs1-source-backup//./crypt -I/usr/local/src/sfs1-source-backup//./sfsmisc -I/usr/local/src/sfs1-source-backup//svc -I/usr/local/include -I/usr/local/BerkeleyDB.4.3/include -DSLEEPYCAT  -g -O2 -Wall -Werror  -MT merkle_server.o -MD -MP -MF ".deps/merkle_server.Tpo" -c -o merkle_server.o merkle_server.C; \
then mv -f ".deps/merkle_server.Tpo" ".deps/merkle_server.Po"; else rm -f ".deps/merkle_server.Tpo"; exit 1; fi
In file included from merkle_server.C:1:
/usr/local/src/sfsnet-source/chord/chord.h: In member function `dorpc_arg* user_args::transport_header()':
/usr/local/src/sfsnet-source/chord/chord.h:107: error: `template' (as a disambiguator) is only allowed within templates
In file included from merkle_node.h:7,
                 from merkle_server.C:3:
merkle_misc.h: In function `ref<dbrec> todbrec(const merkle_hash&)':
merkle_misc.h:52: error: no matching function for call to `refcounted<dbrec,  scalar>::refcounted(const u_int8_t[20], merkle_hash::<anonymous enum>)'
/usr/local/src/sfs1-source-backup//./async/refcnt.h:160: note: candidates are: refcounted<dbrec,  scalar>::refcounted(const refcounted<dbrec,  scalar>&)
/usr/local/src/sfs1-source-backup//./async/refcnt.h:333: note:                 refcounted<T,  scalar>::refcounted() [with T = dbrec]
merkle_misc.h: In function `ref<dbrec> id2dbrec(chordID)':
merkle_misc.h:82: error: no matching function for call to `refcounted<dbrec,  scalar>::refcounted(char[20], sha1::<anonymous enum>)'
/usr/local/src/sfs1-source-backup//./async/refcnt.h:160: note: candidates are: refcounted<dbrec,  scalar>::refcounted(const refcounted<dbrec,  scalar>&)
/usr/local/src/sfs1-source-backup//./async/refcnt.h:333: note:                 refcounted<T,  scalar>::refcounted() [with T = dbrec]
merkle_server.C: In member function `void merkle_server::dispatch(user_args*)':
merkle_server.C:32: error: `template' (as a disambiguator) is only allowed within templates
merkle_server.C:61: error: `template' (as a disambiguator) is only allowed within templates
make[2]: *** [merkle_server.o] Error 1
make[2]: Leaving directory `/usr/local/src/sfsnet-build/merkle'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/sfsnet-build'
make: *** [all] Error 2

        Welcome any comment and suggestion. Thanks your help.

        Best Wish  Clone7
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://amsterdam.lcs.mit.edu/pipermail/chord/attachments/20050811/0df44621/attachment-0001.html


More information about the chord mailing list