[chord] compiling CFS in Linux 9

Frank Dabek fdabek at MIT.EDU
Tue Aug 5 11:46:49 EDT 2003


Tiancheng,

	I'm not sure where the dependency on the pthread symbols is coming
from. Can you maybe use 'nm' to figure out who is linking against
pthread?

--Frank

On Sun, 2003-08-03 at 05:13, Tiancheng Hu at KIT wrote:
> hi, 
> 
> I've succesfully installed Chord in FreeBSD but failed to do so in Linux 9..
> 
> I tried the newest snapshot (3rd, Aug), but the error message is the same --
> ------------------------------------------------------------------
> c++ -g -O2 -Wall -Werror -o sfsrodb sfsrodb.o ../dhash/libdhash.a ../merkle/libmerkle.a ../svc/.libs/libsvc.a -L/usr/local/lib -ldmalloc ../sfsrodb/libsfsrodb.a /usr/local/BerkeleyDB.3.3/lib/libdb-3.3.so /home/tchu/sfs-build//sfsmisc/.libs/libsfsmisc.a -lresolv -lnsl -ldmalloc /home/tchu/sfs-build//svc/.libs/libsvc.a -lresolv -lnsl -ldmalloc /home/tchu/sfs-build//crypt/.libs/libsfscrypt.a -lresolv -lnsl -ldmalloc /home/tchu/sfs-build//arpc/.libs/libarpc.a -lresolv -lnsl -ldmalloc /home/tchu/sfs-build//async/.libs/libasync.a -lresolv -lnsl -ldmalloc /usr/lib/libgmp.a -L/usr/local/lib -ldmalloc  -Wl,--rpath -Wl,/usr/local/BerkeleyDB.3.3/lib -Wl,--rpath -Wl,/usr/local/BerkeleyDB.3.3/lib
> /usr/local/BerkeleyDB.3.3/lib/libdb-3.3.so: undefined reference to `pthread_condattr_setpshared'
> /usr/local/BerkeleyDB.3.3/lib/libdb-3.3.so: undefined reference to `pthread_mutexattr_destroy'
> /usr/local/BerkeleyDB.3.3/lib/libdb-3.3.so: undefined reference to `pthread_mutexattr_setpshared'
> /usr/local/BerkeleyDB.3.3/lib/libdb-3.3.so: undefined reference to `pthread_mutexattr_init'
> /usr/local/BerkeleyDB.3.3/lib/libdb-3.3.so: undefined reference to `pthread_mutex_trylock'
> collect2: ld returned 1 exit status
> gmake[2]: *** [sfsrodb] error 1
> gmake[2]: exit directory `/home/tchu/chord-build/sfsrodb'
> gmake[1]: *** [all-recursive] error 1
> gmake[1]: exit directory `/home/tchu/chord-build'
> gmake: *** [all-recursive-am] error 2
> ------------------------------------------------------------------
> The default GCC in Linux 9 is v3.2.2, just agree with the HowTo document.
> I've also tried to use the --enable-posixmutexes option when compling the
> BerkeyleyDB 3.3. and even tried to use BerkeyleyDB 4.1 instead.
> I'm really not familiar with such compiling problems..
> 
> Could anybody here please give me some advice? Thanks in advance'
> 
> 
> Tiancheng Hu
> Kanazawa Institute of Technology, Japan
> 
> ______________________________________________________________________
> _______________________________________________
> chord mailing list
> chord at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/chord



More information about the chord mailing list