[chord] Question of building sfs

Y Chen s0231189 at sms.ed.ac.uk
Wed Jun 9 00:25:22 EDT 2004


Hi

Thanks very much. It does work! And build successfully in most directories.
But got error again when enter /devel:

...
gmake[2]: Entering directory
`/amd/nfs/sphinx/disk/ptn033/s0231189/chord-build/devel'
source='/home/s0231189/sfsnet/devel/dbdump.C' object='dbdump.o' libtool=no \
depfile='.deps/dbdump.Po' tmpdepfile='.deps/dbdump.TPo' \
depmode=gcc3 /bin/sh /home/s0231189/sfsnet/depcomp \
g++ -DHAVE_CONFIG_H -I. -I/home/s0231189/sfsnet/devel -I..
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0
-I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include     -I../svc
-I/home/s0231189/sfsnet/proxy -I/home/s0231189/sfsnet/lsd
-I/home/s0231189/sfsnet/svc -I/home/s0231189/sfsnet/sfsrodb
-I/home/s0231189/sfsnet/dhash -I/home/s0231189/sfsnet/dhc
-I/home/s0231189/sfsnet/chord -I/home/s0231189/sfsnet/merkle
-I/home/s0231189/sfsnet/utils  -I/home/s0231189/sfs-build
-I/home/s0231189/sfs1/async -I/home/s0231189/sfs1/arpc
-I/home/s0231189/sfs1/crypt -I/home/s0231189/sfs1/sfsmisc
-I/home/s0231189/sfs-build/svc -I/usr/local/include -DSLEEPYCAT  -g -O2 -Wall
-Werror  -c -o dbdump.o `test -f '/home/s0231189/sfsnet/devel/dbdump.C' || echo
'/home/s0231189/sfsnet/devel/'`/home/s0231189/sfsnet/devel/dbdump.C
/home/s0231189/sfsnet/devel/dbdump.C: In function `int main(int, char**)':
/home/s0231189/sfsnet/devel/dbdump.C:39: cannot convert `const char*' to `
   DB_TXN*' in argument passing
