Hi Wang, The default build of leveldb will include snappy, but unfortunately when we try and build our binaries (e.g.,, mesos-local, mesos-master, etc) we don't add -lsnappy if necessary. You'll either need to disable snappy in the leveldb Makefile or you'll need to add -lsnappy for building each of the binaries (in src/Makefile.am).
Ben. On Sun, Apr 15, 2012 at 10:19 PM, 王晓磊 <[email protected]> wrote: > Make output: > libtool: link: g++ -g2 -O2 -o .libs/mesos-local local/mesos_local-main.o > ./.libs/libmesos.so > -L/etc/java-config-2/current-system-vm/jre/lib/i386/server -lz -lpthread > -lrt -pthread > ./.libs/libmesos.so: undefined reference to `snappy::RawUncompress(char > const*, unsigned int, char*)' > ./.libs/libmesos.so: undefined reference to `snappy::RawCompress(char > const*, unsigned int, char*, unsigned int*)' > ./.libs/libmesos.so: undefined reference to > `snappy::GetUncompressedLength(char const*, unsigned int, unsigned int*)' > ./.libs/libmesos.so: undefined reference to > `snappy::MaxCompressedLength(unsigned int)' > collect2: ld returned 1 exit status > make[2]: *** [mesos-local] Error 1 > make[2]: Leaving directory `/home/wanglei/codes/c/mesos/src' > make[1]: *** [all] Error 2 > make[1]: Leaving directory `/home/wanglei/codes/c/mesos/src' > make: *** [all-recursive] Error 1 > > I have libsnappy in my computer, so how to fix it? > > -- > Best Wishes > > > Wang Lei >
