rescrv / HyperLevelDB

A fork of LevelDB intended to meet the needs of HyperDex while remaining compatible with LevelDB.
BSD 3-Clause "New" or "Revised" License
459 stars 77 forks source link

build failure, can't find a function in snappy? #16

Open ekg opened 9 years ago

ekg commented 9 years ago

The build seems to be failing because it can't find functions in snappy:

CXX      db/db_bench.o
CXXLD    db_bench
/usr/bin/ld: db/db_bench.o: undefined reference to symbol '_ZN6snappy11RawCompressEPKcmPcPm'
/usr/local/lib/libsnappy.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[1]: *** [db_bench] Error 1
make: *** [all] Error 2

... but snappy is installed, and is the most-recent version from git:

checking for snappy_compress in -lsnappy... yes
checking snappy.h usability... yes
checking snappy.h presence... yes
checking for snappy.h... yes

The same problem happened when I used a recent snappy ubuntu package.

What am I missing?

lemo commented 9 years ago

maybe #15 solves your problem