gmake[2]: *** [dbdump.o] Error 1
gmake[2]: Leaving directory
`/amd/nfs/sphinx/disk/ptn033/s0231189/chord-build/devel'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/amd/nfs/sphinx/disk/ptn033/s0231189/chord-build'
gmake: *** [all] Error 2

Cheers!

Yin



Quoting Frank Dabek <fdabek at MIT.EDU>:

> Try the configure with a full path name (i.e. with
> /home/s0231189/sfs-build instead of ~/sfs-build, substituting your
> correct username of course).
>
> --Frank
>
> Y Chen wrote:
> > Hi
> >
> > Thanks very much for the reply and it did work.
> >
> > Soory to trouble again. But I got another error when went further.
> >
> > When I run:
> >
> >>~/sfsnet/configure --with-db3 --with-dmalloc --with-sfs=~/sfs-build/
> >
> > the final error is: configure: error: "Can\'t find SFS libraries".
> > Detail shows as below.
> > But I 've build sfs successfully in ~/sfs-build/.
> > I used CVS donwload the latest SFS sourse code.
> >
> > I really want to see Chord run on a relative larger farm in my computer
> lab.
> >
> > Waiting for the reply and thanks a lot!
> >
> > Yin
> >
> > =======================================================
> > 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... 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 ANSI C... 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 for gtk+-2.0 >= 2.0... yes
> > checking GSTUFF_CFLAGS... -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include
> > -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/X11R6/include
> > -I/usr/include/freetype2 -I/usr/include/glib-2.0
> -I/usr/lib/glib-2.0/include
> > checking GSTUFF_LIBS... -Wl,--export-dynamic -lgtk-x11-2.0 -lgdk-x11-2.0
> > -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0
> > -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
> > configure: WARNING: Found GTK...
> > checking for a BSD-compatible install... /usr/bin/install -c
> > checking whether ln -s works... yes
> > 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 for a sed that does not truncate output... /bin/sed
> > checking how to recognise dependent libraries... pass_all
> > checking command to parse /usr/bin/nm -B output... ok
> > checking for egrep... grep -E
> > 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 for ranlib... ranlib
> > checking for strip... strip
> > checking for objdir... .libs
> > 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 if gcc supports -c -o file.lo... yes
> > checking if gcc supports -fno-rtti -fno-exceptions... yes
> > checking whether the linker (/usr/bin/ld) supports shared libraries... yes
> > checking how to hardcode library paths into programs... immediate
> > checking whether stripping libraries is possible... yes
> > checking dynamic linker characteristics... GNU/Linux ld.so
> > checking if libtool supports shared libraries... yes
> > checking whether to build shared libraries... no
> > checking whether to build static libraries... yes
> > creating libtool
> > configure: error: "Can\'t find SFS libraries"
> >
> >
> >
> >
> > Quoting Frank Dabek <fdabek at MIT.EDU>:
> >
> >
> >>
> >>Y Chen wrote:
> >>
> >>>Hi
> >>>
> >>>According to Chord HOWTO, I don't need further step to build SFS, but when
> >>
> >>I run
> >>
> >>>the configure script by
> >>>
> >>>
> >>>>~/src/sfs1/configure --with-dmalloc --with-db3
> >>>
> >>>
> >>>there are errors and needs me to create sfs user and sfs group
> >>>
> >>
> >>If you need to build SFS you'll need to craete a user for SFS or specify
> >>one with --with-sfsuser.
> >>
> >>Try --with-sfsuser=root --with-sfsgroup=wheel
> >>
> >>
> >>>...
> >>>checking for sfs user and group... [No user sfs. No group sfs.] no
> >>>configure: error: Create sfs user/group or use
> >>
> >>--with-sfsuser/--with-sfsgroup
> >>
> >>>...
> >>>
> >>>I am one user of a Linux system, have no permission of changing the file
> of
> >>>/etc/passwd and /etc/group
> >>>
> >>>Is there any way to avoid this?
> >>>
> >>>Thanks a lot.
> >>>
> >>>Yin
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>Quoting Frank Dabek <fdabek at MIT.EDU>:
> >>>
> >>>
> >>>
> >>>>Yin,
> >>>>
> >>>>	Try the -v option to create virtual nodes in one process. Run lsd with
> >>>>"-v 16".
> >>>>
> >>>>--Frank
> >>>>
> >>>>Y Chen wrote:
> >>>>
> >>>>
> >>>>>Thanks for the hint. But I cannot find 16 machines, I only have 4. And I
> >>
> >>am
> >>
> >>>>>failure in set one machine as two or more nodes in the chord ring: when
> I
> >>>>
> >>>>set
> >>>>
> >>>>
> >>>>>one port number as a peer, I cannot set another port number to join the
> >>>>>network, this cause the previour port failed(I used ./lsd -j). Is there
> >>
> >>any
> >>
> >>>>way
> >>>>
> >>>>
> >>>>>to set one machine as two or more peers to join the chord network?
> >>>>>
> >>>>>Cheers!
> >>>>>
> >>>>>Yin
> >>>>>
> >>>>>
> >>>>>
> >>>>>Quoting Frank Dabek <fdabek at MIT.EDU>:
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>>Are there at least 16 nodes (virtual or otherwise) in  your system?
> >>>>>>DHash fragments blocks into 16 smaller fragments and requires at least
> >>>>>>that many nodes to store them.
> >>>>>>
> >>>>>>-Frank
> >>>>>>
> >>>>>>Y Chen wrote:
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>>Hi
> >>>>>>>
> >>>>>>>When I tried command
> >>>>>>>./dbm 0 /tmp/chord-sock 128 8192 - s 0 1
> >>>>>>>
> >>>>>>>there are some error messges:
> >>>>>>>
> >>>>>>>...
> >>>>>>>dbm: dhashclient::insert failed (2):
> >>>>>>
> >>>>>>958192ea4dd14b77d2695f06b058675a9499d63e: D
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>>HASH_STOREERR
> >>>>>>>dbm: store_cb: 958192ea4dd14b77d2695f06b058675a9499d63e DHASH_STOREERR
> >>>>>>>store error
> >>>>>>>dbm: dhashclient::insert failed (2):
> >>>>>>
> >>>>>>d704416507c64fffe8dac35c30c5da35adfe2106: D
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>>HASH_STOREERR
> >>>>>>>dbm: store_cb: d704416507c64fffe8dac35c30c5da35adfe2106 DHASH_STOREERR
> >>>>>>>store error
> >>>>>>>dbm: dhashclient::insert failed (2):
> >>>>>>
> >>>>>>432483274c17d045e68a443bc37f1b45e7982fb1: D
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>>HASH_STOREERR
> >>>>>>>dbm: store_cb: 432483274c17d045e68a443bc37f1b45e7982fb1 DHASH_STOREERR
> >>>>>>>store error
> >>>>>>>dbm: dhashclient::insert failed (2):
> >>>>>>
> >>>>>>d177696c8bf6e13d12a98e6317b9b6a200203584: D
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>>HASH_STOREERR
> >>>>>>>dbm: store_cb: d177696c8bf6e13d12a98e6317b9b6a200203584 DHASH_STOREERR
> >>>>>>>store error
> >>>>>>>dbm: dhashclient::insert failed (2):
> >>>>>>
> >>>>>>ada4c021f47b9cbf0421abf2d4e407d56ef7953d: D
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>>HASH_STOREERR
> >>>>>>>dbm: store_cb: ada4c021f47b9cbf0421abf2d4e407d56ef7953d DHASH_STOREERR
> >>>>>>>store error
> >>>>>>>Total Elapsed: 173.470993
> >>>>>>>
> >>>>>>>What's the problem of this?
> >>>>>>>
> >>>>>>>Thanks for the answers for all my previours questions, and waiting for
> >>
> >>the
> >>
> >>>>>>>reply.
> >>>>>>>
> >>>>>>>Cheers!
> >>>>>>>
> >>>>>>>Yin
> >>>>>>>
> >>>>>>>_______________________________________________
> >>>>>>>chord mailing list
> >>>>>>>chord at amsterdam.lcs.mit.edu
> >>>>>>>https://amsterdam.lcs.mit.edu/mailman/listinfo/chord
> >>>>>>
> >>>
> >
> >
> > _______________________________________________
> > chord mailing list
> > chord at amsterdam.lcs.mit.edu
> > https://amsterdam.lcs.mit.edu/mailman/listinfo/chord
>




More information about the chord mailing list