{"action":"created","issue":{"url":"https://api.github.com/repos/bazelbuild/bazel/issues/507","repository_url":"https://api.github.com/repos/bazelbuild/bazel","labels_url":"https://api.github.com/repos/bazelbuild/bazel/issues/507/labels{/name}","comments_url":"https://api.github.com/repos/bazelbuild/bazel/issues/507/comments","events_url":"https://api.github.com/repos/bazelbuild/bazel/issues/507/events","html_url":"https://github.com/bazelbuild/bazel/issues/507","id":111297812,"number":507,"title":"OS X: Odd loader issues when a shared library depends on a static-only library","user":{"login":"kayasoze","id":1332992,"avatar_url":"https://avatars.githubusercontent.com/u/1332992?v=3","gravatar_id":"","url":"https://api.github.com/users/kayasoze","html_url":"https://github.com/kayasoze","followers_url":"https://api.github.com/users/kayasoze/followers","following_url":"https://api.github.com/users/kayasoze/following{/other_user}","gists_url":"https://api.github.com/users/kayasoze/gists{/gist_id}","starred_url":"https://api.github.com/users/kayasoze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kayasoze/subscriptions","organizations_url":"https://api.github.com/users/kayasoze/orgs","repos_url":"https://api.github.com/users/kayasoze/repos","events_url":"https://api.github.com/users/kayasoze/events{/privacy}","received_events_url":"https://api.github.com/users/kayasoze/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bazelbuild/bazel/labels/category:%20rules%20%3E%20C++","name":"category: rules > C++","color":"d4c5f9"},{"url":"https://api.github.com/repos/bazelbuild/bazel/labels/P3","name":"P3","color":"fbca04"},{"url":"https://api.github.com/repos/bazelbuild/bazel/labels/type:%20bug","name":"type: bug","color":"0052cc"}],"state":"open","locked":false,"assignee":{"login":"ulfjack","id":7355745,"avatar_url":"https://avatars.githubusercontent.com/u/7355745?v=3","gravatar_id":"","url":"https://api.github.com/users/ulfjack","html_url":"https://github.com/ulfjack","followers_url":"https://api.github.com/users/ulfjack/followers","following_url":"https://api.github.com/users/ulfjack/following{/other_user}","gists_url":"https://api.github.com/users/ulfjack/gists{/gist_id}","starred_url":"https://api.github.com/users/ulfjack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ulfjack/subscriptions","organizations_url":"https://api.github.com/users/ulfjack/orgs","repos_url":"https://api.github.com/users/ulfjack/repos","events_url":"https://api.github.com/users/ulfjack/events{/privacy}","received_events_url":"https://api.github.com/users/ulfjack/received_events","type":"User","site_admin":false},"milestone":null,"comments":8,"created_at":"2015-10-14T00:21:00Z","updated_at":"2016-06-15T07:28:35Z","closed_at":null,"body":"I haven't narrowed down a succinct repro. case, but I've observed that in the following scenario, odd linker errors occur:\r\n\r\n```cc_test -> cc_library(foo) (supports both shared and static) -> cc_library(bar) (wraps autoconf built static library)```\r\n\r\nAdding `linkstatic=1` to `foo` fixes all linker issues.  It seems that Bazel doesn't support a shared-library dependency itself depending on a static library.\r\n\r\nNote that in this case, `bar` is static because it is built via a cross-platform genrule, and Bazel can't support a `.so` `out` on Linux and a `.dylib` `out` on OS X; `select()` is prohibted in `outs`.  Thus, it only produces a `.a`\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/bazelbuild/bazel/issues/comments/226109516","html_url":"https://github.com/bazelbuild/bazel/issues/507#issuecomment-226109516","issue_url":"https://api.github.com/repos/bazelbuild/bazel/issues/507","id":226109516,"user":{"login":"ulfjack","id":7355745,"avatar_url":"https://avatars.githubusercontent.com/u/7355745?v=3","gravatar_id":"","url":"https://api.github.com/users/ulfjack","html_url":"https://github.com/ulfjack","followers_url":"https://api.github.com/users/ulfjack/followers","following_url":"https://api.github.com/users/ulfjack/following{/other_user}","gists_url":"https://api.github.com/users/ulfjack/gists{/gist_id}","starred_url":"https://api.github.com/users/ulfjack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ulfjack/subscriptions","organizations_url":"https://api.github.com/users/ulfjack/orgs","repos_url":"https://api.github.com/users/ulfjack/repos","events_url":"https://api.github.com/users/ulfjack/events{/privacy}","received_events_url":"https://api.github.com/users/ulfjack/received_events","type":"User","site_admin":false},"created_at":"2016-06-15T07:28:35Z","updated_at":"2016-06-15T07:28:35Z","body":"We'll need help from someone who better understands C++ linking on OSX to fix this. I'm out of my depth here."}}
{"actor":{"display_login":"ulfjack"}}