[chord] dhashclient linking problems

piotrek jacak jacak at gmx.de
Wed Dec 28 08:14:18 EST 2005


hello,

i'm trying to run your C++ interface example from hack.html. unfortunately i
encounter some linking problems. 
i read one the post at
https://amsterdam.lcs.mit.edu/pipermail/chord/2005-May/000431.html
regarding the same problem as mine but the solution doesn't seem to work in
my case.


here is my Makefile: 
g++3 -o p2p-dhashclient p2p-dhashclient.c -L/home/pj/chord-build/dhash
-ldhashclient -L/home/pj/chord-build/utils -lutil
-L/home/pj/sfs-build/svc/.libs -lsvc -L/home/pj/sfs-build/sfsmisc/.libs
-lsfsmisc -L/home/pj/chord-build/ -lsvc -L/home/pj/sfs-build/crypt/.libs
-lsfscrypt -L/home/pj/sfs-build/arpc/.libs -larpc
-L/home/pj/sfs-build/async/.libs -lasync -L/usr/lib -lresolv -L/usr/lib
-lgmp -I/home/pj/sfs1/async -I/home/pj/sfs-build/ -I/home/pj/chord-build/svc
-I/home/pj/sfs1/arpc -I/home/pj/sfs1/crypt -I/home/pj/sfsnet/dhash
-I/home/pj/sfsnet/chord -I/home/pj/sfs1/sfsmisc -I/home/pj/sfs-build/svc
-I/home/pj/sfsnet/utils -I/home/pj/sfs1/adb -I/home/pj/sfsnet/proxy

and the errors:
/home/pj/chord-build/dhash/libdhashclient.a(dhashclient.o)(.text+0x6b): In
function `vec<unsigned int, 0u>::move(unsigned int*)':
/home/pj/sfs1/async/vec.h: undefined reference to `dhashgateway_program_1'
/home/pj/chord-build/dhash/libdhashclient.a(dhashclient.o)(.text+0x24f): In
function `dhashclient::dhashclient(str)':
/home/pj/sfs1/async/refcnt.h:431: undefined reference to
`dhashgateway_program_1'
/home/pj/chord-build/dhash/libdhashclient.a(dhashclient.o)(.text+0x3f7): In
function `dhashclient::dhashclient(ptr<axprt_stream>)':
/home/pj/sfs1/async/refcnt.h:434: undefined reference to
`dhashgateway_program_1'
/home/pj/chord-build/dhash/libdhashclient.a(dhashclient.o)(.text+0x517): In
function `dhashclient::dhashclient(ptr<axprt_stream>)':
/home/pj/sfs1/async/refcnt.h:434: undefined reference to
`dhashgateway_program_1'
/home/pj/chord-build/dhash/libdhashclient.a(dhashclient.o)(.text+0x176d): In
function `dhashclient::insertcb(ref<callback<void, dhash_stat,
ptr<insert_info>, void> >, bigint, ptr<dhash_insert_res>, clnt_stat)':
/home/pj/sfsnet/dhash/dhash_common.h:74: undefined reference to
`rpc_print(strbuf const&, dhash_stat const&, int, char const*, char const*)'
/home/pj/chord-build/dhash/libdhashclient.a(dhashclient.o)(.text+0x2235): In
function `dhashclient::retrievecb(ptr<callback<void, dhash_stat,
ptr<dhash_block>, vec<bigint, 0u> > >, bigint, ref<dhash_retrieve_res>,
clnt_stat)':
/home/pj/sfs1/async/str.h:276: undefined reference to `rpc_print(strbuf
const&, dhash_stat const&, int, char const*, char const*)'
/usr/bin/ld: `.gnu.linkonce.t._ZN13sfsauth_dbrec8set_typeE14sfsauth_dbtype'
referenced in section `.rodata' of
/home/pj/sfs-build/sfsmisc/.libs/libsfsmisc.a(sfsschnorr.o): defined in
discarded section
`.gnu.linkonce.t._ZN13sfsauth_dbrec8set_typeE14sfsauth_dbtype' of
/home/pj/sfs-build/sfsmisc/.libs/libsfsmisc.a(sfsschnorr.o)

/usr/bin/ld: `.gnu.linkonce.t._ZN13sfsauth_dbrec8set_typeE14sfsauth_dbtype'
referenced in section `.rodata' of
/home/pj/sfs-build/sfsmisc/.libs/libsfsmisc.a(sfsschnorr.o): defined in
discarded section
`.gnu.linkonce.t._ZN13sfsauth_dbrec8set_typeE14sfsauth_dbtype' of
/home/pj/sfs-build/sfsmisc/.libs/libsfsmisc.a(sfsschnorr.o)

/usr/bin/ld: `.gnu.linkonce.t._ZN13sfsauth_dbrec8set_typeE14sfsauth_dbtype'
referenced in section `.rodata' of
/home/pj/sfs-build/sfsmisc/.libs/libsfsmisc.a(sfsschnorr.o): defined in
discarded section
`.gnu.linkonce.t._ZN13sfsauth_dbrec8set_typeE14sfsauth_dbtype' of
/home/pj/sfs-build/sfsmisc/.libs/libsfsmisc.a(sfsschnorr.o)

/usr/bin/ld: `.gnu.linkonce.t._ZN13sfsauth_dbrec8set_typeE14sfsauth_dbtype'
referenced in section `.rodata' of
/home/pj/sfs-build/sfsmisc/.libs/libsfsmisc.a(sfsschnorr.o): defined in
discarded section
`.gnu.linkonce.t._ZN13sfsauth_dbrec8set_typeE14sfsauth_dbtype' of
/home/pj/sfs-build/sfsmisc/.libs/libsfsmisc.a(sfsschnorr.o)





i would really appreciate your help.

Best regards!

Piotr Jacak






-- 
10 GB Mailbox, 100 FreeSMS/Monat http://www.gmx.net/de/go/topmail
+++ GMX - die erste Adresse für Mail, Message, More +++



More information about the chord mailing list