[chord] sfslite-0.8.x build problems

Julius Naperkowski julius.naperkowski at googlemail.com
Thu Feb 12 02:50:00 EST 2009


> On Tue, 10 February 2009 at 19:55 (+0100), Julius Naperkowski wrote:
>> I have problems with building just any of the sfslite-0.8.x versions
>> which are recommended in the howto. Does anyone succeeded in building
>> sfslite libraries, recently?
>>
>> I am using Ubuntu Linux 8.10 (2.6.27-9 i686) and gcc 4.3.2.
>
> I don't have an 8.10 machine handy and (as far as I know, unfortunately)
> sfslite-0.8 is no longer maintained.
>
> Can you generate these error messages in English? LANG=C or some such?
> Thanks.
>
> --
> Emil Sit / MIT CSAIL PDOS / http://pdos.csail.mit.edu/chord/
>

I just tried it with an older version of gcc (4.2.3). This worked for
me. By the way i noticed that i wasn't able to build vis. I had to
replace every "char *" with "const char *" in tools/vis.C. The patch
is attached.

There's a message in the archives of this mailing list where you
mentioned that the 1.x versions of sfslite libraries doesn't work
because of an api change. I couldn't find that much info about sfs
because http://www.fs.net/ seems to be down so i don't know if it
takes much time to make chord work with sfslite-1.x and if there is
any advantage to use it. Could you help me out with some info
regarding this question?

One more question. I couldn't figure out if there's already a file
system layer like cfs included in the chord release. If this is the
case which interface does it provide?

The output of the failed build of sfslite-0.8.x once again in English
(with gcc 4.3.2):
----------------------
Making all in async
make[2]: Entering directory `/home/julius/sfslite-0.8/async'
/bin/bash ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
-I..   -I../async -I../crypt    -I.. -I../arpc -I../sfsmisc
-I../libtame -I../svc -I../libtame -I../svc
-DEXECDIR=\"/usr/local/lib/sfslite-0.8\" -DETCDIR=\"/etc/sfs\"
-DDATADIR=\"/usr/local/share/sfslite\" -DPIDDIR=\"/var/run\"
-DSFSDIR=\"/var/sfs\"  -g -O2 -Wall -Werror  -MT arandom.lo -MD -MP
-MF .deps/arandom.Tpo -c -o arandom.lo arandom.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../async -I../crypt
-I.. -I../arpc -I../sfsmisc -I../libtame -I../svc -I../libtame
-I../svc -DEXECDIR=\"/usr/local/lib/sfslite-0.8\"
-DETCDIR=\"/etc/sfs\" -DDATADIR=\"/usr/local/share/sfslite\"
-DPIDDIR=\"/var/run\" -DSFSDIR=\"/var/sfs\" -g -O2 -Wall -Werror -MT
arandom.lo -MD -MP -MF .deps/arandom.Tpo -c arandom.c -o arandom.o
In file included from arandom.c:24:
sysconf.h: In function 'getpeereid':
sysconf.h:462: error: storage size of 'cred' isn't known
cc1: warnings being treated as errors
sysconf.h:462: error: unused variable 'cred'
make[2]: *** [arandom.lo] Error 1
make[2]: Leaving directory `/home/julius/sfslite-0.8/async'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/julius/sfslite-0.8'
make: *** [all] Error 2
----------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patchfile.diff
Type: text/x-diff
Size: 1184 bytes
Desc: not available
Url : http://amsterdam.lcs.mit.edu/pipermail/chord/attachments/20090212/b2c97444/attachment.diff 


More information about the chord mailing list