[chord] sfslite problem
jtv208
jtv208 at yahoo.com.tw
Thu Oct 22 03:43:58 EDT 2009
Hi,
I have some problem when I build SFSlite. IN FAQ, the versions about sfslite virsion must be 0.8.x, and you suggest that the version of SFSlite is 0.8.17. However, when I configure the SFSlite, i.e.(./configure --with-misc), I have some problems. The problem is following
---------------------------------------------------------------------
..
..
configure: creating ./config.status
config.status: creating Makefile
config.status: creating async/Makefile
config.status: creating rpcc/Makefile
config.status: creating arpc/Makefile
config.status: creating crypt/Makefile
config.status: creating sfsmisc/Makefile
config.status: creating contrib/Makefile
config.status: creating tame/Makefile
config.status: creating svc/Makefile
config.status: error: cannot find input file: svc/Makefile.in
---------------------------------------------------------------------
so I change the version to 0.8.16. It is fine when I configure SFSlite with "./configure --with-misc". However, another problem was happened as following
----------------------------------------------------------------------
make all-recursive
make[1]: Entering directory `/media/disk/install_chord/sfslite-0.8.16'
Making all in async
make[2]: Entering directory `/media/disk/install_chord/sfslite-0.8.16/async'
if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../async -I../crypt -I.. -I../arpc -I../sfsmisc -I../libtame -I../svc -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; \
then mv -f ".deps/arandom.Tpo" ".deps/arandom.Plo"; else rm -f ".deps/arandom.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../async -I../crypt -I.. -I../arpc -I../sfsmisc -I../libtame -I../svc -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
sysconf.h:462: warning: unused variable `cred'
make[2]: *** [arandom.lo] Error 1
make[2]: Leaving directory `/media/disk/install_chord/sfslite-0.8.16/async'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/media/disk/install_chord/sfslite-0.8.16'
make: *** [all] Error 2
----------------------------------------------------------------------
this problem is the same with
http://pdos.csail.mit.edu/pipermail/chord/2009-February/000941.html
and I solved it . And then, I remove structure in the sysconf.h:462.
----------------------------------------------------------------------
#if 0 <-----add this line
#ifndef HAVE_GETPEEREID
# ifdef SO_PEERCRED
static inline int
getpeereid (int fd, uid_t *u, gid_t *g)
{
struct ucred cred;
socklen_t credlen = sizeof (cred);
int r = getsockopt (fd, SOL_SOCKET, SO_PEERCRED, &cred, &credlen);
if (r >= 0) {
if (u)
*u = cred.uid;
if (g)
*g = cred.gid;
}
return r;
}
# define HAVE_GETPEEREID 1
# endif /* SO_PEERCRED */
#endif /* !HAVE_GETPEEREID */
#endif <---------add this line
----------------------------------------------------------------------
Then, I Make the SFSlite. Unfortunately, the error occurs as following
----------------------------------------------------------------------
make all-recursive
make[1]: Entering directory `/media/disk/install_chord/sfslite-0.8.16'
Making all in async
make[2]: Entering directory `/media/disk/install_chord/sfslite-0.8.16/async'
if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../async -I../crypt -I.. -I../arpc -I../sfsmisc -I../libtame -I../svc -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; \
then mv -f ".deps/arandom.Tpo" ".deps/arandom.Plo"; else rm -f ".deps/arandom.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../async -I../crypt -I.. -I../arpc -I../sfsmisc -I../libtame -I../svc -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
if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../async -I../crypt -I.. -I../arpc -I../sfsmisc -I../libtame -I../svc -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 clock_gettime.lo -MD -MP -MF ".deps/clock_gettime.Tpo" -c -o clock_gettime.lo clock_gettime.c; \
then mv -f ".deps/clock_gettime.Tpo" ".deps/clock_gettime.Plo"; else rm -f ".deps/clock_gettime.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../async -I../crypt -I.. -I../arpc -I../sfsmisc -I../libtame -I../svc -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 clock_gettime.lo -MD -MP -MF .deps/clock_gettime.Tpo -c clock_gettime.c -o clock_gettime.o
if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../async -I../crypt -I.. -I../arpc -I../sfsmisc -I../libtame -I../svc -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 flock.lo -MD -MP -MF ".deps/flock.Tpo" -c -o flock.lo flock.c; \
then mv -f ".deps/flock.Tpo" ".deps/flock.Plo"; else rm -f ".deps/flock.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../async -I../crypt -I.. -I../arpc -I../sfsmisc -I../libtame -I../svc -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 flock.lo -MD -MP -MF .deps/flock.Tpo -c flock.c -o flock.o
if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../async -I../crypt -I.. -I../arpc -I../sfsmisc -I../libtame -I../svc -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 rwfd.lo -MD -MP -MF ".deps/rwfd.Tpo" -c -o rwfd.lo rwfd.c; \
then mv -f ".deps/rwfd.Tpo" ".deps/rwfd.Plo"; else rm -f ".deps/rwfd.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../async -I../crypt -I.. -I../arpc -I../sfsmisc -I../libtame -I../svc -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 rwfd.lo -MD -MP -MF .deps/rwfd.Tpo -c rwfd.c -o rwfd.o
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../async -I../crypt -I.. -I../arpc -I../sfsmisc -I../libtame -I../svc -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 -w -c ./stktrace.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../async -I../crypt -I.. -I../arpc -I../sfsmisc -I../libtame -I../svc -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 -w -c ./stktrace.c -o stktrace.o
if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../async -I../crypt -I.. -I../arpc -I../sfsmisc -I../libtame -I../svc -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 suidprotect.lo -MD -MP -MF ".deps/suidprotect.Tpo" -c -o suidprotect.lo suidprotect.c; \
then mv -f ".deps/suidprotect.Tpo" ".deps/suidprotect.Plo"; else rm -f ".deps/suidprotect.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../async -I../crypt -I.. -I../arpc -I../sfsmisc -I../libtame -I../svc -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 suidprotect.lo -MD -MP -MF .deps/suidprotect.Tpo -c suidprotect.c -o suidprotect.o
if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../async -I../crypt -I.. -I../arpc -I../sfsmisc -I../libtame -I../svc -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 maketables.lo -MD -MP -MF ".deps/maketables.Tpo" -c -o maketables.lo maketables.c; \
then mv -f ".deps/maketables.Tpo" ".deps/maketables.Plo"; else rm -f ".deps/maketables.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../async -I../crypt -I.. -I../arpc -I../sfsmisc -I../libtame -I../svc -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 maketables.lo -MD -MP -MF .deps/maketables.Tpo -c maketables.c -o maketables.o
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../async -I../crypt -I.. -I../arpc -I../sfsmisc -I../libtame -I../svc -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 dftables.o -MD -MP -MF ".deps/dftables.Tpo" -c -o dftables.o dftables.c; \
then mv -f ".deps/dftables.Tpo" ".deps/dftables.Po"; else rm -f ".deps/dftables.Tpo"; exit 1; fi
/bin/bash ../libtool --tag=CC --mode=link gcc -g -O2 -Wall -Werror -o dftables dftables.o -lnsl -lresolv
gcc -g -O2 -Wall -Werror -o dftables dftables.o -lnsl -lresolv
./dftables chartables.c
if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../async -I../crypt -I.. -I../arpc -I../sfsmisc -I../libtame -I../svc -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 pcre.lo -MD -MP -MF ".deps/pcre.Tpo" -c -o pcre.lo pcre.c; \
then mv -f ".deps/pcre.Tpo" ".deps/pcre.Plo"; else rm -f ".deps/pcre.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../async -I../crypt -I.. -I../arpc -I../sfsmisc -I../libtame -I../svc -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 pcre.lo -MD -MP -MF .deps/pcre.Tpo -c pcre.c -o pcre.o
if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../async -I../crypt -I.. -I../arpc -I../sfsmisc -I../libtame -I../svc -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 study.lo -MD -MP -MF ".deps/study.Tpo" -c -o study.lo study.c; \
then mv -f ".deps/study.Tpo" ".deps/study.Plo"; else rm -f ".deps/study.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../async -I../crypt -I.. -I../arpc -I../sfsmisc -I../libtame -I../svc -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 study.lo -MD -MP -MF .deps/study.Tpo -c study.c -o study.o
if /bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../async -I../crypt -I.. -I../arpc -I../sfsmisc -I../libtame -I../svc -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 aerr.lo -MD -MP -MF ".deps/aerr.Tpo" -c -o aerr.lo aerr.C; \
then mv -f ".deps/aerr.Tpo" ".deps/aerr.Plo"; else rm -f ".deps/aerr.Tpo"; exit 1; fi
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../async -I../crypt -I.. -I../arpc -I../sfsmisc -I../libtame -I../svc -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 aerr.lo -MD -MP -MF .deps/aerr.Tpo -c aerr.C -o aerr.o
In file included from callback1.h:617,
from callback.h:15,
from suio++.h:30,
from str.h:29,
from err.h:28,
from amisc.h:29,
from async.h:28,
from aerr.C:25:
refcnt.h:423: error: declaration of 'typedef struct ptr<T> ref<T>::ptr'
refcnt.h:158: error: changes meaning of 'ptr' from 'struct ptr<T>'
refcnt.h:485: error: declaration of 'typedef struct ref<T> ptr<T>::ref'
refcnt.h:157: error: changes meaning of 'ref' from 'struct ref<T>'
In file included from callback.h:15,
from suio++.h:30,
from str.h:29,
from err.h:28,
from amisc.h:29,
from async.h:28,
from aerr.C:25:
callback1.h:678: error: declaration of 'typedef class ref<callback<R, void, void, void> > callback<R, void, void, void>::ref'
refcnt.h:410: error: changes meaning of 'ref' from 'class ref<callback<R, void, void, void> >'
callback1.h:679: error: declaration of 'typedef class ptr<callback<R, void, void, void> > callback<R, void, void, void>::ptr'
refcnt.h:459: error: changes meaning of 'ptr' from 'class ptr<callback<R, void, void, void> >'
callback1.h:1557: error: declaration of 'typedef class ref<callback<R, B1, void, void> > callback<R, B1, void, void>::ref'
refcnt.h:410: error: changes meaning of 'ref' from 'class ref<callback<R, B1, void, void> >'
callback1.h:1558: error: declaration of 'typedef class ptr<callback<R, B1, void, void> > callback<R, B1, void, void>::ptr'
refcnt.h:459: error: changes meaning of 'ptr' from 'class ptr<callback<R, B1, void, void> >'
callback1.h:2436: error: declaration of 'typedef class ref<callback<R, B1, B2, void> > callback<R, B1, B2, void>::ref'
refcnt.h:410: error: changes meaning of 'ref' from 'class ref<callback<R, B1, B2, void> >'
callback1.h:2437: error: declaration of 'typedef class ptr<callback<R, B1, B2, void> > callback<R, B1, B2, void>::ptr'
refcnt.h:459: error: changes meaning of 'ptr' from 'class ptr<callback<R, B1, B2, void> >'
callback1.h:3315: error: declaration of 'typedef class ref<callback<R, B1, B2, B3> > callback<R, B1, B2, B3>::ref'
refcnt.h:410: error: changes meaning of 'ref' from 'class ref<callback<R, B1, B2, B3> >'
callback1.h:3316: error: declaration of 'typedef class ptr<callback<R, B1, B2, B3> > callback<R, B1, B2, B3>::ptr'
refcnt.h:459: error: changes meaning of 'ptr' from 'class ptr<callback<R, B1, B2, B3> >'
make[2]: *** [aerr.lo] Error 1
make[2]: Leaving directory `/media/disk/install_chord/sfslite-0.8.16/async'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/media/disk/install_chord/sfslite-0.8.16'
make: *** [all] Error 2
----------------------------------------------------------------------
I do not know how to solve these error, please help me. Thanks.
the version of unbuntu is 8.10
gcc version 4.2.4 (Ubuntu 4.2.4-3ubuntu4)
BerkeleyDB is 4.8.24
gmp4.3.1
___________________________________________________
您的生活即時通 - 溝通、娛樂、生活、工作一次搞定!
http://messenger.yahoo.com.tw/
More information about the chord
mailing list