have_library: checking for SLsmg_refresh() in -lslang… ——————– yes

“gcc -o conftest -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong –param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic conftest.c -L. -L/usr/lib64 -L. -Wl,-z,relro -fstack-protector -rdynamic -Wl,-export-dynamic -m64 -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. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong –param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic conftest.c -L. -L/usr/lib64 -L. -Wl,-z,relro -fstack-protector -rdynamic -Wl,-export-dynamic -m64 -lruby -lslang -lpthread -lrt -ldl -lcrypt -lm -lc” conftest.c: In function 't': conftest.c:5:57: error: 'SLsmg_refresh' undeclared (first use in this function)

int t(void) { void ((*volatile p)()); p = (void ((*)()))SLsmg_refresh; 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 ((*)()))SLsmg_refresh; 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 ((*)()))SLsmg_refresh; 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. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong –param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic conftest.c -L. -L/usr/lib64 -L. -Wl,-z,relro -fstack-protector -rdynamic -Wl,-export-dynamic -m64 -lruby -lslang -lpthread -lrt -ldl -lcrypt -lm -lc” conftest.c: In function 't': conftest.c:5:1: warning: implicit declaration of function 'SLsmg_refresh' [-Wimplicit-function-declaration]

int t(void) { SLsmg_refresh(); return 0; }
^

checked program was: /* begin */

1: #include "ruby.h"
2: 
3: /*top*/
4: extern int t(void);
5: int t(void) { SLsmg_refresh(); 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 newtInit() in -lnewt… ——————– yes

“gcc -o conftest -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong –param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic conftest.c -L. -L/usr/lib64 -L. -Wl,-z,relro -fstack-protector -rdynamic -Wl,-export-dynamic -m64 -lslang -lruby -lnewt -lslang -lpthread -lrt -ldl -lcrypt -lm -lc” conftest.c: In function 't': conftest.c:5:57: error: 'newtInit' undeclared (first use in this function)

int t(void) { void ((*volatile p)()); p = (void ((*)()))newtInit; 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 ((*)()))newtInit; 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 ((*)()))newtInit; 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. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong –param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic conftest.c -L. -L/usr/lib64 -L. -Wl,-z,relro -fstack-protector -rdynamic -Wl,-export-dynamic -m64 -lslang -lruby -lnewt -lslang -lpthread -lrt -ldl -lcrypt -lm -lc” conftest.c: In function 't': conftest.c:5:1: warning: implicit declaration of function 'newtInit' [-Wimplicit-function-declaration]

int t(void) { newtInit(); return 0; }
^

checked program was: /* begin */

1: #include "ruby.h"
2: 
3: /*top*/
4: extern int t(void);
5: int t(void) { newtInit(); 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 */