Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error When building with snappy-1.1.0-1ubuntu1 #15

Open
ehtnevets opened this issue Nov 3, 2014 · 5 comments
Open

Error When building with snappy-1.1.0-1ubuntu1 #15

ehtnevets opened this issue Nov 3, 2014 · 5 comments

Comments

@ehtnevets
Copy link

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

Built OK with snappy-1.1.0-1 (no ubuntu1) on other computer

Thaanks

@ekg
Copy link

ekg commented Nov 26, 2014

I may have duplicated this in #16

@ekg
Copy link

ekg commented Dec 11, 2014

bump

@lemo
Copy link

lemo commented Jan 15, 2015

i have the same issue but i found a workaround and the origin.
it's a linking error, where the ordering of the arguments is wrong
Workaround:
When invoking make, prepend V=1 so it says:
V=1 make
as soon as the linker runs into this problem copy paste the invoked line, in my case: /bin/bash ./libtool --tag=CXX --mode=link c++ -DLEVELDB_PLATFORM_POSIX -DSNAPPY -fno-builtin-memcmp -fno-builtin-memcmp -Wno-variadic-macros -fPIC -I/tmp/tmp.IZbKHk0deH/lets/c_src/snappy/include -L/tmp/tmp.IZbKHk0deH/lets/c_src/snappy/lib -lsnappy -o leveldbutil db/leveldb_main.o libhyperleveldb.a -lpthread and append -lsnappy to the end.

EDIT:

just checked hyperleveldb out again and this time no problems ...

@jag426
Copy link

jag426 commented Feb 13, 2015

I just had this problem installing from the source linked at http://hyperdex.org/download/ (currently hyperleveldb-1.2.2.tar.gz). I solved it by adding -lsnappy to LIBS in the Makefile.

@Devengineer
Copy link

@jag426 Thank you for your answer! It works for me! 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants