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

Davix 0.7.4 conflicts with system gtest 1.8.1 #47

Open
daritter opened this issue Jul 24, 2019 · 1 comment
Open

Davix 0.7.4 conflicts with system gtest 1.8.1 #47

daritter opened this issue Jul 24, 2019 · 1 comment

Comments

@daritter
Copy link
Contributor

When trying to compile davix 0.7.4 I ran into a compiler error because a function definition changed in the bundled version of googletest since the latest release 1.8.1

In file included from davix/deps/googletest/googletest/src/gtest-all.cc:45:
davix/deps/googletest/googletest/src/gtest-port.cc:1211:13: error: ambiguating new declaration of 'const char* testing::internal::StringFromGTestEnv(const char*, const char*)'
 const char* StringFromGTestEnv(const char* flag, const char* default_value) {
             ^~~~~~~~~~~~~~~~~~
In file included from common/include/gtest/internal/gtest-internal.h:40,
                 from /common/include/gtest/gtest.h:58,
                 from /davix/deps/googletest/googletest/src/gtest-all.cc:39:
include/gtest/internal/gtest-port.h:2549:13: note: old declaration 'std::__cxx11::string testing::internal::StringFromGTestEnv(const char*, const char*)'
 std::string StringFromGTestEnv(const char* flag, const char* default_val);
             ^~~~~~~~~~~~~~~~~~

googletest 1.8.1 is installed in a common include directory with libuuid so I cannot easily hide it from davix.

As a simple solution, would it be possible to include an option to not build the tests at all?

@gbitzes
Copy link
Contributor

gbitzes commented Jul 24, 2019

Hi, thanks for the bug report. davix should indeed prefer the headers of its own bundled gtest, and if it doesn't that's a bug indeed.

I'll also add a flag to skip building the tests entirely.

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

2 participants