HyperLevelDB icon indicating copy to clipboard operation
HyperLevelDB copied to clipboard

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

Open ekg opened this issue 10 years ago • 1 comments

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?

ekg avatar Nov 14 '14 01:11 ekg

maybe #15 solves your problem

lemo avatar Jan 15 '15 15:01 lemo