{"action":"created","issue":{"url":"https://api.github.com/repos/nanomsg/nanomsg/issues/561","labels_url":"https://api.github.com/repos/nanomsg/nanomsg/issues/561/labels{/name}","comments_url":"https://api.github.com/repos/nanomsg/nanomsg/issues/561/comments","events_url":"https://api.github.com/repos/nanomsg/nanomsg/issues/561/events","html_url":"https://github.com/nanomsg/nanomsg/issues/561","id":119318039,"number":561,"title":"includedir goes too deep","user":{"login":"donpdonp","id":13176,"avatar_url":"https://avatars.githubusercontent.com/u/13176?v=3","gravatar_id":"","url":"https://api.github.com/users/donpdonp","html_url":"https://github.com/donpdonp","followers_url":"https://api.github.com/users/donpdonp/followers","following_url":"https://api.github.com/users/donpdonp/following{/other_user}","gists_url":"https://api.github.com/users/donpdonp/gists{/gist_id}","starred_url":"https://api.github.com/users/donpdonp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donpdonp/subscriptions","organizations_url":"https://api.github.com/users/donpdonp/orgs","repos_url":"https://api.github.com/users/donpdonp/repos","events_url":"https://api.github.com/users/donpdonp/events{/privacy}","received_events_url":"https://api.github.com/users/donpdonp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-28T21:10:53Z","updated_at":"2015-12-09T20:58:10Z","closed_at":null,"body":"the includedir pkgconfig has /nanomsg in the path so #include <nanomsg/bus.h> is not found in include/nanomsg/nanomsg/bus.h\r\n\r\n```\r\npkg-config --cflags libnanomsg\r\n-I/opt/nanomsg/0.8-beta/include/nanomsg \r\n```\r\n\r\n```\r\n go get github.com/op/go-nanomsg\r\n# github.com/op/go-nanomsg\r\nsrc/github.com/op/go-nanomsg/bus.go:5:26: fatal error: nanomsg/bus.h: No such file or directory\r\n // #include <nanomsg/bus.h>\r\n                          ^\r\n```\r\n\r\nediting libnanomsg.pc.in to be\r\n```\r\nincludedir=@includedir@\r\n```\r\nfixes the problem.\r\n"},"comment":{"url":"https://api.github.com/repos/nanomsg/nanomsg/issues/comments/163389808","html_url":"https://github.com/nanomsg/nanomsg/issues/561#issuecomment-163389808","issue_url":"https://api.github.com/repos/nanomsg/nanomsg/issues/561","id":163389808,"user":{"login":"gdamore","id":1295229,"avatar_url":"https://avatars.githubusercontent.com/u/1295229?v=3","gravatar_id":"","url":"https://api.github.com/users/gdamore","html_url":"https://github.com/gdamore","followers_url":"https://api.github.com/users/gdamore/followers","following_url":"https://api.github.com/users/gdamore/following{/other_user}","gists_url":"https://api.github.com/users/gdamore/gists{/gist_id}","starred_url":"https://api.github.com/users/gdamore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gdamore/subscriptions","organizations_url":"https://api.github.com/users/gdamore/orgs","repos_url":"https://api.github.com/users/gdamore/repos","events_url":"https://api.github.com/users/gdamore/events{/privacy}","received_events_url":"https://api.github.com/users/gdamore/received_events","type":"User","site_admin":false},"created_at":"2015-12-09T20:58:10Z","updated_at":"2015-12-09T20:58:10Z","body":"So it looks like your pkg-config flags for -I are wrong.  Don't say \"include/nanomsg\", but just \"include\".  Did you supply the -I option to pkg-config by hand?"}}