Skip to content

Instantly share code, notes, and snippets.

@tak1n
Created February 18, 2015 17:25
Show Gist options
  • Save tak1n/b7756738c33804ccd381 to your computer and use it in GitHub Desktop.
Save tak1n/b7756738c33804ccd381 to your computer and use it in GitHub Desktop.
--------------------
=== Checking for required stuff failed. ===
Makefile wasn't created. Fix the errors above.
"ruby.h"
2:
3: #include <openssl/ssl.h>
/* end */
de/capi/ruby/backward -I/home/benny/rubinius/staging/vm/include/capi -I. -g -O2 -fPIC conftest.c -o conftest.i"
/benny/rubinius/staging/lib -Wl,-R/home/benny/rubinius/staging/lib -lssl -lcrypto "
rn 0;
13: }
/* end */
"clang-3.5 -o conftest -I/home/benny/rubinius/staging/vm/include/capi -I/home/benny/rubinius/staging/vm/include/capi/ruby/backward -I/home/benny/rubinius/staging/vm/include/capi -I. -g -O2 -fPIC conftest.c -L. -L/home/benny/rubinius/staging/lib -Wl,-R/home/benny/rubinius/staging/lib -Wl,--export-dynamic -lrt -lcrypt -ldl -lpthread -lsocket "
conftest.c:5:15: warning: implicit declaration of function 'socket' is invalid in C99 [-Wimplicit-function-declaration]
int t(void) { socket(); return 0; }
^
1 warning generated.
/usr/bin/ld: cannot find -lsocket
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ftest.c:5: undefined reference to `t_open'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment