{"action":"created","issue":{"url":"https://api.github.com/repos/f1xpl/aasdk/issues/7","repository_url":"https://api.github.com/repos/f1xpl/aasdk","labels_url":"https://api.github.com/repos/f1xpl/aasdk/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/f1xpl/aasdk/issues/7/comments","events_url":"https://api.github.com/repos/f1xpl/aasdk/issues/7/events","html_url":"https://github.com/f1xpl/aasdk/pull/7","id":300918402,"number":7,"title":"Fix remaining MacOS build issues","user":{"login":"duxet","id":821707,"avatar_url":"https://avatars1.githubusercontent.com/u/821707?v=4","gravatar_id":"","url":"https://api.github.com/users/duxet","html_url":"https://github.com/duxet","followers_url":"https://api.github.com/users/duxet/followers","following_url":"https://api.github.com/users/duxet/following{/other_user}","gists_url":"https://api.github.com/users/duxet/gists{/gist_id}","starred_url":"https://api.github.com/users/duxet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duxet/subscriptions","organizations_url":"https://api.github.com/users/duxet/orgs","repos_url":"https://api.github.com/users/duxet/repos","events_url":"https://api.github.com/users/duxet/events{/privacy}","received_events_url":"https://api.github.com/users/duxet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-28T07:26:29Z","updated_at":"2018-02-28T18:09:00Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/f1xpl/aasdk/pulls/7","html_url":"https://github.com/f1xpl/aasdk/pull/7","diff_url":"https://github.com/f1xpl/aasdk/pull/7.diff","patch_url":"https://github.com/f1xpl/aasdk/pull/7.patch"},"body":"With these changes project will compile successfully on MacOS by adding `-DOPENSSL_ROOT_DIR=$(brew --prefix openssl)` parameter to cmake.\r\n\r\nI had to add `set(Protobuf_USE_STATIC_LIBS ON)` to fix issue with:\r\n```\r\n$ bin/autoapp\r\n[libprotobuf ERROR google/protobuf/descriptor_database.cc:58] File already exists in database: AVMediaAckIndicationMessage.proto\r\n[libprotobuf FATAL google/protobuf/descriptor.cc:1394] CHECK failed: generated_database_->Add(encoded_file_descriptor, size):\r\nlibc++abi.dylib: terminating with uncaught exception of type google::protobuf::FatalException: CHECK failed: generated_database_->Add(encoded_file_descriptor, size):\r\n```"},"comment":{"url":"https://api.github.com/repos/f1xpl/aasdk/issues/comments/369329558","html_url":"https://github.com/f1xpl/aasdk/pull/7#issuecomment-369329558","issue_url":"https://api.github.com/repos/f1xpl/aasdk/issues/7","id":369329558,"user":{"login":"f1xpl","id":20688442,"avatar_url":"https://avatars0.githubusercontent.com/u/20688442?v=4","gravatar_id":"","url":"https://api.github.com/users/f1xpl","html_url":"https://github.com/f1xpl","followers_url":"https://api.github.com/users/f1xpl/followers","following_url":"https://api.github.com/users/f1xpl/following{/other_user}","gists_url":"https://api.github.com/users/f1xpl/gists{/gist_id}","starred_url":"https://api.github.com/users/f1xpl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/f1xpl/subscriptions","organizations_url":"https://api.github.com/users/f1xpl/orgs","repos_url":"https://api.github.com/users/f1xpl/repos","events_url":"https://api.github.com/users/f1xpl/events{/privacy}","received_events_url":"https://api.github.com/users/f1xpl/received_events","type":"User","site_admin":false},"created_at":"2018-02-28T18:09:00Z","updated_at":"2018-02-28T18:09:00Z","author_association":"OWNER","body":"Hello,\r\nI tested compilation on Ubuntu 17.10. There is a linking problem with protobuf. Looks strange because -fPIC is already added.\r\n\r\n```\r\n/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libprotobuf.a(arena.o): relocation R_X86_64_TPOFF32 against symbol `_ZN6google8protobuf5Arena13thread_cache_E' can not be used when making a shared object; recompile with -fPIC\r\n/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libprotobuf.a(descriptor.o): relocation R_X86_64_PC32 against symbol `_ZTIN6google8protobuf15DescriptorProtoE' can not be used when making a shared object; recompile with -fPIC\r\n/usr/bin/ld: final link failed: Bad value\r\n```\r\n\r\n```\r\n$ ld --version\r\nGNU ld (GNU Binutils for Ubuntu) 2.29.1\r\nCopyright (C) 2017 Free Software Foundation, Inc.\r\nThis program is free software; you may redistribute it under the terms of\r\nthe GNU General Public License version 3 or (at your option) a later version.\r\nThis program has absolutely no warranty.\r\n```\r\n\r\n```\r\n$ protoc --version\r\nlibprotoc 3.0.0\r\n```\r\n\r\n```\r\n$ gcc --version\r\ngcc (Ubuntu 7.2.0-8ubuntu3.2) 7.2.0\r\nCopyright (C) 2017 Free Software Foundation, Inc.\r\nThis is free software; see the source for copying conditions.  There is NO\r\nwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\r\n```\r\n\r\n```\r\n$ uname -a\r\nLinux michalszwaj-VirtualBox 4.13.0-36-generic #40-Ubuntu SMP Fri Feb 16 20:07:48 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux\r\n```"}}
{"actor":{"display_login":"f1xpl"}}