{"action":"created","issue":{"url":"https://api.github.com/repos/posix4e/elephantpump/issues/10","labels_url":"https://api.github.com/repos/posix4e/elephantpump/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/posix4e/elephantpump/issues/10/comments","events_url":"https://api.github.com/repos/posix4e/elephantpump/issues/10/events","html_url":"https://github.com/posix4e/elephantpump/pull/10","id":122691252,"number":10,"title":"Try to bind just one function","user":{"login":"solidsnack","id":153008,"avatar_url":"https://avatars.githubusercontent.com/u/153008?v=3","gravatar_id":"","url":"https://api.github.com/users/solidsnack","html_url":"https://github.com/solidsnack","followers_url":"https://api.github.com/users/solidsnack/followers","following_url":"https://api.github.com/users/solidsnack/following{/other_user}","gists_url":"https://api.github.com/users/solidsnack/gists{/gist_id}","starred_url":"https://api.github.com/users/solidsnack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/solidsnack/subscriptions","organizations_url":"https://api.github.com/users/solidsnack/orgs","repos_url":"https://api.github.com/users/solidsnack/repos","events_url":"https://api.github.com/users/solidsnack/events{/privacy}","received_events_url":"https://api.github.com/users/solidsnack/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-12-17T09:05:50Z","updated_at":"2016-01-03T22:47:43Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/posix4e/elephantpump/pulls/10","html_url":"https://github.com/posix4e/elephantpump/pull/10","diff_url":"https://github.com/posix4e/elephantpump/pull/10.diff","patch_url":"https://github.com/posix4e/elephantpump/pull/10.patch"},"body":"This one is entertaining. In it, we declare and use a single function from `pgcommon`. Linking with `crate build` fails. However, I take the command it prints out as having failed and add `-l pgcommon` and then `target/debug/elephantpump` works!\r\n\r\n```\r\n\"cc\" \"-m64\" \"-L\" \"/usr/local/Cellar/rust/1.3.0/lib/rustlib/x86_64-apple-darwin/lib\" \"/Users/solidsnack/sandbox/elephantpump/target/debug/elephantpump.0.o\" \"-o\" \"/Users/solidsnack/sandbox/elephantpump/target/debug/elephantpump\" \"-Wl,-force_load,/usr/local/Cellar/rust/1.3.0/lib/rustlib/x86_64-apple-darwin/lib/libmorestack.a\" \"-Wl,-dead_strip\" \"-nodefaultlibs\" \"/Users/solidsnack/sandbox/elephantpump/target/debug/deps/liblibc-540159808ccfa9ab.rlib\" \"/usr/local/Cellar/rust/1.3.0/lib/rustlib/x86_64-apple-darwin/lib/libstd-198068b3.rlib\" \"/usr/local/Cellar/rust/1.3.0/lib/rustlib/x86_64-apple-darwin/lib/libcollections-198068b3.rlib\" \"/usr/local/Cellar/rust/1.3.0/lib/rustlib/x86_64-apple-darwin/lib/librustc_unicode-198068b3.rlib\" \"/usr/local/Cellar/rust/1.3.0/lib/rustlib/x86_64-apple-darwin/lib/librand-198068b3.rlib\" \"/usr/local/Cellar/rust/1.3.0/lib/rustlib/x86_64-apple-darwin/lib/liballoc-198068b3.rlib\" \"/usr/local/Cellar/rust/1.3.0/lib/rustlib/x86_64-apple-darwin/lib/liblibc-198068b3.rlib\" \"/usr/local/Cellar/rust/1.3.0/lib/rustlib/x86_64-apple-darwin/lib/libcore-198068b3.rlib\" \"-L\" \"/Users/solidsnack/sandbox/elephantpump/target/debug\" \"-L\" \"/Users/solidsnack/sandbox/elephantpump/target/debug/deps\" \"-L\" \"/usr/local/lib/\" \"-L\" \"/usr/local/lib/\" \"-L\" \"/usr/local/Cellar/rust/1.3.0/lib/rustlib/x86_64-apple-darwin/lib\" \"-L\" \"/Users/solidsnack/sandbox/elephantpump/.rust/lib/x86_64-apple-darwin\" \"-L\" \"/Users/solidsnack/sandbox/elephantpump/lib/x86_64-apple-darwin\" \"-l\" \"System\" \"-l\" \"pthread\" \"-l\" \"c\" \"-l\" \"m\" \"-l\" \"compiler-rt\" -l pgcommon\r\n```\r\n\r\nThe `build.rs` does not seem to do anything. Behold, the results of `pg_str_endswith()`:\r\n\r\n```\r\n:;  target/debug/elephantpump\r\nA ends with A: 1\r\nA ends with B: 0\r\n```"},"comment":{"url":"https://api.github.com/repos/posix4e/elephantpump/issues/comments/168549209","html_url":"https://github.com/posix4e/elephantpump/pull/10#issuecomment-168549209","issue_url":"https://api.github.com/repos/posix4e/elephantpump/issues/10","id":168549209,"user":{"login":"posix4e","id":806363,"avatar_url":"https://avatars.githubusercontent.com/u/806363?v=3","gravatar_id":"","url":"https://api.github.com/users/posix4e","html_url":"https://github.com/posix4e","followers_url":"https://api.github.com/users/posix4e/followers","following_url":"https://api.github.com/users/posix4e/following{/other_user}","gists_url":"https://api.github.com/users/posix4e/gists{/gist_id}","starred_url":"https://api.github.com/users/posix4e/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/posix4e/subscriptions","organizations_url":"https://api.github.com/users/posix4e/orgs","repos_url":"https://api.github.com/users/posix4e/repos","events_url":"https://api.github.com/users/posix4e/events{/privacy}","received_events_url":"https://api.github.com/users/posix4e/received_events","type":"User","site_admin":false},"created_at":"2016-01-03T22:47:43Z","updated_at":"2016-01-03T22:47:43Z","body":"I'm going to let you pull in the autosys branch"}}