Skip to content

Instantly share code, notes, and snippets.

@drbrain
Created January 27, 2015 19:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drbrain/7ee7ff73a6f43fcb0ecc to your computer and use it in GitHub Desktop.
Save drbrain/7ee7ff73a6f43fcb0ecc to your computer and use it in GitHub Desktop.
If your nm output looks like this your ruby is OK
$ nm -a `ruby -rsocket -e 'puts $".grep(/socket.bundle/)'` | grep gethostbyname
U _gethostbyname
000000000000e770 t _sock_s_gethostbyname
000000000000e770 - 01 0000 FUN _sock_s_gethostbyname
0000000000010440 - 01 0000 FUN _tcp_s_gethostbyname
0000000000010440 t _tcp_s_gethostbyname
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment