The problem would only occur when using dpkg-buildpackage. (slightly
different link order was generated).

The symbols that were missing were templates from gmock that were
generated and in the mock_egl.cpp.o file. Given the right link order
(namely, mirserver.so before libmir-test-assist.a), things would resolve
correctly. If mirserver.so came after libmir-test-assist.a, then the egl
functions would get resolved, but for whatever reason, the weak symbols
generated as part of the gmock stuff wouldn't get pulled in again before
getting to the end of the linkage list.

The proper solution seems to be to use -Wl,--whole-archive to make sure
that the symbols generated from the gmock templates are still available
despite linkage order

** Changed in: mir
     Assignee: (unassigned) => Kevin DuBois (kdub)

** Branch linked: lp:~kdub/mir/fix-1601810

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to mir in Ubuntu.
https://bugs.launchpad.net/bugs/1601810

Title:
  ftbfs in linking libmir-test-assist.a in xenial+overlay and
  yakkety+overlay

Status in Mir:
  New
Status in Mir 0.24 series:
  In Progress
Status in mir package in Ubuntu:
  New

Bug description:
  snippet:
  ../libmir-test-assist.a(mock_egl.cpp.o): In function 
`testing::internal::MatcherBase<char const*>::MatchAndExplain(char const*, 
testing::MatchResultListener*) const':
  /usr/include/gmock/gmock-matchers.h:232: undefined reference to 
`testing::PolymorphicMatcher<testing::internal::StrEqualityMatcher<std::__cxx11::basic_string<char,
 std::char_traits<char>, std::allocator<char> > > >::MonomorphicImpl<char 
const*>::MatchAndExplain(char const*, testing::MatchResultListener*) const'
  ../libmir-test-assist.a(mock_egl.cpp.o): In function 
`testing::internal::MatcherBase<std::tuple<char const*> 
const&>::MatchAndExplain(std::tuple<char const*> const&, 
testing::MatchResultListener*) const':

  
  full log:
  
https://launchpadlibrarian.net/272328456/buildlog_ubuntu-xenial-amd64.mir_0.24.0+16.04.20160711-0ubuntu1_BUILDING.txt.gz

To manage notifications about this bug go to:
https://bugs.launchpad.net/mir/+bug/1601810/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to