Skip to content

Instantly share code, notes, and snippets.

@pferrel
Created August 20, 2013 00:57
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 pferrel/6275956 to your computer and use it in GitHub Desktop.
Save pferrel/6275956 to your computer and use it in GitHub Desktop.
cat /Users/pat/.rvm/src/ruby-1.9.3-p448/ext/{*yaml,psych}/*.log
cat: /Users/pat/.rvm/src/ruby-1.9.3-p448/ext/*yaml/*.log: No such file or directory
find_header: checking for yaml.h... -------------------- yes
"/usr/local/bin/gcc-4.2 -E -I../../.ext/include/x86_64-darwin12.4.0 -I../.././include -I../.././ext/psych -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -I/usr/local/opt/libyaml/include -I/usr/local/opt/readline/include -I/usr/local/opt/libksba/include -I/usr/local/opt/openssl/include -O3 -ggdb -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration -fno-common -pipe conftest.c -o conftest.i"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <yaml.h>
/* end */
--------------------
find_library: checking for yaml_get_version() in -lyaml... -------------------- yes
"/usr/local/bin/gcc-4.2 -o conftest -I../../.ext/include/x86_64-darwin12.4.0 -I../.././include -I../.././ext/psych -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -I/usr/local/opt/libyaml/include -I/usr/local/opt/readline/include -I/usr/local/opt/libksba/include -I/usr/local/opt/openssl/include -O3 -ggdb -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration -fno-common -pipe conftest.c -L. -L../.. -L/usr/local/opt/libyaml/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/openssl/lib -L. -L/usr/local/lib -L/usr/local/opt/libyaml/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/openssl/lib -lruby.1.9.1-static -lyaml -lpthread -ldl -lobjc "
conftest.c: In function ‘t’:
conftest.c:9: error: ‘yaml_get_version’ undeclared (first use in this function)
conftest.c:9: error: (Each undeclared identifier is reported only once
conftest.c:9: error: for each function it appears in.)
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: int main(int argc, char **argv)
5: {
6: return 0;
7: }
8: extern int t(void);
9: int t(void) { void ((*volatile p)()); p = (void ((*)()))yaml_get_version; return 0; }
/* end */
"/usr/local/bin/gcc-4.2 -o conftest -I../../.ext/include/x86_64-darwin12.4.0 -I../.././include -I../.././ext/psych -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -I/usr/local/opt/libyaml/include -I/usr/local/opt/readline/include -I/usr/local/opt/libksba/include -I/usr/local/opt/openssl/include -O3 -ggdb -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration -fno-common -pipe conftest.c -L. -L../.. -L/usr/local/opt/libyaml/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/openssl/lib -L. -L/usr/local/lib -L/usr/local/opt/libyaml/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/openssl/lib -lruby.1.9.1-static -lyaml -lpthread -ldl -lobjc "
conftest.c: In function ‘t’:
conftest.c:9: warning: implicit declaration of function ‘yaml_get_version’
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: int main(int argc, char **argv)
5: {
6: return 0;
7: }
8: extern int t(void);
9: int t(void) { yaml_get_version(); return 0; }
/* end */
--------------------
extconf.h is:
/* begin */
1: #ifndef EXTCONF_H
2: #define EXTCONF_H
3: #endif
/* end */
Maclaurin:guide pat$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment