Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

cat mkmf.log

View mkmf.log
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
have_header: checking for mpg123.h... -------------------- yes
 
"/usr/bin/cc -o conftest -I/opt/boxen/rbenv/versions/2.0.0-p247/include/ruby-2.0.0/x86_64-darwin12.4.0 -I/opt/boxen/rbenv/versions/2.0.0-p247/include/ruby-2.0.0/ruby/backward -I/opt/boxen/rbenv/versions/2.0.0-p247/include/ruby-2.0.0 -I. -I'/opt/boxen/rbenv/versions/2.0.0-p247/include' -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -I/opt/X11/include -O3 -Wno-error=shorten-64-to-32 -pipe conftest.c -L. -L/opt/boxen/rbenv/versions/2.0.0-p247/lib -L. -L'/opt/boxen/rbenv/versions/2.0.0-p247/lib' -L/usr/local/lib -lruby-static -lpthread -ldl -lobjc "
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main(int argc, char **argv)
4: {
5: return 0;
6: }
/* end */
 
"/usr/bin/cc -E -I/opt/boxen/rbenv/versions/2.0.0-p247/include/ruby-2.0.0/x86_64-darwin12.4.0 -I/opt/boxen/rbenv/versions/2.0.0-p247/include/ruby-2.0.0/ruby/backward -I/opt/boxen/rbenv/versions/2.0.0-p247/include/ruby-2.0.0 -I. -I'/opt/boxen/rbenv/versions/2.0.0-p247/include' -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -I/opt/X11/include -O3 -Wno-error=shorten-64-to-32 -pipe conftest.c -o conftest.i"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <mpg123.h>
/* end */
 
--------------------
 
have_library: checking for main() in -lmpg123... -------------------- no
 
"/usr/bin/cc -o conftest -I/opt/boxen/rbenv/versions/2.0.0-p247/include/ruby-2.0.0/x86_64-darwin12.4.0 -I/opt/boxen/rbenv/versions/2.0.0-p247/include/ruby-2.0.0/ruby/backward -I/opt/boxen/rbenv/versions/2.0.0-p247/include/ruby-2.0.0 -I. -I'/opt/boxen/rbenv/versions/2.0.0-p247/include' -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -I/opt/X11/include -O3 -Wno-error=shorten-64-to-32 -pipe conftest.c -L. -L/opt/boxen/rbenv/versions/2.0.0-p247/lib -L. -L'/opt/boxen/rbenv/versions/2.0.0-p247/lib' -L/usr/local/lib -lruby-static -lmpg123 -lpthread -ldl -lobjc "
conftest.c:5:57: error: use of undeclared identifier 'main'
int t(void) { void ((*volatile p)()); p = (void ((*)()))main; return 0; }
^
1 error generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: extern int t(void);
5: int t(void) { void ((*volatile p)()); p = (void ((*)()))main; return 0; }
6: int main(int argc, char **argv)
7: {
8: if (argc > 1000000) {
9: printf("%p", &t);
10: }
11:
12: return 0;
13: }
/* end */
 
"/usr/bin/cc -o conftest -I/opt/boxen/rbenv/versions/2.0.0-p247/include/ruby-2.0.0/x86_64-darwin12.4.0 -I/opt/boxen/rbenv/versions/2.0.0-p247/include/ruby-2.0.0/ruby/backward -I/opt/boxen/rbenv/versions/2.0.0-p247/include/ruby-2.0.0 -I. -I'/opt/boxen/rbenv/versions/2.0.0-p247/include' -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -I/opt/X11/include -O3 -Wno-error=shorten-64-to-32 -pipe conftest.c -L. -L/opt/boxen/rbenv/versions/2.0.0-p247/lib -L. -L'/opt/boxen/rbenv/versions/2.0.0-p247/lib' -L/usr/local/lib -lruby-static -lmpg123 -lpthread -ldl -lobjc "
conftest.c:5:15: warning: implicit declaration of function 'main' is invalid in C99 [-Wimplicit-function-declaration]
int t(void) { main(); return 0; }
^
1 warning generated.
ld: library not found for -lmpg123
clang: error: linker command failed with exit code 1 (use -v to see invocation)
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: extern int t(void);
5: int t(void) { main(); return 0; }
6: int main(int argc, char **argv)
7: {
8: if (argc > 1000000) {
9: printf("%p", &t);
10: }
11:
12: return 0;
13: }
/* end */
 
--------------------

I'm having a similar issue as this. Were you able to resolve it?

Owner
petems commented

I ended up formatting my machine a year later and it suddently worked, sorry!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.