Public bug reported:

The way dbus-cpp sets up gtest and gmock is broken and does not work
with Ninja. To replicate:

bzr branch lp:dbus-cpp
cd dbus-cpp
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=debug -G Ninja ..
ninja

This brings (eventually) a gazillion errors starting with this:

[43/65] Building CXX object 
tests/CMakeFiles/compiler_test.dir/compiler_test.cpp.o
FAILED: /usr/bin/c++   -DCORE_DBUS_ENABLE_GOOGLE_TEST_FIXTURE -std=c++11 
-Werror -Wall -fno-strict-aliasing -fvisibility=hidden 
-fvisibility-inlines-hidden -pedantic -Wextra -fPIC -pthread -g -I../include 
-I/usr/include/libxml2 -Itests -I/usr/include/dbus-1.0 
-I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -MMD -MT 
tests/CMakeFiles/compiler_test.dir/compiler_test.cpp.o -MF 
"tests/CMakeFiles/compiler_test.dir/compiler_test.cpp.o.d" -o 
tests/CMakeFiles/compiler_test.dir/compiler_test.cpp.o -c 
../tests/compiler_test.cpp
In file included from 
/usr/include/gmock/gmock-generated-function-mockers.h:43:0,
                 from /usr/include/gmock/gmock.h:61,
                 from ../tests/compiler_test.cpp:23:
/usr/include/gmock/gmock-spec-builders.h:134:41: error: expected ‘;’ at end of 
member declaration
   bool VerifyAndClearExpectationsLocked()
                                         ^
/usr/include/gmock/gmock-spec-builders.h:135:38: error: ‘g_gmock_mutex’ is not 
a type
       GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex);
                                      ^
This happens with both Gcc 4.8 and 4.7.

** Affects: dbus-cpp (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to dbus-cpp in Ubuntu.
https://bugs.launchpad.net/bugs/1293599

Title:
  Does not compile with Ninja

Status in “dbus-cpp” package in Ubuntu:
  New

Bug description:
  The way dbus-cpp sets up gtest and gmock is broken and does not work
  with Ninja. To replicate:

  bzr branch lp:dbus-cpp
  cd dbus-cpp
  mkdir build
  cd build
  cmake -DCMAKE_BUILD_TYPE=debug -G Ninja ..
  ninja

  This brings (eventually) a gazillion errors starting with this:

  [43/65] Building CXX object 
tests/CMakeFiles/compiler_test.dir/compiler_test.cpp.o
  FAILED: /usr/bin/c++   -DCORE_DBUS_ENABLE_GOOGLE_TEST_FIXTURE -std=c++11 
-Werror -Wall -fno-strict-aliasing -fvisibility=hidden 
-fvisibility-inlines-hidden -pedantic -Wextra -fPIC -pthread -g -I../include 
-I/usr/include/libxml2 -Itests -I/usr/include/dbus-1.0 
-I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -MMD -MT 
tests/CMakeFiles/compiler_test.dir/compiler_test.cpp.o -MF 
"tests/CMakeFiles/compiler_test.dir/compiler_test.cpp.o.d" -o 
tests/CMakeFiles/compiler_test.dir/compiler_test.cpp.o -c 
../tests/compiler_test.cpp
  In file included from 
/usr/include/gmock/gmock-generated-function-mockers.h:43:0,
                   from /usr/include/gmock/gmock.h:61,
                   from ../tests/compiler_test.cpp:23:
  /usr/include/gmock/gmock-spec-builders.h:134:41: error: expected ‘;’ at end 
of member declaration
     bool VerifyAndClearExpectationsLocked()
                                           ^
  /usr/include/gmock/gmock-spec-builders.h:135:38: error: ‘g_gmock_mutex’ is 
not a type
         GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex);
                                        ^
  This happens with both Gcc 4.8 and 4.7.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dbus-cpp/+bug/1293599/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to