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

test_config_parser.cpp:(.text+<snip>): undefined reference to Davix::davix_config_tokenize(...) #24

Closed
amadio opened this issue Mar 21, 2018 · 2 comments

Comments

@amadio
Copy link
Contributor

amadio commented Mar 21, 2018

Davix has been recently packaged in Gentoo, but it is failing to build with testing turned on, as shown below. For more information, please see https://bugs.gentoo.org/651098.

CMakeFiles/g_test_unit_davix_exe.dir/parser/test_config_parser.cpp.o: In function `ConfigParser_Tokenizer_Test::TestBody()':
test_config_parser.cpp:(.text+0x22f): undefined reference to `Davix::davix_config_tokenize(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)'
test_config_parser.cpp:(.text+0x576): undefined reference to `Davix::davix_config_tokenize(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)'
test_config_parser.cpp:(.text+0x804): undefined reference to `Davix::davix_config_tokenize(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)'
test_config_parser.cpp:(.text+0xc02): undefined reference to `Davix::davix_config_tokenize(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)'

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-developer_20180319-191208

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.0 *

Available Python interpreters, in order of preference:
  [1]   python3.5
  [2]   python2.7 (fallback)
@amadio amadio changed the title net-libs/davix-0.6.7 : test_config_parser.cpp:(.text+<snip>): undefined reference to Davix::davix_config_tokenize(std::_cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::_cxx11::basic_str test_config_parser.cpp:(.text+<snip>): undefined reference to Davix::davix_config_tokenize(...) Mar 21, 2018
@gbitzes
Copy link
Contributor

gbitzes commented Mar 22, 2018

Hi, thanks for the report! I pushed a fix on devel branch, could you give it a try?

@amadio
Copy link
Contributor Author

amadio commented Mar 22, 2018

Hi @gbitzes. Thanks for the quick response. Looking at your patch I realized that the problem is that to have -DUNIT_TEST=ON, you also need -DENABLE_TOOLS=ON, otherwise (even with your patch), things do not work. I added in Gentoo the requirement that when testing is enabled the tools also have to be enabled. In that case, all tests pass even without your change. In any case, thank you for your help! Cheers,

@amadio amadio closed this as completed Mar 22, 2018
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