[chord] Can't find dhblock_storage.h
Clone7
m93570032 at mail.ntou.edu.tw
Tue Aug 23 04:57:10 EDT 2005
Frank:
I test rpcc in command line, and rpcc created .h and .C file.
I put chord source in /usr/local/src/sfsnet-source .
I build chord source in /usr/local/src/sfsnet-build .
Here is how I proceed:
#cd usr/local/src/sfsnet-build/dhash
#rpcc -h ../../sfsnet-source/dhash/dhblock_storage.x
#rpcc -c ../../sfsnet-source/dhash/dhblock_storage.x
#cd ..
#make
After executing rpcc, dhblock_storage.h and dhblock_storage.C
was created. I can see these two file in
/usr/local/src/sfsnet-build/dhash .
Then I continue to make, and all of the file in dhash/ were made
successfully.
I noticed that in the directory of /usr/local/src/sfsnet-source/svc
,
there also have .x files which need to be changed to .h and .C .
Make process the svc/ directory first, and I found that there is no
error of making .h and .C file . But in the directory dhash/ , the
error do happened. I check the Makefile.am , Makefile.in, and
Makefile in svc/ and dhash/ , it looks like they use the same code
to process the file creation. Maybe something in these three file
have affect to file creation?
Version of my software:
make version: 3.8
automake version: 1.9.2
autoconf: 2.59
I list the error message below. You can see that there is no file
creation in dhash/. But there is file creation in svc/ .
The make message:
Making all in dhash
make[2]: Entering directory `/usr/local/src/sfsnet-build/dhash'
if
+33 -DHAVE_CONFIG_H -I. -I/usr/local/src/sfsnet-source/dhash -I.. -I../svc
-I/usr/local/src/sfsnet-source/lsd -I/usr/local/src/sfsnet-source/svc -I/usr/local/src/sfsnet-source/sfsrodb
-I/usr/local/src/sfsnet-source/dhash -I/usr/local/src/sfsnet-source/dhc -I/usr/local/src/sfsnet-source/chord
-I/usr/local/src/sfsnet-source/merkle -I/usr/local/src/sfsnet-source/utils
-I/usr/local/src/sfs1-source -I/usr/local/src/sfs1-source/./async -I/usr/local/src/sfs1-source/./arpc
-I/usr/local/src/sfs1-source/./crypt -I/usr/local/src/sfs1-source/./sfsmisc
-I/usr/local/src/sfs1-source/svc -I/usr/local/include -I/usr/local/BerkeleyDB.4.3/include
-DSLEEPYCAT -g -O2 -Wall -Werror -MT dhashclient.o -MD -MP -MF
".deps/dhashclient.Tpo" -c -o dhashclient.o
/usr/local/src/sfsnet-source/dhash/dhashclient.C; \
then mv -f ".deps/dhashclient.Tpo" ".deps/dhashclient.Po"; else rm -f
".deps/dhashclient.Tpo"; exit 1; fi
if
+33 -DHAVE_CONFIG_H -I. -I/usr/local/src/sfsnet-source/dhash -I.. -I../svc
-I/usr/local/src/sfsnet-source/lsd -I/usr/local/src/sfsnet-source/svc -I/usr/local/src/sfsnet-source/sfsrodb
-I/usr/local/src/sfsnet-source/dhash -I/usr/local/src/sfsnet-source/dhc -I/usr/local/src/sfsnet-source/chord
-I/usr/local/src/sfsnet-source/merkle -I/usr/local/src/sfsnet-source/utils
-I/usr/local/src/sfs1-source -I/usr/local/src/sfs1-source/./async -I/usr/local/src/sfs1-source/./arpc
-I/usr/local/src/sfs1-source/./crypt -I/usr/local/src/sfs1-source/./sfsmisc
-I/usr/local/src/sfs1-source/svc -I/usr/local/include -I/usr/local/BerkeleyDB.4.3/include
-DSLEEPYCAT -g -O2 -Wall -Werror -MT dhblock.o -MD -MP -MF
".deps/dhblock.Tpo" -c -o dhblock.o
/usr/local/src/sfsnet-source/dhash/dhblock.C; \
then mv -f ".deps/dhblock.Tpo" ".deps/dhblock.Po"; else rm -f
".deps/dhblock.Tpo"; exit 1; fi
if
+33 -DHAVE_CONFIG_H -I. -I/usr/local/src/sfsnet-source/dhash -I.. -I../svc
-I/usr/local/src/sfsnet-source/lsd -I/usr/local/src/sfsnet-source/svc -I/usr/local/src/sfsnet-source/sfsrodb
-I/usr/local/src/sfsnet-source/dhash -I/usr/local/src/sfsnet-source/dhc -I/usr/local/src/sfsnet-source/chord
-I/usr/local/src/sfsnet-source/merkle -I/usr/local/src/sfsnet-source/utils
-I/usr/local/src/sfs1-source -I/usr/local/src/sfs1-source/./async -I/usr/local/src/sfs1-source/./arpc
-I/usr/local/src/sfs1-source/./crypt -I/usr/local/src/sfs1-source/./sfsmisc
-I/usr/local/src/sfs1-source/svc -I/usr/local/include -I/usr/local/BerkeleyDB.4.3/include
-DSLEEPYCAT -g -O2 -Wall -Werror -MT dhblock_chash.o -MD -MP -MF
".deps/dhblock_chash.Tpo" -c -o dhblock_chash.o
/usr/local/src/sfsnet-source/dhash/dhblock_chash.C; \
then mv -f ".deps/dhblock_chash.Tpo" ".deps/dhblock_chash.Po"; else rm -f
".deps/dhblock_chash.Tpo"; exit 1; fi
if
+33 -DHAVE_CONFIG_H -I. -I/usr/local/src/sfsnet-source/dhash -I.. -I../svc
-I/usr/local/src/sfsnet-source/lsd -I/usr/local/src/sfsnet-source/svc -I/usr/local/src/sfsnet-source/sfsrodb
-I/usr/local/src/sfsnet-source/dhash -I/usr/local/src/sfsnet-source/dhc -I/usr/local/src/sfsnet-source/chord
-I/usr/local/src/sfsnet-source/merkle -I/usr/local/src/sfsnet-source/utils
-I/usr/local/src/sfs1-source -I/usr/local/src/sfs1-source/./async -I/usr/local/src/sfs1-source/./arpc
-I/usr/local/src/sfs1-source/./crypt -I/usr/local/src/sfs1-source/./sfsmisc
-I/usr/local/src/sfs1-source/svc -I/usr/local/include -I/usr/local/BerkeleyDB.4.3/include
-DSLEEPYCAT -g -O2 -Wall -Werror -MT dhblock_keyhash.o -MD -MP -MF
".deps/dhblock_keyhash.Tpo" -c -o dhblock_keyhash.o
/usr/local/src/sfsnet-source/dhash/dhblock_keyhash.C; \
then mv -f ".deps/dhblock_keyhash.Tpo" ".deps/dhblock_keyhash.Po"; else
rm -f ".deps/dhblock_keyhash.Tpo"; exit 1; fi
if
+33 -DHAVE_CONFIG_H -I. -I/usr/local/src/sfsnet-source/dhash -I.. -I../svc
-I/usr/local/src/sfsnet-source/lsd -I/usr/local/src/sfsnet-source/svc -I/usr/local/src/sfsnet-source/sfsrodb
-I/usr/local/src/sfsnet-source/dhash -I/usr/local/src/sfsnet-source/dhc -I/usr/local/src/sfsnet-source/chord
-I/usr/local/src/sfsnet-source/merkle -I/usr/local/src/sfsnet-source/utils
-I/usr/local/src/sfs1-source -I/usr/local/src/sfs1-source/./async -I/usr/local/src/sfs1-source/./arpc
-I/usr/local/src/sfs1-source/./crypt -I/usr/local/src/sfs1-source/./sfsmisc
-I/usr/local/src/sfs1-source/svc -I/usr/local/include -I/usr/local/BerkeleyDB.4.3/include
-DSLEEPYCAT -g -O2 -Wall -Werror -MT dhblock_replicated.o -MD -MP -MF
".deps/dhblock_replicated.Tpo" -c -o dhblock_replicated.o
/usr/local/src/sfsnet-source/dhash/dhblock_replicated.C; \
then mv -f ".deps/dhblock_replicated.Tpo" ".deps/dhblock_replicated.Po";
else rm -f ".deps/dhblock_replicated.Tpo"; exit 1; fi
if
+33 -DHAVE_CONFIG_H -I. -I/usr/local/src/sfsnet-source/dhash -I.. -I../svc
-I/usr/local/src/sfsnet-source/lsd -I/usr/local/src/sfsnet-source/svc -I/usr/local/src/sfsnet-source/sfsrodb
-I/usr/local/src/sfsnet-source/dhash -I/usr/local/src/sfsnet-source/dhc -I/usr/local/src/sfsnet-source/chord
-I/usr/local/src/sfsnet-source/merkle -I/usr/local/src/sfsnet-source/utils
-I/usr/local/src/sfs1-source -I/usr/local/src/sfs1-source/./async -I/usr/local/src/sfs1-source/./arpc
-I/usr/local/src/sfs1-source/./crypt -I/usr/local/src/sfs1-source/./sfsmisc
-I/usr/local/src/sfs1-source/svc -I/usr/local/include -I/usr/local/BerkeleyDB.4.3/include
-DSLEEPYCAT -g -O2 -Wall -Werror -MT dhblock_noauth.o -MD -MP -MF
".deps/dhblock_noauth.Tpo" -c -o dhblock_noauth.o
/usr/local/src/sfsnet-source/dhash/dhblock_noauth.C; \
then mv -f ".deps/dhblock_noauth.Tpo" ".deps/dhblock_noauth.Po"; else rm -f
".deps/dhblock_noauth.Tpo"; exit 1; fi
/usr/local/src/sfsnet-source/dhash/dhblock_noauth.C:3:29: dhblock_storage.h:
No such file or directory
/usr/local/src/sfsnet-source/dhash/dhblock_noauth.C: In static member
function
`static vec<str, 0> dhblock_noauth::get_payload(const char*, unsigned
int)':
/usr/local/src/sfsnet-source/dhash/dhblock_noauth.C:19: error:
`noauth_block'
undeclared (first use this function)
/usr/local/src/sfsnet-source/dhash/dhblock_noauth.C:19: error: (Each
undeclared
identifier is reported only once for each function it appears in.)
/usr/local/src/sfsnet-source/dhash/dhblock_noauth.C:19: error: `block'
undeclared (first use this function)
/usr/local/src/sfsnet-source/dhash/dhblock_noauth.C:19: error: syntax error
before `(' token
/usr/local/src/sfsnet-source/dhash/dhblock_noauth.C:20: error: `
xdr_noauth_block' undeclared (first use this function)
/usr/local/src/sfsnet-source/dhash/dhblock_noauth.C: In static member
function
`static str dhblock_noauth::marshal_block(vec<str, 0>)':
/usr/local/src/sfsnet-source/dhash/dhblock_noauth.C:49: error: `newblock'
undeclared (first use this function)
/usr/local/src/sfsnet-source/dhash/dhblock_noauth.C:49: error: syntax error
before `(' token
/usr/local/src/sfsnet-source/dhash/dhblock_noauth.C:60: error: `
xdr_noauth_block' undeclared (first use this function)
make[2]: *** [dhblock_noauth.o] Error 1
make[2]: Leaving directory `/usr/local/src/sfsnet-build/dhash'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/sfsnet-build'
make: *** [all] Error 2
Best Wish Clone7
----- Original Message -----
From: "Frank Dabek" <fdabek at MIT.EDU>
To: "Clone7" <m93570032 at mail.ntou.edu.tw>
Cc: "ChordMailingList" <chord at amsterdam.lcs.mit.edu>
Sent: Thursday, August 18, 2005 10:49 PM
Subject: Re: [chord] Can't find dhblock_storage.h
> Clone7,
>
> dhblock_storage.[Ch] should be created from the .x file
> dhblock_storage.x by running it through rpcc. Make sure that this step
> is happening without errors.
>
> --Frank
>
> Clone7 wrote:
>> Dear all:
>>
>> I use Fedora Core3, SFS 0.8pre .
>> I get Chord by Anonymous CVS , and put it in
>> /usr/local/src/sfsnet-source .
>> I build my source in /usr/local/src/sfsnet-build/ .
>> I download chord in August 9 ,2005 .
>>
>> I encountered a problem during make. I didn't find
>> dhblock_storage.h and
>> dhblock_storage.C in /usr/local/src/sfsnet-source/dhash , nor
>> in /usr/local/src/sfsnet-build.
>>
>> The command I give:
>>
>> cd /usr/local/src/sfsnet-source
>> ./setup
>> cd ..
>> mkdir sfsnet-build
>> cd sfsnet-build
>> ../sfsnet-source/configure --with-dmalloc
>> --with-sfs=/usr/local/src/sfs1-source/ --with-gmp=/usr
>> --srcdir=/usr/local/src/sfsnet-source/ "CC=gcc33" "CXX=g++33" "CPP=gcc33
>> -E" "CXXCPP=g++33 -E"
>> make
>>
>>
>>
>>
>> The version of software which I used:
>>
>> gcc33 -v
>> Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.3.4/specs
>> Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
>> --infodir=/usr/share/info --enable-shared --enable-threads=posix
>> --disable-checking --disable-libunwind-exceptions --with-system-zlib
>> --enable-__cxa_atexit --enable-languages=c,c++,objc,java,f77
>> --host=i386-redhat-linux
>> Thread model: posix
>> gcc version 3.3.4 20040817 (Red Hat Linux 3.3.4-2)
>>
>> g++33 -v
>> Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.3.4/specs
>> Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
>> --infodir=/usr/share/info --enable-shared --enable-threads=posix
>> --disable-checking --disable-libunwind-exceptions --with-system-zlib
>> --enable-__cxa_atexit --enable-languages=c,c++,objc,java,f77
>> --host=i386-redhat-linux
>> Thread model: posix
>> gcc version 3.3.4 20040817 (Red Hat Linux 3.3.4-2)
>>
>> gmake -v
>> GNU Make 3.80
>> Copyright (C) 2002 Free Software Foundation, Inc.
>> This is free software; see the source for copying conditions.
>> There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
>> PARTICULAR PURPOSE.
>>
>> autoconf : 2.59
>> automake : 1.9.2
>> m4 : 1.4.1
>>
>>
>> _______________________________________________
>> chord mailing list
>> chord at amsterdam.lcs.mit.edu
>> https://amsterdam.lcs.mit.edu/mailman/listinfo/chord
>
More information about the chord
mailing list