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

snappy build on macos will fail #8805

Closed
jacquesqiao opened this issue Mar 6, 2018 · 0 comments · Fixed by #8804
Closed

snappy build on macos will fail #8805

jacquesqiao opened this issue Mar 6, 2018 · 0 comments · Fixed by #8804
Assignees

Comments

@jacquesqiao
Copy link
Member

the log is

cpplint: Checking source code style
Undefined symbols for architecture x86_64:
  "testing::InitGoogleTest(int*, char**)", referenced from:
      _main in snappy_unittest.cc.o
  "testing::AssertionResult::AssertionResult(testing::AssertionResult const&)", referenced from:
      testing::AssertionResult testing::internal::CmpHelperOpFailure<char, char>(char const*, char const*, char const&, char const&, char const*) in snappy_unittest.cc.o
      testing::AssertionResult testing::internal::CmpHelperOpFailure<int, unsigned short>(char const*, char const*, int const&, unsigned short const&, char const*) in snappy_unittest.cc.o
  "testing::AssertionFailure()", referenced from:
      testing::AssertionResult testing::internal::CmpHelperOpFailure<char, char>(char const*, char const*, char const&, char const&, char const*) in snappy_unittest.cc.o
      testing::AssertionResult testing::internal::CmpHelperOpFailure<int, unsigned short>(char const*, char const*, int const&, unsigned short const&, char const*) in snappy_unittest.cc.o
  "testing::AssertionSuccess()", referenced from:
      snappy::Snappy_FindMatchLength_Test::TestBody() in snappy_unittest.cc.o
      snappy::Snappy_FindMatchLengthRandom_Test::TestBody() in snappy_unittest.cc.o
      snappy::Snappy_VerifyCharTable_Test::TestBody() in snappy_unittest.cc.o
      testing::AssertionResult testing::internal::CmpHelperEQ<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(char const*, char const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in snappy_unittest.cc.o
  "testing::Test::SetUp()", referenced from:
      vtable for snappy::CorruptedTest_VerifyCorrupted_Test in snappy_unittest.cc.o
      vtable for snappy::Snappy_SimpleTests_Test in snappy_unittest.cc.o
      vtable for snappy::Snappy_MaxBlowup_Test in[  9%] Linking CXX static library libenforce.a
 snappy_unittest.cc.o
      vtable for snappy::Snappy_RandomData_Test in snappy_unittest.cc.o
      vtable for snappy::Snappy_FourByteOffset_Test in snappy_unittest.cc.o
      vtable for snappy::Snappy_IOVecEdgeCases_Test in snappy_unittest.cc.o
      vtable for snappy::Snappy_IOVecLiteralOverflow_Test in snappy_unittest.cc.o
      ...
  "testing::Test::TearDown()", referenced from:
      vtable for snappy::CorruptedTest_VerifyCorrupted_Test in snappy_unittest.cc.o
      vtable for
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

Successfully merging a pull request may close this issue.

1 participant