We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
7920245fd112d2ab5c6416cf827c8f0f82b6530c
develop
FreeBSD 11.2
amd64
Erlang/OTP 21 [erts-10.3.5.5]
When compiling eleveldb on a FreeBSD instance, it seems to have this error when running ./rebar compile:
eleveldb
./rebar compile
==> eleveldb (compile) gmake: Nothing to be done for 'all'. c++ -Wall -O3 -fPIC -I /home/somebody/eleveldb/c_src/system/include -I. -I./include -fno-builtin-memcmp -D_REENTRANT -DOS_FREEBSD -DLEVELDB_PLATFORM_POSIX -DSNAPPY -DLEVELDB_VSN="2.0.35" -O2 -g -DNDEBUG -fPIC tools/leveldb_repair.cc -o leveldb_repair -L . -lleveldb -L/home/somebody/eleveldb/c_src/system/lib -lpthread -lsnappy c++ -Wall -O3 -fPIC -I /home/somebody/eleveldb/c_src/system/include -I. -I./include -fno-builtin-memcmp -D_REENTRANT -DOS_FREEBSD -DLEVELDB_PLATFORM_POSIX -DSNAPPY -DLEVELDB_VSN="2.0.35" -O2 -g -DNDEBUG -fPIC tools/sst_rewrite.cc -o sst_rewrite -L . -lleveldb -L/home/somebody/eleveldb/c_src/system/lib -lpthread -lsnappy c++ -Wall -O3 -fPIC -I /home/somebody/eleveldb/c_src/system/include -I. -I./include -fno-builtin-memcmp -D_REENTRANT -DOS_FREEBSD -DLEVELDB_PLATFORM_POSIX -DSNAPPY -DLEVELDB_VSN="2.0.35" -O2 -g -DNDEBUG -fPIC tools/sst_scan.cc -o sst_scan -L . -lleveldb -L/home/somebody/eleveldb/c_src/system/lib -lpthread -lsnappy /home/somebody/eleveldb/c_src/system/lib/libsnappy.a(snappy.o): In function `snappy::internal::WorkingMemory::GetHashTable(unsigned long, int*)': snappy.cc:(.text+0x645): undefined reference to `std::allocator<char>::allocator()' snappy.cc:(.text+0x665): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&)' snappy.cc:(.text+0x6b6): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()' snappy.cc:(.text+0x6c7): undefined reference to `std::allocator<char>::~allocator()' snappy.cc:(.text+0x71a): undefined reference to `std::allocator<char>::allocator()' snappy.cc:(.text+0x737): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&)' snappy.cc:(.text+0x77f): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()' snappy.cc:(.text+0x790): undefined reference to `std::allocator<char>::~allocator()' snappy.cc:(.text+0x840): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()' snappy.cc:(.text+0x854): undefined reference to `std::allocator<char>::~allocator()' snappy.cc:(.text+0x889): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()' snappy.cc:(.text+0x89d): undefined reference to `std::allocator<char>::~allocator()' /home/somebody/eleveldb/c_src/system/lib/libsnappy.a(snappy.o): In function `snappy::internal::CompressFragment(char const*, unsigned long, char*, unsigned short*, int)': snappy.cc:(.text+0xab4): undefined reference to `std::allocator<char>::allocator()' snappy.cc:(.text+0xad7): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&)' snappy.cc:(.text+0xb2e): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()' snappy.cc:(.text+0xb42): undefined reference to `std::allocator<char>::~allocator()' snappy.cc:(.text+0x1205): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()' snappy.cc:(.text+0x121c): undefined reference to `std::allocator<char>::~allocator()' /home/somebody/eleveldb/c_src/system/lib/libsnappy.a(snappy.o): In function `snappy::Compress(snappy::Source*, snappy::Sink*)': snappy.cc:(.text+0x1cda): undefined reference to `std::allocator<char>::allocator()' snappy.cc:(.text+0x1cfd): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&)' snappy.cc:(.text+0x1d54): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()' snappy.cc:(.text+0x1d68): undefined reference to `std::allocator<char>::~allocator()' snappy.cc:(.text+0x2138): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()' snappy.cc:(.text+0x214f): undefined reference to `std::allocator<char>::~allocator()' /home/somebody/eleveldb/c_src/system/lib/libsnappy.a(snappy.o): In function `snappy::Uncompress(char const*, unsigned long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)': snappy.cc:(.text+0x228d): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::size() const' snappy.cc:(.text+0x22a1): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::max_size() const' /home/somebody/eleveldb/c_src/system/lib/libsnappy.a(snappy.o): In function `snappy::Compress(char const*, unsigned long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)': snappy.cc:(.text+0x2458): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::resize(unsigned long)' snappy.cc:(.text+0x2494): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::resize(unsigned long)' /home/somebody/eleveldb/c_src/system/lib/libsnappy.a(snappy.o): In function `__static_initialization_and_destruction_0(int, int)': snappy.cc:(.text+0x2689): undefined reference to `std::ios_base::Init::Init()' snappy.cc:(.text+0x269e): undefined reference to `std::ios_base::Init::~Init()' /home/somebody/eleveldb/c_src/system/lib/libsnappy.a(snappy.o): In function `snappy::LogMessage::operator<<(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)': snappy.cc:(.text._ZN6snappy10LogMessagelsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN6snappy10LogMessagelsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x1a): undefined reference to `std::cerr' snappy.cc:(.text._ZN6snappy10LogMessagelsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN6snappy10LogMessagelsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x22): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <char, std::char_traits<char>, std::allocator<char> >(std::basic_ostream<char, std::char_traits<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' /home/somebody/eleveldb/c_src/system/lib/libsnappy.a(snappy.o): In function `snappy::LogMessage::operator<<(int)': snappy.cc:(.text._ZN6snappy10LogMessagelsEi[_ZN6snappy10LogMessagelsEi]+0x17): undefined reference to `std::cerr' snappy.cc:(.text._ZN6snappy10LogMessagelsEi[_ZN6snappy10LogMessagelsEi]+0x1f): undefined reference to `std::ostream::operator<<(int)' /home/somebody/eleveldb/c_src/system/lib/libsnappy.a(snappy.o): In function `snappy::LogMessageCrash::~LogMessageCrash()': snappy.cc:(.text._ZN6snappy15LogMessageCrashD2Ev[_ZN6snappy15LogMessageCrashD5Ev]+0xf): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::endl<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&)' snappy.cc:(.text._ZN6snappy15LogMessageCrashD2Ev[_ZN6snappy15LogMessageCrashD5Ev]+0x19): undefined reference to `std::cerr' snappy.cc:(.text._ZN6snappy15LogMessageCrashD2Ev[_ZN6snappy15LogMessageCrashD5Ev]+0x21): undefined reference to `std::ostream::operator<<(std::ostream& (*)(std::ostream&))' /home/somebody/eleveldb/c_src/system/lib/libsnappy.a(snappy.o): In function `snappy::STLStringResizeUninitialized(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, unsigned long)': snappy.cc:(.text._ZN6snappy28STLStringResizeUninitializedEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEm[_ZN6snappy28STLStringResizeUninitializedEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEm]+0x1f): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::resize(unsigned long)' /home/somebody/eleveldb/c_src/system/lib/libsnappy.a(snappy.o): In function `snappy::string_as_array(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)': snappy.cc:(.text._ZN6snappy15string_as_arrayEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN6snappy15string_as_arrayEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x14): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::empty() const' snappy.cc:(.text._ZN6snappy15string_as_arrayEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN6snappy15string_as_arrayEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x2b): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::begin()' /home/somebody/eleveldb/c_src/system/lib/libsnappy.a(snappy.o): In function `snappy::internal::WorkingMemory::GetHashTable(unsigned long, int*)': snappy.cc:(.text+0x645): undefined reference to `std::allocator<char>::allocator()' snappy.cc:(.text+0x665): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&)' snappy.cc:(.text+0x6b6): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()' snappy.cc:(.text+0x6c7): undefined reference to `std::allocator<char>::~allocator()' snappy.cc:(.text+0x71a): undefined reference to `std::allocator<char>::allocator()' snappy.cc:(.text+0x737): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&)' snappy.cc:(.text+0x77f): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()' snappy.cc:(.text+0x790): undefined reference to `std::allocator<char>::~allocator()' snappy.cc:(.text+0x840): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()' snappy.cc:(.text+0x854): undefined reference to `std::allocator<char>::~allocator()' snappy.cc:(.text+0x889): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()' snappy.cc:(.text+0x89d): undefined reference to `std::allocator<char>::~allocator()' /home/somebody/eleveldb/c_src/system/lib/libsnappy.a(snappy.o): In function `snappy::internal::CompressFragment(char const*, unsigned long, char*, unsigned short*, int)': snappy.cc:(.text+0xab4): undefined reference to `std::allocator<char>::allocator()' snappy.cc:(.text+0xad7): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&)' snappy.cc:(.text+0xb2e): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()' snappy.cc:(.text+0xb42): undefined reference to `std::allocator<char>::~allocator()' snappy.cc:(.text+0x1205): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()' snappy.cc:(.text+0x121c): undefined reference to `std::allocator<char>::~allocator()' /home/somebody/eleveldb/c_src/system/lib/libsnappy.a(snappy.o): In function `snappy::Compress(snappy::Source*, snappy::Sink*)': snappy.cc:(.text+0x1cda): undefined reference to `std::allocator<char>::allocator()' snappy.cc:(.text+0x1cfd): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&)' snappy.cc:(.text+0x1d54): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()' snappy.cc:(.text+0x1d68): undefined reference to `std::allocator<char>::~allocator()' snappy.cc:(.text+0x2138): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()' snappy.cc:(.text+0x214f): undefined reference to `std::allocator<char>::~allocator()' /home/somebody/eleveldb/c_src/system/lib/libsnappy.a(snappy.o): In function `snappy::Uncompress(char const*, unsigned long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)': snappy.cc:(.text+0x228d): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::size() const' snappy.cc:(.text+0x22a1): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::max_size() const' /home/somebody/eleveldb/c_src/system/lib/libsnappy.a(snappy.o): In function `snappy::Compress(char const*, unsigned long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)': snappy.cc:(.text+0x2458): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::resize(unsigned long)' snappy.cc:(.text+0x2494): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::resize(unsigned long)' /home/somebody/eleveldb/c_src/system/lib/libsnappy.a(snappy.o): In function `__static_initialization_and_destruction_0(int, int)': snappy.cc:(.text+0x2689): undefined reference to `std::ios_base::Init::Init()' snappy.cc:(.text+0x269e): undefined reference to `std::ios_base::Init::~Init()' /home/somebody/eleveldb/c_src/system/lib/libsnappy.a(snappy.o): In function `snappy::LogMessage::operator<<(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)': snappy.cc:(.text._ZN6snappy10LogMessagelsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN6snappy10LogMessagelsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x1a): undefined reference to `std::cerr' snappy.cc:(.text._ZN6snappy10LogMessagelsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN6snappy10LogMessagelsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x22): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <char, std::char_traits<char>, std::allocator<char> >(std::basic_ostream<char, std::char_traits<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' /home/somebody/eleveldb/c_src/system/lib/libsnappy.a(snappy.o): In function `snappy::LogMessage::operator<<(int)': snappy.cc:(.text._ZN6snappy10LogMessagelsEi[_ZN6snappy10LogMessagelsEi]+0x17): undefined reference to `std::cerr' snappy.cc:(.text._ZN6snappy10LogMessagelsEi[_ZN6snappy10LogMessagelsEi]+0x1f): undefined reference to `std::ostream::operator<<(int)' /home/somebody/eleveldb/c_src/system/lib/libsnappy.a(snappy.o): In function `snappy::LogMessageCrash::~LogMessageCrash()': snappy.cc:(.text._ZN6snappy15LogMessageCrashD2Ev[_ZN6snappy15LogMessageCrashD5Ev]+0xf): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::endl<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&)' snappy.cc:(.text._ZN6snappy15LogMessageCrashD2Ev[_ZN6snappy15LogMessageCrashD5Ev]+0x19): undefined reference to `std::cerr' snappy.cc:(.text._ZN6snappy15LogMessageCrashD2Ev[_ZN6snappy15LogMessageCrashD5Ev]+0x21): undefined reference to `std::ostream::operator<<(std::ostream& (*)(std::ostream&))' /home/somebody/eleveldb/c_src/system/lib/libsnappy.a(snappy.o): In function `snappy::STLStringResizeUninitialized(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, unsigned long)': snappy.cc:(.text._ZN6snappy28STLStringResizeUninitializedEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEm[_ZN6snappy28STLStringResizeUninitializedEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEm]+0x1f): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::resize(unsigned long)' /home/somebody/eleveldb/c_src/system/lib/libsnappy.a(snappy.o): In function `snappy::string_as_array(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)': snappy.cc:(.text._ZN6snappy15string_as_arrayEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN6snappy15string_as_arrayEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x14): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::empty() const' snappy.cc:(.text._ZN6snappy15string_as_arrayEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN6snappy15string_as_arrayEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x2b): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::begin()' c++: error: linker command failed with exit code 1 (use -v to see invocation) gmake: *** [Makefile:209: sst_rewrite] Error 1 gmake: *** Waiting for unfinished jobs.... c++: error: linker command failed with exit code 1 (use -v to see invocation) gmake: *** [Makefile:209: leveldb_repair] Error 1 /home/somebody/eleveldb/c_src/system/lib/libsnappy.a(snappy.o): In function `snappy::internal::WorkingMemory::GetHashTable(unsigned long, int*)': snappy.cc:(.text+0x645): undefined reference to `std::allocator<char>::allocator()' snappy.cc:(.text+0x665): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&)' snappy.cc:(.text+0x6b6): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()' snappy.cc:(.text+0x6c7): undefined reference to `std::allocator<char>::~allocator()' snappy.cc:(.text+0x71a): undefined reference to `std::allocator<char>::allocator()' snappy.cc:(.text+0x737): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&)' snappy.cc:(.text+0x77f): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()' snappy.cc:(.text+0x790): undefined reference to `std::allocator<char>::~allocator()' snappy.cc:(.text+0x840): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()' snappy.cc:(.text+0x854): undefined reference to `std::allocator<char>::~allocator()' snappy.cc:(.text+0x889): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()' snappy.cc:(.text+0x89d): undefined reference to `std::allocator<char>::~allocator()' /home/somebody/eleveldb/c_src/system/lib/libsnappy.a(snappy.o): In function `snappy::internal::CompressFragment(char const*, unsigned long, char*, unsigned short*, int)': snappy.cc:(.text+0xab4): undefined reference to `std::allocator<char>::allocator()' snappy.cc:(.text+0xad7): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&)' snappy.cc:(.text+0xb2e): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()' snappy.cc:(.text+0xb42): undefined reference to `std::allocator<char>::~allocator()' snappy.cc:(.text+0x1205): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()' snappy.cc:(.text+0x121c): undefined reference to `std::allocator<char>::~allocator()' /home/somebody/eleveldb/c_src/system/lib/libsnappy.a(snappy.o): In function `snappy::Compress(snappy::Source*, snappy::Sink*)': snappy.cc:(.text+0x1cda): undefined reference to `std::allocator<char>::allocator()' snappy.cc:(.text+0x1cfd): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&)' snappy.cc:(.text+0x1d54): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()' snappy.cc:(.text+0x1d68): undefined reference to `std::allocator<char>::~allocator()' snappy.cc:(.text+0x2138): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()' snappy.cc:(.text+0x214f): undefined reference to `std::allocator<char>::~allocator()' /home/somebody/eleveldb/c_src/system/lib/libsnappy.a(snappy.o): In function `snappy::Uncompress(char const*, unsigned long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)': snappy.cc:(.text+0x228d): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::size() const' snappy.cc:(.text+0x22a1): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::max_size() const' /home/somebody/eleveldb/c_src/system/lib/libsnappy.a(snappy.o): In function `snappy::Compress(char const*, unsigned long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)': snappy.cc:(.text+0x2458): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::resize(unsigned long)' snappy.cc:(.text+0x2494): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::resize(unsigned long)' /home/somebody/eleveldb/c_src/system/lib/libsnappy.a(snappy.o): In function `__static_initialization_and_destruction_0(int, int)': snappy.cc:(.text+0x2689): undefined reference to `std::ios_base::Init::Init()' snappy.cc:(.text+0x269e): undefined reference to `std::ios_base::Init::~Init()' /home/somebody/eleveldb/c_src/system/lib/libsnappy.a(snappy.o): In function `snappy::LogMessage::operator<<(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)': snappy.cc:(.text._ZN6snappy10LogMessagelsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN6snappy10LogMessagelsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x1a): undefined reference to `std::cerr' snappy.cc:(.text._ZN6snappy10LogMessagelsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN6snappy10LogMessagelsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x22): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <char, std::char_traits<char>, std::allocator<char> >(std::basic_ostream<char, std::char_traits<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' /home/somebody/eleveldb/c_src/system/lib/libsnappy.a(snappy.o): In function `snappy::LogMessage::operator<<(int)': snappy.cc:(.text._ZN6snappy10LogMessagelsEi[_ZN6snappy10LogMessagelsEi]+0x17): undefined reference to `std::cerr' snappy.cc:(.text._ZN6snappy10LogMessagelsEi[_ZN6snappy10LogMessagelsEi]+0x1f): undefined reference to `std::ostream::operator<<(int)' /home/somebody/eleveldb/c_src/system/lib/libsnappy.a(snappy.o): In function `snappy::LogMessageCrash::~LogMessageCrash()': snappy.cc:(.text._ZN6snappy15LogMessageCrashD2Ev[_ZN6snappy15LogMessageCrashD5Ev]+0xf): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::endl<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&)' snappy.cc:(.text._ZN6snappy15LogMessageCrashD2Ev[_ZN6snappy15LogMessageCrashD5Ev]+0x19): undefined reference to `std::cerr' snappy.cc:(.text._ZN6snappy15LogMessageCrashD2Ev[_ZN6snappy15LogMessageCrashD5Ev]+0x21): undefined reference to `std::ostream::operator<<(std::ostream& (*)(std::ostream&))' /home/somebody/eleveldb/c_src/system/lib/libsnappy.a(snappy.o): In function `snappy::STLStringResizeUninitialized(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, unsigned long)': snappy.cc:(.text._ZN6snappy28STLStringResizeUninitializedEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEm[_ZN6snappy28STLStringResizeUninitializedEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEm]+0x1f): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::resize(unsigned long)' /home/somebody/eleveldb/c_src/system/lib/libsnappy.a(snappy.o): In function `snappy::string_as_array(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)': snappy.cc:(.text._ZN6snappy15string_as_arrayEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN6snappy15string_as_arrayEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x14): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::empty() const' snappy.cc:(.text._ZN6snappy15string_as_arrayEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN6snappy15string_as_arrayEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x2b): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::begin()' c++: error: linker command failed with exit code 1 (use -v to see invocation) gmake: *** [Makefile:209: sst_scan] Error 1 ERROR: Command [compile] failed!
Any ideas how to resolve this?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Tested on
7920245fd112d2ab5c6416cf827c8f0f82b6530c
(develop
)FreeBSD 11.2
(amd64
)Erlang/OTP 21 [erts-10.3.5.5]
Description
When compiling
eleveldb
on a FreeBSD instance, it seems to have this error when running./rebar compile
:Any ideas how to resolve this?
The text was updated successfully, but these errors were encountered: