Skip to content

Instantly share code, notes, and snippets.

@Ch00k
Created August 13, 2013 11:11
Show Gist options
  • Save Ch00k/6220135 to your computer and use it in GitHub Desktop.
Save Ch00k/6220135 to your computer and use it in GitHub Desktop.
find_header: checking for yaml.h... -------------------- yes
"gcc -E -I../../.ext/include/i386-solaris2.11 -I../.././include -I../.././ext/psych -D_FILE_OFFSET_BITS=64 -I/opt/csw/include -O3 -ggdb -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -fPIC 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
"gcc -o conftest -I../../.ext/include/i386-solaris2.11 -I../.././include -I../.././ext/psych -D_FILE_OFFSET_BITS=64 -I/opt/csw/include -O3 -ggdb -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -fPIC conftest.c -L. -L../.. -L/opt/csw/lib -L. -lruby-static -lyaml -lpthread -lrt -lsocket -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:9:57: error: ‘yaml_get_version’ undeclared (first use in this function)
conftest.c:9:57: note: each undeclared identifier is reported only once 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 */
"gcc -o conftest -I../../.ext/include/i386-solaris2.11 -I../.././include -I../.././ext/psych -D_FILE_OFFSET_BITS=64 -I/opt/csw/include -O3 -ggdb -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -fPIC conftest.c -L. -L../.. -L/opt/csw/lib -L. -lruby-static -lyaml -lpthread -lrt -lsocket -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:9:1: 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 */
oms@solaris:~/.rvm/src/ruby-1.9.3-p448/ext/psych$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment