Bug 222189 - games/stuntrally: fails to build against boost-libs with C++11 enabled
Summary: games/stuntrally: fails to build against boost-libs with C++11 enabled
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Jan Beich
URL:
Keywords: needs-patch
Depends on:
Blocks: 220783
  Show dependency treegraph
 
Reported: 2017-09-10 12:13 UTC by Jan Beich
Modified: 2017-09-25 00:09 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Beich freebsd_committer freebsd_triage 2017-09-10 12:13:18 UTC
source/shiny/libshiny.a(Preprocessor.cpp.o): In function `boost::wave::impl::pp_iterator_functor<boost::wave::context<std::__1::__wrap_iter<char*>, boost::wave::cpplexer::lex_iterator<boost::wave::cpplexer::lex_token<boost::wave::util::file_position<boost::wave::util::flex_string<char, std::__1::char_traits<char>, std::__1::allocator<char>, boost::wave::util::CowString<boost::wave::util::AllocatorStringStorage<char, std::__1::allocator<char> >, char*> > > > >, boost::wave::iteration_context_policies::load_utf8_path_to_string, sh::emit_custom_line_directives_hooks, boost::wave::this_type> >::pp_directive()':
/wrkdirs/usr/ports/games/stuntrally/work/stuntrally-2.6/source/shiny/Main/Preprocessor.cpp:(.text._ZN5boost4wave4impl19pp_iterator_functorINS0_7contextINSt3__111__wrap_iterIPcEENS0_8cpplexer12lex_iteratorINS8_9lex_tokenINS0_4util13file_positionINSB_11flex_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEENSB_9CowStringINSB_22AllocatorStringStorageIcSH_EES6_EEEEEEEEEENS0_26iteration_context_policies24load_utf8_path_to_stringEN2sh33emit_custom_line_directives_hooksENS0_9this_typeEEEE12pp_directiveEv[_ZN5boost4wave4impl19pp_iterator_functorINS0_7contextINSt3__111__wrap_iterIPcEENS0_8cpplexer12lex_iteratorINS8_9lex_tokenINS0_4util13file_positionINSB_11flex_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEENSB_9CowStringINSB_22AllocatorStringStorageIcSH_EES6_EEEEEEEEEENS0_26iteration_context_policies24load_utf8_path_to_stringEN2sh33emit_custom_line_directives_hooksENS0_9this_typeEEEE12pp_directiveEv]+0x11f): undefined reference to `boost::wave::grammars::cpp_grammar_gen<boost::wave::cpplexer::lex_iterator<boost::wave::cpplexer::lex_token<boost::wave::util::file_position<boost::wave::util::flex_string<char, std::__1::char_traits<char>, std::__1::allocator<char>, boost::wave::util::CowString<boost::wave::util::AllocatorStringStorage<char, std::__1::allocator<char> >, char*> > > > >, std::__1::list<boost::wave::cpplexer::lex_token<boost::wave::util::file_position<boost::wave::util::flex_string<char, std::__1::char_traits<char>, std::__1::allocator<char>, boost::wave::util::CowString<boost::wave::util::AllocatorStringStorage<char, std::__1::allocator<char> >, char*> > > >, boost::fast_pool_allocator<boost::wave::cpplexer::lex_token<boost::wave::util::file_position<boost::wave::util::flex_string<char, std::__1::char_traits<char>, std::__1::allocator<char>, boost::wave::util::CowString<boost::wave::util::AllocatorStringStorage<char, std::__1::allocator<char> >, char*> > > >, boost::default_user_allocator_new_delete, boost::mutex, 32u, 0u> > >::parse_cpp_grammar(boost::wave::cpplexer::lex_iterator<boost::wave::cpplexer::lex_token<boost::wave::util::file_position<boost::wave::util::flex_string<char, std::__1::char_traits<char>, std::__1::allocator<char>, boost::wave::util::CowString<boost::wave::util::AllocatorStringStorage<char, std::__1::allocator<char> >, char*> > > > > const&, boost::wave::cpplexer::lex_iterator<boost::wave::cpplexer::lex_token<boost::wave::util::file_position<boost::wave::util::flex_string<char, std::__1::char_traits<char>, std::__1::allocator<char>, boost::wave::util::CowString<boost::wave::util::AllocatorStringStorage<char, std::__1::allocator<char> >, char*> > > > > const&, boost::wave::util::file_position<boost::wave::util::flex_string<char, std::__1::char_traits<char>, std::__1::allocator<char>, boost::wave::util::CowString<boost::wave::util::AllocatorStringStorage<char, std::__1::allocator<char> >, char*> > > const&, bool&, boost::wave::cpplexer::lex_token<boost::wave::util::file_position<boost::wave::util::flex_string<char, std::__1::char_traits<char>, std::__1::allocator<char>, boost::wave::util::CowString<boost::wave::util::AllocatorStringStorage<char, std::__1::allocator<char> >, char*> > > >&, std::__1::list<boost::wave::cpplexer::lex_token<boost::wave::util::file_position<boost::wave::util::flex_string<char, std::__1::char_traits<char>, std::__1::allocator<char>, boost::wave::util::CowString<boost::wave::util::AllocatorStringStorage<char, std::__1::allocator<char> >, char*> > > >, boost::fast_pool_allocator<boost::wave::cpplexer::lex_token<boost::wave::util::file_position<boost::wave::util::flex_string<char, std::__1::char_traits<char>, std::__1::allocator<char>, boost::wave::util::CowString<boost::wave::util::AllocatorStringStorage<char, std::__1::allocator<char> >, char*> > > >, boost::default_user_allocator_new_delete, boost::mutex, 32u, 0u> >&)'
[...]

http://package18.nyi.freebsd.org/data/103i386-default-PR220714/2017-09-10_08h14m47s/logs/errors/stuntrally-2.6.log
Comment 1 Jan Beich freebsd_committer freebsd_triage 2017-09-10 12:17:18 UTC
Adding USES=compiler:c++11-lib + USE_CXXSTD=gnu++11 would probably fix the error but it usually requires patching source to conform to C++11. Note, the port builds fine against Boost 1.65.1 alone i.e., bug 220714 without bug 220783.
Comment 2 commit-hook freebsd_committer freebsd_triage 2017-09-25 00:06:09 UTC
A commit references this bug:

Author: jbeich
Date: Mon Sep 25 00:05:47 UTC 2017
New revision: 450559
URL: https://svnweb.freebsd.org/changeset/ports/450559

Log:
  games/stuntrally: switch to C++11 for Boost

  PR:		222189

Changes:
  head/games/stuntrally/Makefile
  head/games/stuntrally/distinfo