have_library: checking for main() in -lc… ——————– yes
“gcc -o conftest -I/usr/include/s390-linux -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 –param=ssp-buffer-size=4 -m31 -march=z9-109 -mtune=z10 -O0 -Wall -fsigned-char conftest.c -L. -L/usr/lib -L. -Wl,-z,relro -fstack-protector -rdynamic -Wl,-export-dynamic -m31 -lruby -lpthread -lrt -ldl -lcrypt -lm -lc” In file included from /usr/include/string.h:25:0,
from /usr/include/ruby/ruby.h:51, from /usr/include/ruby.h:33, from conftest.c:1:
/usr/include/features.h:330:4: warning: warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
# warning _FORTIFY_SOURCE requires compiling with optimization (-O) ^
checked program was:
begin
1: include “ruby.h” 2: 3: int main(void) {return 0;}
end
“gcc -o conftest -I/usr/include/s390-linux -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 –param=ssp-buffer-size=4 -m31 -march=z9-109 -mtune=z10 -O0 -Wall -fsigned-char conftest.c -L. -L/usr/lib -L. -Wl,-z,relro -fstack-protector -rdynamic -Wl,-export-dynamic -m31 -lruby -lc -lpthread -lrt -ldl -lcrypt -lm -lc” In file included from /usr/include/string.h:25:0,
from /usr/include/ruby/ruby.h:51, from /usr/include/ruby.h:33, from conftest.c:1:
/usr/include/features.h:330:4: warning: warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
# warning _FORTIFY_SOURCE requires compiling with optimization (-O) ^
conftest.c: In function 't': conftest.c:6: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: int main(void) {return 0;} 5: extern int t(void); 6: int t(void) { void ((*volatile p)()); p = (void ((*)()))main; return 0; } /* end */