Discussion:
Building SFS Question
FAYCAL Marguerite RD-CORE-LAN
2005-07-06 13:30:37 UTC
Permalink
Hello,

In order to install Chord, I'm trying to build SFS, but in vain.

I refer to the instructions given at
http://pdos.csail.mit.edu/chord/howto.html and
http://www.fs.net/sfswww/sfs.html.
I work under a Linux 2.4.20-8 system
I downloaded sfs-0.7.2.tar.gz and unzipped it in /home/sfs
I downloaded also db-4.3.28.tar.gz, dmalloc-5.4.2.tgz and gcc-3.3.tar.gz
and inzipped them in /usr/local

I'm working as root under /home/sfs/sfs-0.7.2 and have executed the
following commands:

# env CC=gcc3 CXX=g++3
# ./configure --with-dmalloc --with-db4

# ./ltconfig ltmain.sh
(to eliminate the following error I got after gmake
libtool: ltconfig version `' does not match ltmain.sh version `1.3.5'
Fatal configuration error. See the libtool docs for more information.)

# gmake

The output I get, is then:
gmake all-recursive
gmake[1]: Entering directory `/home/sfs/sfs-0.7.2'
Making all in async
gmake[2]: Entering directory `/home/sfs/sfs-0.7.2/async'
source='clock_gettime.c' object='clock_gettime.lo' libtool=yes \
depfile='.deps/clock_gettime.Plo' tmpdepfile='.deps/clock_gettime.TPlo'
\
depmode=gcc3 /bin/sh ../depcomp \
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..
-I/usr/loca
l/include -I.. _I../async -I../arpc -I../crypt -I../sfsmisc -I../sfsrodb
-I../ad
b -I../svc -I../svc -DEXECDIR=\"/usr/local/lib/sfs-0.7.2\"
-DETCDIR=\"/etc/sfs\"
-DDATADIR=\"/usr/local/share/sfs\" -DPIDDIR=\"/var/run\"
-DSFSDIR=\"/var/sfs\"
-g -02 -Wall -Werror -c -o clock_gettime.lo `test -f 'clock_gettime.c'
|| echo
'./'`clock_gettime.c
rm -f .libs/clock_gettime.lo
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include -I.. _I../async
-I../arpc -I../crypt -I../sfsmisc -I../sfsrodb -I../adb -I../svc
-I../svc -DEXECDIR=\"/usr/local/lib/sfs-0.7.2\" -DETCDIR=\"/etc/sfs\"
-DDATADIR=\"/usr/local/share/sfs\" -DPIDDIR=\"/var/run\"
-DSFSDIR=\"/var/sfs\"
-g -02 -Wall -Werror -c clock_gettime.c -MT clock_gettime.lo -MD -MP
-MF .deps/clock_gettime.TPlo -fPIC -DPIC -o .libs/clock_gettime.lo
In file included from clock_gettime.c:25:
sysconf.h:446:21: dmalloc.h: No such file or directory
cc1: warnings being treated as errors
In file included from clock_gettime.c:25:
sysconf.h: In function `_xfree_wrap':
sysconf.h:458: warning: implicit declaration of function `_xfree_leap'
gmake[2]: *** [clock_gettime.lo] Error 1
gmake[2]: Leaving directory `/home/sfs/sfs-0.7.2/async'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/home/sfs/sfs-0.7.2'
gmake: *** [all] Error 2

I searched long in the sfs mailing-list, but haven't found any solution
to my problem.
Thank you for answering as soon as possible.

Regards,
Marguerite.

P.S. Note that I'm not a usual user of Unix OS, and need some detailed
information if possible
Frank Dabek
2005-07-06 14:37:11 UTC
Permalink
Marguerite,

I'm not sure what you intend to do with Chord, but you might find it
easier to work with our simulator:

http://pdos.lcs.mit.edu/p2psim/

Running the simulator doesn't require building SFS.

--Frank
Post by FAYCAL Marguerite RD-CORE-LAN
Hello,
In order to install Chord, I'm trying to build SFS, but in vain.
I refer to the instructions given at
http://pdos.csail.mit.edu/chord/howto.html and
http://www.fs.net/sfswww/sfs.html.
I work under a Linux 2.4.20-8 system
I downloaded sfs-0.7.2.tar.gz and unzipped it in /home/sfs
I downloaded also db-4.3.28.tar.gz, dmalloc-5.4.2.tgz and
gcc-3.3.tar.gz and inzipped them in /usr/local
I'm working as root under /home/sfs/sfs-0.7.2 and have executed the
# env CC=gcc3 CXX=g++3
# ./configure --with-dmalloc –-with-db4
# ./ltconfig ltmain.sh
(to eliminate the following error I got after gmake
libtool: ltconfig version `' does not match ltmain.sh version `1.3.5'
Fatal configuration error. See the libtool docs for more information.)
# gmake
gmake  all-recursive
gmake[1]: Entering directory `/home/sfs/sfs-0.7.2'
Making all in async
gmake[2]: Entering directory `/home/sfs/sfs-0.7.2/async'
source='clock_gettime.c' object='clock_gettime.lo' libtool=yes \
depfile='.deps/clock_gettime.Plo'
tmpdepfile='.deps/clock_gettime.TPlo' \
depmode=gcc3 /bin/sh ../depcomp \
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. –I. –I.. 
–I/usr/loca
l/include –I.. _I../async -I../arpc -I../crypt -I../sfsmisc
-I../sfsrodb -I../ad
b -I../svc -I../svc -DEXECDIR=\"/usr/local/lib/sfs-0.7.2\"
-DETCDIR=\"/etc/sfs\"
-DDATADIR=\"/usr/local/share/sfs\" -DPIDDIR=\"/var/run\"
-DSFSDIR=\"/var/sfs\"
-g -02 -Wall -Werror  -c –o clock_gettime.lo `test –f
'clock_gettime.c' || echo
'./'`clock_gettime.c
rm  -f .libs/clock_gettime.lo
gcc -DHAVE_CONFIG_H -I. –I. –I..  –I/usr/local/include –I..
_I../async -I../arpc -I../crypt -I../sfsmisc -I../sfsrodb -I../adb
-I../svc -I../svc -DEXECDIR=\"/usr/local/lib/sfs-0.7.2\"
-DETCDIR=\"/etc/sfs\"
-DDATADIR=\"/usr/local/share/sfs\" -DPIDDIR=\"/var/run\"
-DSFSDIR=\"/var/sfs\"
-g -02 -Wall -Werror  -c clock_gettime.c –MT clock_gettime.lo –MD –MP
–MF .deps/clock_gettime.TPlo –fPIC –DPIC –o .libs/clock_gettime.lo
sysconf.h:446:21: dmalloc.h: No such file or directory
cc1: warnings being treated as errors
sysconf.h:458: warning: implicit declaration of function `_xfree_leap'
gmake[2]: *** [clock_gettime.lo] Error 1
gmake[2]: Leaving directory `/home/sfs/sfs-0.7.2/async'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/home/sfs/sfs-0.7.2'
gmake: *** [all] Error 2
I searched long in the sfs mailing-list, but haven't found any
solution to my problem.
Thank you for answering as soon as possible.
Regards,
Marguerite.
P.S. Note that I'm not a usual user of Unix OS, and need some detailed
information if possible
Loading...