[chord] question about chord

ruai bai bairuai at gmail.com
Wed Aug 13 22:02:45 EDT 2008


I am a graduate student,my diploma project is about PKI. Now I want to use
chord to implement it. But when I install the chord-0.1-20080405.tar.bz2, I
have some problems.

I install it on linux Fedora-8-i386. Here is the code which I used below. If
you can give the solution to solve the problem, I really appreciate your
help.
1014  cd /home/bai/
 1015  cp sfslite-1.2.2.tar.gz /usr/src/
 1016  cp chord-0.1-20080405.tar.bz2 /usr/src/
 1017  cd /usr/src/
 1018  ls
 1019  tar -zxvf sfslite-1.2.2.tar.gz
 1020  tar -zxvf chord-0.1-20080405.tar.bz2
 1021  cp --help
 1022  cp -r -f /home/bai/chord-0.1 /usr/src
 1023  ls
 1024  cd ..
 1025  ls
 1026  cd build
 1027  ls
 1028  rm -r -f chord
 1029  rm -r -f sfslite/
 1030  cd ..
 1031  rm -r -f build
 1032  ls
 1033  mkdir build
 1034  cd build/
 1035  mkdir sfslite
 1036  cd /usr/build/sfslite
 1037  export SFSHOME=`pwd`
 1038  ./configure --prefix=/usr/build/sfslite/
 1039  cd /usr/src/sfslite-1.2.2
 1040  cd /usr/build/sfslite/
 1041  ../../src/sfslite-1.2.2/configure --with-sfsmisc
 1042  gmake
 1043  make
 1044  make install
 1045  vim /etc/ld.so.conf
 1046  /sbin/ldconfig
 1047  cd /usr/src/chord-0.1
 1048  cd ..
 1049  cd /usr/build/
 1050  mkdir chord
 1051  cd /usr/build/chord/
 1052  ../../src/chord-0.1/configure --with-dmalloc --with-sfs=../sfslite/



[root at farm9 chord]# ../../src/chord-0.1/configure --with-dmalloc
--with-sfs=../sfslite/
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for gm4... no
checking for gnum4... no
checking for m4... /usr/bin/m4
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GSTUFF... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking how to recognize dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... gfortran
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether gfortran accepts -g... yes
checking the maximum length of command line arguments... 98304
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries...
yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries...
yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries...
yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for gfortran option to produce PIC... -fPIC
checking if gfortran PIC flag -fPIC works... yes
checking if gfortran static flag -static works... yes
checking if gfortran supports -c -o file.o... yes
checking whether the gfortran linker (/usr/bin/ld) supports shared
libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
configure: error: "SFS libraries not compiled with dmalloc"
[root at farm9 chord]#


[bai at farm9 ~]$ dmalloc --version
Dmalloc utility version string is: 5.4.3
  NOTE: Library linked with your application may be a different version.
        Check top of logfile after application is run for library version.



../../src/chord-0.1/configure --with-sfs=../sfslite/


make


if g++ -DHAVE_CONFIG_H -I. -I../../../src/chord-0.1/utils -I..   -I../svc
-I../../../src/chord-0.1/lsd -I../../../src/chord-0.1/svc
-I../../../src/chord-0.1/dhash -I../../../src/chord-0.1/chord
-I../../../src/chord-0.1/merkle -I../../../src/chord-0.1/utils
-I/usr/build/chord/../sfslite/
-I/usr/build/chord/../sfslite//../../src/sfslite-1.2.2/async
-I/usr/build/chord/../sfslite//../../src/sfslite-1.2.2/arpc
-I/usr/build/chord/../sfslite//../../src/sfslite-1.2.2/crypt
-I/usr/build/chord/../sfslite//../../src/sfslite-1.2.2/sfsmisc
-I/usr/build/chord/../sfslite//../../src/sfslite-1.2.2/libsfs
-I/usr/build/chord/../sfslite//svc   -I/usr/local/BerkeleyDB.4.2/include
-DSLEEPYCAT  -g -O2 -Wall -Werror  -MT location.o -MD -MP -MF
".deps/location.Tpo" -c -o location.o
../../../src/chord-0.1/utils/location.C; \
        then mv -f ".deps/location.Tpo" ".deps/location.Po"; else rm -f
".deps/location.Tpo"; exit 1; fi
../../../src/chord-0.1/utils/location.C: In member function 'void
location::init()':
../../../src/chord-0.1/utils/location.C:26: error: 'timenow' was not
declared in this scope
../../../src/chord-0.1/utils/location.C: In member function 'void
location::update_knownup()':
../../../src/chord-0.1/utils/location.C:80: error: 'timenow' was not
declared in this scope
../../../src/chord-0.1/utils/location.C: In member function 'time_t
location::age()':
../../../src/chord-0.1/utils/location.C:94: error: 'timenow' was not
declared in this scope
../../../src/chord-0.1/utils/location.C: In member function 'void
location::update(ptr<location>)':
../../../src/chord-0.1/utils/location.C:106: error: 'timenow' was not
declared in this scope
../../../src/chord-0.1/utils/location.C: In member function 'void
location::update(chord_node)':
../../../src/chord-0.1/utils/location.C:126: error: 'timenow' was not
declared in this scope
../../../src/chord-0.1/utils/location.C: In member function 'char
location::get_loss()':
../../../src/chord-0.1/utils/location.C:196: error: 'timenow' was not
declared in this scope
../../../src/chord-0.1/utils/location.C:198: error: 'timenow' was not
declared in this scope
../../../src/chord-0.1/utils/location.C: In member function 'void
location::set_loss()':
../../../src/chord-0.1/utils/location.C:220: error: 'timenow' was not
declared in this scope
../../../src/chord-0.1/utils/location.C: In member function 'void
location::set_alive(bool)':
../../../src/chord-0.1/utils/location.C:228: error: 'timenow' was not
declared in this scope
../../../src/chord-0.1/utils/location.C:238: error: 'timenow' was not
declared in this scope
make[2]: *** [location.o] Error 1
make[2]: Leaving directory `/usr/build/chord/utils'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/build/chord'
make: *** [all] Error 2


thank you .

                      Bai
Ru-ai
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://amsterdam.lcs.mit.edu/pipermail/chord/attachments/20080814/b425c8c8/attachment-0001.htm 


More information about the chord mailing list