{"action":"created","issue":{"url":"https://api.github.com/repos/baidu/bfs/issues/573","repository_url":"https://api.github.com/repos/baidu/bfs","labels_url":"https://api.github.com/repos/baidu/bfs/issues/573/labels{/name}","comments_url":"https://api.github.com/repos/baidu/bfs/issues/573/comments","events_url":"https://api.github.com/repos/baidu/bfs/issues/573/events","html_url":"https://github.com/baidu/bfs/issues/573","id":187713541,"number":573,"title":"Make error on Mac","user":{"login":"armsword","id":4738595,"avatar_url":"https://avatars.githubusercontent.com/u/4738595?v=3","gravatar_id":"","url":"https://api.github.com/users/armsword","html_url":"https://github.com/armsword","followers_url":"https://api.github.com/users/armsword/followers","following_url":"https://api.github.com/users/armsword/following{/other_user}","gists_url":"https://api.github.com/users/armsword/gists{/gist_id}","starred_url":"https://api.github.com/users/armsword/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/armsword/subscriptions","organizations_url":"https://api.github.com/users/armsword/orgs","repos_url":"https://api.github.com/users/armsword/repos","events_url":"https://api.github.com/users/armsword/events{/privacy}","received_events_url":"https://api.github.com/users/armsword/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-07T13:37:31Z","updated_at":"2016-11-11T00:23:53Z","closed_at":null,"body":"修改了很多东西，详细内容不说。只说下可能是影响bfs不能work起来的直接原因：\r\n\r\n在build.sh 里我删除了 libunwind 的安装，原因是 libunwind 不能跨平台，目前无Mac系统支持的版本，详情见此：http://comments.gmane.org/gmane.comp.lib.unwind.devel/2199\r\n\r\n然后，在编译最后阶段，出现的错误为：\r\n\r\n```javascript\r\nUndefined symbols for architecture x86_64:\r\n  \"_ProfilerStart\", referenced from:\r\n      sofa::pbrpc::Profiling::CpuProfilingFunc() in libsofa-pbrpc.a(profiling.o)\r\n      sofa::pbrpc::Profiling::DoCpuProfiling(sofa::pbrpc::Profiling::DataType) in libsofa-pbrpc.a(profiling.o)\r\n  \"_ProfilerStop\", referenced from:\r\n      sofa::pbrpc::Profiling::CpuProfilingFunc() in libsofa-pbrpc.a(profiling.o)\r\n  \"google::FlagRegisterer::FlagRegisterer(char const*, char const*, char const*, char const*, void*, void*)\", referenced from:\r\n      ___cxx_global_var_init in flags.o\r\n      ___cxx_global_var_init.4 in flags.o\r\n      ___cxx_global_var_init.7 in flags.o\r\n      ___cxx_global_var_init.13 in flags.o\r\n      ___cxx_global_var_init.18 in flags.o\r\n      ___cxx_global_var_init.21 in flags.o\r\n      ___cxx_global_var_init.24 in flags.o\r\n      ...\r\n  \"google::ParseCommandLineFlags(int*, char***, bool)\", referenced from:\r\n      _main in nameserver_main.o\r\nld: symbol(s) not found for architecture x86_64\r\nclang: error: linker command failed with exit code 1 (use -v to see invocation)\r\nmake: *** [nameserver] Error 1\r\nmake: *** Waiting for unfinished jobs....\r\n```\r\n\r\n发现应该是调用 ProfilerStart 和 ProfilerStop ，而这个函数应该是依赖于perftools，所以链接失败。\r\n\r\n不知道你们有没有其他解决办法，如果有的话，我应该是可以在Mac下编译成功的，当然，我有时间在细看下这个问题，以上也只是本人猜测的直接原因。\r\n\r\n\r\n第二个问题：\r\ncommon库的atomic.h文件里有个 atomic_add64 函数，形参为 volatile long* ，但是实际使用的实参都为 volatile int64_t* 类型，这个在clang下编译会报错的，因为类型不一样，这个是不是需要修改下？\r\n"},"comment":{"url":"https://api.github.com/repos/baidu/bfs/issues/comments/259847940","html_url":"https://github.com/baidu/bfs/issues/573#issuecomment-259847940","issue_url":"https://api.github.com/repos/baidu/bfs/issues/573","id":259847940,"user":{"login":"bluebore","id":6851389,"avatar_url":"https://avatars.githubusercontent.com/u/6851389?v=3","gravatar_id":"","url":"https://api.github.com/users/bluebore","html_url":"https://github.com/bluebore","followers_url":"https://api.github.com/users/bluebore/followers","following_url":"https://api.github.com/users/bluebore/following{/other_user}","gists_url":"https://api.github.com/users/bluebore/gists{/gist_id}","starred_url":"https://api.github.com/users/bluebore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bluebore/subscriptions","organizations_url":"https://api.github.com/users/bluebore/orgs","repos_url":"https://api.github.com/users/bluebore/repos","events_url":"https://api.github.com/users/bluebore/events{/privacy}","received_events_url":"https://api.github.com/users/bluebore/received_events","type":"User","site_admin":false},"created_at":"2016-11-11T00:23:53Z","updated_at":"2016-11-11T00:23:53Z","body":"第二个需要统一改一下,具体统一到哪个@yvxiang看下"}}
{"actor":{"display_login":"bluebore"}}