have_library: checking for main() in -lc… ——————– yes
“gcc -o conftest -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong –param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard conftest.c -L. -L/usr/lib -L. -Wl,-z,relro -fstack-protector -rdynamic -Wl,-export-dynamic -lruby -lpthread -lrt -ldl -lcrypt -lm -lc” checked program was:
begin
1: include “ruby.h” 2: 3: int main(int argc, char **argv) 4: { 5: return 0; 6: }
end
“gcc -o conftest -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong –param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard conftest.c -L. -L/usr/lib -L. -Wl,-z,relro -fstack-protector -rdynamic -Wl,-export-dynamic -lruby -lc -lpthread -lrt -ldl -lcrypt -lm -lc” conftest.c: In function 't': conftest.c:5:57: error: 'main' undeclared (first use in this function)
int t(void) { void ((*volatile p)()); p = (void ((*)()))main; return 0; } ^
conftest.c:5:57: note: each undeclared identifier is reported only once for each function it appears in conftest.c:5:32: warning: variable 'p' set but not used [-Wunused-but-set-variable]
int t(void) { void ((*volatile p)()); p = (void ((*)()))main; return 0; } ^
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 */
“gcc -o conftest -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong –param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard conftest.c -L. -L/usr/lib -L. -Wl,-z,relro -fstack-protector -rdynamic -Wl,-export-dynamic -lruby -lc -lpthread -lrt -ldl -lcrypt -lm -lc” conftest.c: In function 't': conftest.c:5:1: warning: implicit declaration of function 'main' [-Wimplicit-function-declaration]
int t(void) { main(); return 0; } ^
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 */
have_library: checking for krb5_init_context() in -lkrb5… ——————– yes
“gcc -o conftest -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong –param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard conftest.c -L. -L/usr/lib -L. -Wl,-z,relro -fstack-protector -rdynamic -Wl,-export-dynamic -lc -lruby -lkrb5 -lc -lpthread -lrt -ldl -lcrypt -lm -lc” conftest.c: In function 't': conftest.c:5:57: error: 'krb5_init_context' undeclared (first use in this function)
int t(void) { void ((*volatile p)()); p = (void ((*)()))krb5_init_context; return 0; } ^
conftest.c:5:57: note: each undeclared identifier is reported only once for each function it appears in conftest.c:5:32: warning: variable 'p' set but not used [-Wunused-but-set-variable]
int t(void) { void ((*volatile p)()); p = (void ((*)()))krb5_init_context; return 0; } ^
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 ((*)()))krb5_init_context; 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 */
“gcc -o conftest -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong –param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard conftest.c -L. -L/usr/lib -L. -Wl,-z,relro -fstack-protector -rdynamic -Wl,-export-dynamic -lc -lruby -lkrb5 -lc -lpthread -lrt -ldl -lcrypt -lm -lc” conftest.c: In function 't': conftest.c:5:1: warning: implicit declaration of function 'krb5_init_context' [-Wimplicit-function-declaration]
int t(void) { krb5_init_context(); return 0; } ^
checked program was: /* begin */
1: #include "ruby.h" 2: 3: /*top*/ 4: extern int t(void); 5: int t(void) { krb5_init_context(); 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 */