{"action":"closed","issue":{"url":"https://api.github.com/repos/google/protobuf/issues/1374","repository_url":"https://api.github.com/repos/google/protobuf","labels_url":"https://api.github.com/repos/google/protobuf/issues/1374/labels{/name}","comments_url":"https://api.github.com/repos/google/protobuf/issues/1374/comments","events_url":"https://api.github.com/repos/google/protobuf/issues/1374/events","html_url":"https://github.com/google/protobuf/issues/1374","id":145141693,"number":1374,"title":"protobuf 3.0.0-beta2 cmake build fails with pthread error","user":{"login":"emmenlau","id":1098087,"avatar_url":"https://avatars3.githubusercontent.com/u/1098087?v=3","gravatar_id":"","url":"https://api.github.com/users/emmenlau","html_url":"https://github.com/emmenlau","followers_url":"https://api.github.com/users/emmenlau/followers","following_url":"https://api.github.com/users/emmenlau/following{/other_user}","gists_url":"https://api.github.com/users/emmenlau/gists{/gist_id}","starred_url":"https://api.github.com/users/emmenlau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emmenlau/subscriptions","organizations_url":"https://api.github.com/users/emmenlau/orgs","repos_url":"https://api.github.com/users/emmenlau/repos","events_url":"https://api.github.com/users/emmenlau/events{/privacy}","received_events_url":"https://api.github.com/users/emmenlau/received_events","type":"User","site_admin":false},"labels":[{"id":124699531,"url":"https://api.github.com/repos/google/protobuf/labels/bug","name":"bug","color":"fc2929","default":true},{"id":314358001,"url":"https://api.github.com/repos/google/protobuf/labels/cmake","name":"cmake","color":"bfdadc","default":false}],"state":"closed","locked":false,"assignee":{"login":"xfxyjwf","id":8551050,"avatar_url":"https://avatars3.githubusercontent.com/u/8551050?v=3","gravatar_id":"","url":"https://api.github.com/users/xfxyjwf","html_url":"https://github.com/xfxyjwf","followers_url":"https://api.github.com/users/xfxyjwf/followers","following_url":"https://api.github.com/users/xfxyjwf/following{/other_user}","gists_url":"https://api.github.com/users/xfxyjwf/gists{/gist_id}","starred_url":"https://api.github.com/users/xfxyjwf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xfxyjwf/subscriptions","organizations_url":"https://api.github.com/users/xfxyjwf/orgs","repos_url":"https://api.github.com/users/xfxyjwf/repos","events_url":"https://api.github.com/users/xfxyjwf/events{/privacy}","received_events_url":"https://api.github.com/users/xfxyjwf/received_events","type":"User","site_admin":false},"assignees":[{"login":"xfxyjwf","id":8551050,"avatar_url":"https://avatars3.githubusercontent.com/u/8551050?v=3","gravatar_id":"","url":"https://api.github.com/users/xfxyjwf","html_url":"https://github.com/xfxyjwf","followers_url":"https://api.github.com/users/xfxyjwf/followers","following_url":"https://api.github.com/users/xfxyjwf/following{/other_user}","gists_url":"https://api.github.com/users/xfxyjwf/gists{/gist_id}","starred_url":"https://api.github.com/users/xfxyjwf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xfxyjwf/subscriptions","organizations_url":"https://api.github.com/users/xfxyjwf/orgs","repos_url":"https://api.github.com/users/xfxyjwf/repos","events_url":"https://api.github.com/users/xfxyjwf/events{/privacy}","received_events_url":"https://api.github.com/users/xfxyjwf/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2016-04-01T10:13:03Z","updated_at":"2017-03-10T23:03:15Z","closed_at":"2017-03-10T23:03:15Z","body":"I'm compiling protobuf with latest gmock 1.7.0 and gtest 1.7.0 on Ubuntu 15.10 with cmake:\n\n```\ncmake ./cmake \\\n    -Wno-dev \\\n    -G\"Unix Makefiles\" \\\n    -DCMAKE_INSTALL_PREFIX=\"$THIRDPARTYTARGETDIR\" \\\n    -DCMAKE_BUILD_TYPE=\"Release\" \\\n    -DCMAKE_POSITION_INDEPENDENT_CODE=\"ON\" \\\n    -DBUILD_SHARED_LIBS=\"ON\" \\\n    -Dprotobuf_BUILD_TESTS=\"ON\" \\\n    -Dprotobuf_WITH_ZLIB=\"ON\"\n```\n\nbut the build fails. With autoconf / automake / configure the build works fine. Here the cmake build error:\n\n```\n[ 54%] Building CXX object CMakeFiles/lite-arena-test.dir/src/google/protobuf/unittest_no_arena_lite.pb.cc.o\nLinking CXX executable lite-arena-test\n/usr/bin/ld: libgmock.a(gmock-all.cc.o): undefined reference to symbol 'pthread_key_delete@@GLIBC_2.2.5'\n/lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line\ncollect2: error: ld returned 1 exit status\nCMakeFiles/lite-arena-test.dir/build.make:318: recipe for target 'lite-arena-test' failed\n```\n"}}
{"actor":{"display_login":"xfxyjwf"}}