logo       

RE: sfs compile problems: msg#00013

file-systems.sfs.general

Subject: RE: sfs compile problems

i finally got both chord and sfs to compile. The problem was that i did
not have dmalloc installed.

i also had problems with line 14 (arguments for db->open) in dbdump.C
(sfsnet/devel).

-> db->open(db, argv[1], NULL, DB_BTREE, 0, 0664);
==> db->open(db, NULL, (const char*) argv[1], NULL, DB_BTREE, 0, 0664)

now it compiles but segfaults

# ./lsd -j wailhome:10000 -p 10000
1047026056.716390 lsd: starting: ./lsd -j wailhome -p 10000
chord: running on 10.2.10.252:10000
lsd: CREATED RPC MANAGER
1047026056.717209 loctable: insert
9173f7cbbc4f426392eca75f3a45781d292f69c2 127.0.0.1:10000 0
lsd: lsd: created new dhash
Segmentation fault

-vinod








> I am using sfs-0.7.2 and yes I am compiling with --with-dmalloc
> --with-db3
>
> Actually I did get some feedback from a guy at MIT (Thome) regarding it
> is tricky getting sfs and chord to work on Linux since it is meant for
> FreeBSD but messing around with Makefiles and CFLAGS should help. That
> is not what I wanted to hear though...
>
> ~Ben
> benjamin.podoll@xxxxxxxxxxxxx
> bspsoftware.dyndns.org
> Phone & Fax 701-772-7152
>
> -----Original Message-----
> From: Vinod Yegneswaran [mailto:vinod@xxxxxxxxxxx]
> Sent: Thursday, March 06, 2003 11:19 PM
> To: Ben Podoll
> Cc: sfs@xxxxxxxxxx
> Subject: RE: sfs compile problems
>
>
> im getting the same error using gcc-2.95.3 (on a redhat 6.2)... what
> version of sfs are you compiling (and are you compiling
> "--with-dmalloc")?
>
> # ../src/sfs1/configure --with-dmalloc --with-db3
>
>
> In file included from ../../src/sfs-0.7.2/async/clock_gettime.c:25:
> ../../src/sfs-0.7.2/async/sysconf.h:446: dmalloc.h: No such file or
> directory
>
>
> -vinod
>
>
>
> On Thu, 6 Mar 2003, Ben Podoll wrote:
>
> > In the chord how-to page I think is says:
> >
> > * GCC 2.95 (not 2.96, although 3.x should work)
> >
> > ~Ben
> > benjamin.podoll@xxxxxxxxxxxxx
> > bspsoftware.dyndns.org
> > Phone & Fax 701-772-7152
> >
> > -----Original Message-----
> > From: Vinod Yegneswaran [mailto:vinod@xxxxxxxxxxx]
> > Sent: Thursday, March 06, 2003 10:26 PM
> > To: Ben Podoll
> > Subject: RE: sfs compile problems
> >
> > sorry, i assumed you were involved in the development. i have 2.96,
> and
> > 3.0.4
> >
> > -vinod
> >
> >
> >
> >
> > > What is in your /usr/lib/gcc-lib/i386-redhat-linux directory?
> > >
> > > ~Ben
> > > benjamin.podoll@xxxxxxxxxxxxx
> > > bspsoftware.dyndns.org
> > > Phone & Fax 701-772-7152
> > >
> > > -----Original Message-----
> > > From: Vinod Yegneswaran [mailto:vinod@xxxxxxxxxxx]
> > > Sent: Thursday, March 06, 2003 10:01 PM
> > > To: Ben Podoll
> > > Subject: RE: sfs compile problems
> > >
> > > hi Ben,
> > >
> > > any ideas? should i try a different OS?
> > >
> > > -vinod
> > >
> > >
> > > On Wed, 5 Mar 2003, Vinod Yegneswaran wrote:
> > >
> > > > linux, redhat 7.3 i believe...
> > > >
> > > > -vinod
> > > >
> > > > On Wed, 5 Mar 2003, Ben Podoll wrote:
> > > >
> > > > > What OS are you running?
> > > > >
> > > > > ~Ben
> > > > > benjamin.podoll@xxxxxxxxxxxxx
> > > > > bspsoftware.dyndns.org
> > > > > Phone & Fax 701-772-7152
> > > > >
> > > > > -----Original Message-----
> > > > > From: Vinod Yegneswaran [mailto:vinod@xxxxxxxxxxx]
> > > > > Sent: Wednesday, March 05, 2003 9:53 PM
> > > > > To: sfs@xxxxxxxxxx
> > > > > Subject: sfs compile problems
> > > > >
> > > > > hi,
> > > > >
> > > > > i was trying to build chord and im getting the following error
> > > > > compiling
> > > > > sfs. any help would be appreciated.
> > > > >
> > > > > In file included from ../../src/sfs1/async/clock_gettime.c:25:
> > > > > ../../src/sfs1/async/sysconf.h:446:21: dmalloc.h: No such file
> or
> > > > > directory
> > > > > cc1: warnings being treated as errors
> > > > > In file included from ../../src/sfs1/async/clock_gettime.c:25:
> > > > > ../../src/sfs1/async/sysconf.h: In function `_xfree_wrap':
> > > > > ../../src/sfs1/async/sysconf.h:458: warning: implicit
> declaration
> > of
> > > > > function `_xfree_leap'
> > > > >
> > > > >
> > > > >
> > > > > looks like im missing dmalloc.h? btw i had uploaded the latest
> > > version
> > > > > via cvs and im using gcc3.
> > > > >
> > > > > # env CC=gcc3 CXX=g++3 ../src/sfs1/configure --with-dmalloc
> > > > > --with-sfsuser
> > > > > --with-sfsgroup --with-db3
> > > > > # make
> > > > >
> > > > >
> > > > > thanks
> > > > > vinod
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> > >
> >
> >
> >
>
>
>




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise