{"action":"created","issue":{"url":"https://api.github.com/repos/taviso/ctypes.sh/issues/6","labels_url":"https://api.github.com/repos/taviso/ctypes.sh/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/taviso/ctypes.sh/issues/6/comments","events_url":"https://api.github.com/repos/taviso/ctypes.sh/issues/6/events","html_url":"https://github.com/taviso/ctypes.sh/pull/6","id":97838556,"number":6,"title":"Port ctypes.sh to FreeBSD","user":{"login":"cemeyer","id":124738,"avatar_url":"https://avatars.githubusercontent.com/u/124738?v=3","gravatar_id":"","url":"https://api.github.com/users/cemeyer","html_url":"https://github.com/cemeyer","followers_url":"https://api.github.com/users/cemeyer/followers","following_url":"https://api.github.com/users/cemeyer/following{/other_user}","gists_url":"https://api.github.com/users/cemeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/cemeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cemeyer/subscriptions","organizations_url":"https://api.github.com/users/cemeyer/orgs","repos_url":"https://api.github.com/users/cemeyer/repos","events_url":"https://api.github.com/users/cemeyer/events{/privacy}","received_events_url":"https://api.github.com/users/cemeyer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-29T01:51:39Z","updated_at":"2015-07-29T02:36:40Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/taviso/ctypes.sh/pulls/6","html_url":"https://github.com/taviso/ctypes.sh/pull/6","diff_url":"https://github.com/taviso/ctypes.sh/pull/6.diff","patch_url":"https://github.com/taviso/ctypes.sh/pull/6.patch"},"body":"Fix a number of platform agnostic Clang warnings:\r\n\r\n- ffi_prep_closure_loc()'s callback returns void; fix\r\n  execute_bash_trampoline to match\r\n- Fix a few instances of the wrong pointer type being passed to\r\n  check_parse_ulong()\r\n- Pull decode_element closures (GCC extension) out of\r\n  pack_prefixed_array(), unpack_prefixed_array()\r\n\r\nFix a number of Glibcisms and Linuxisms:\r\n\r\n- FreeBSD doesn't need -ldl\r\n- RTLD_DEEPBIND is a Linuxism\r\n- Implement vaguely portable strndupa() and mempcpy"},"comment":{"url":"https://api.github.com/repos/taviso/ctypes.sh/issues/comments/125814770","html_url":"https://github.com/taviso/ctypes.sh/pull/6#issuecomment-125814770","issue_url":"https://api.github.com/repos/taviso/ctypes.sh/issues/6","id":125814770,"user":{"login":"cemeyer","id":124738,"avatar_url":"https://avatars.githubusercontent.com/u/124738?v=3","gravatar_id":"","url":"https://api.github.com/users/cemeyer","html_url":"https://github.com/cemeyer","followers_url":"https://api.github.com/users/cemeyer/followers","following_url":"https://api.github.com/users/cemeyer/following{/other_user}","gists_url":"https://api.github.com/users/cemeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/cemeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cemeyer/subscriptions","organizations_url":"https://api.github.com/users/cemeyer/orgs","repos_url":"https://api.github.com/users/cemeyer/repos","events_url":"https://api.github.com/users/cemeyer/events{/privacy}","received_events_url":"https://api.github.com/users/cemeyer/received_events","type":"User","site_admin":false},"created_at":"2015-07-29T02:36:40Z","updated_at":"2015-07-29T02:36:40Z","body":"There is still some trouble loading the library; in particular I see: `bash: enable: cannot open shared object /usr/local/lib/ctypes.so: /usr/local/lib/ctypes.so: Undefined symbol \"list_optarg\"`.\r\n\r\nBash is installed stripped by default (ports or pkg). I rebuilt the port unstripped, but still have trouble loading the .so (same error). I know that linking from libraries to binaries can be handled ok by FreeBSD RTLD, so I expect the error lies in `enable`. Still digging into it."}}