{"action":"opened","issue":{"url":"https://api.github.com/repos/freehaha/go-r3/issues/2","repository_url":"https://api.github.com/repos/freehaha/go-r3","labels_url":"https://api.github.com/repos/freehaha/go-r3/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/freehaha/go-r3/issues/2/comments","events_url":"https://api.github.com/repos/freehaha/go-r3/issues/2/events","html_url":"https://github.com/freehaha/go-r3/issues/2","id":163795979,"number":2,"title":"Can not build go-r3","user":{"login":"gosilent","id":19830249,"avatar_url":"https://avatars.githubusercontent.com/u/19830249?v=3","gravatar_id":"","url":"https://api.github.com/users/gosilent","html_url":"https://github.com/gosilent","followers_url":"https://api.github.com/users/gosilent/followers","following_url":"https://api.github.com/users/gosilent/following{/other_user}","gists_url":"https://api.github.com/users/gosilent/gists{/gist_id}","starred_url":"https://api.github.com/users/gosilent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gosilent/subscriptions","organizations_url":"https://api.github.com/users/gosilent/orgs","repos_url":"https://api.github.com/users/gosilent/repos","events_url":"https://api.github.com/users/gosilent/events{/privacy}","received_events_url":"https://api.github.com/users/gosilent/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-05T08:22:19Z","updated_at":"2016-07-05T08:22:19Z","closed_at":null,"body":"go build and go tool cgo has the same error\r\n\r\n```\r\n # go tool cgo r3.go                                                                                      \r\nIn file included from /usr/local/include/r3/r3.h:17:0,\r\n                 from /root/go/src/github.com/freehaha/go-r3/r3.go:7:\r\n/usr/local/include/r3/r3_str.h:52:7: error: conflicting types for 'strndup'\r\n char *strndup(const char *s, int n);\r\n       ^\r\nIn file included from /usr/local/include/r3/r3.h:12:0,\r\n                 from /root/go/src/github.com/freehaha/go-r3/r3.go:7:\r\n/usr/include/string.h:183:14: note: previous declaration of 'strndup' was here\r\n extern char *strndup (__const char *__string, size_t __n)\r\n              ^\r\n```\r\n\r\nI guess it seems to cgo problem."}}
{"actor":{"display_login":"gosilent"}}