Sindbad~EG File Manager
have_library: checking for main() in -lsocket... -------------------- no
"gcc -o conftest -I/opt/alt/ruby21/include/ruby-2.1.0/x86_64-linux -I/opt/alt/ruby21/include/ruby-2.1.0/ruby/backward -I/opt/alt/ruby21/include/ruby-2.1.0 -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/opt/alt/ruby21/lib64 -Wl,-R/opt/alt/ruby21/lib64 -L. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -mtune=generic -L/opt/alt/ruby21/lib64 -Wl,-rpath=/opt/alt/ruby21/lib64 -fstack-protector -rdynamic -Wl,-export-dynamic -m64 -Wl,-R -Wl,/opt/alt/ruby21/lib64 -L/opt/alt/ruby21/lib64 -lruby -lpthread -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/opt/alt/ruby21/include/ruby-2.1.0/x86_64-linux -I/opt/alt/ruby21/include/ruby-2.1.0/ruby/backward -I/opt/alt/ruby21/include/ruby-2.1.0 -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/opt/alt/ruby21/lib64 -Wl,-R/opt/alt/ruby21/lib64 -L. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -mtune=generic -L/opt/alt/ruby21/lib64 -Wl,-rpath=/opt/alt/ruby21/lib64 -fstack-protector -rdynamic -Wl,-export-dynamic -m64 -Wl,-R -Wl,/opt/alt/ruby21/lib64 -L/opt/alt/ruby21/lib64 -lruby -lsocket -lpthread -ldl -lcrypt -lm -lc"
conftest.c: In function 't':
conftest.c:13:32: warning: variable 'p' set but not used [-Wunused-but-set-variable]
int t(void) { void ((*volatile p)()); p = (void ((*)()))main; return 0; }
^
/opt/rh/devtoolset-6/root/usr/libexec/gcc/x86_64-redhat-linux/6.3.1/ld: cannot find -lsocket
collect2: error: ld returned 1 exit status
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: extern int t(void);
5: int main(int argc, char **argv)
6: {
7: if (argc > 1000000) {
8: printf("%p", &t);
9: }
10:
11: return 0;
12: }
13: int t(void) { void ((*volatile p)()); p = (void ((*)()))main; return 0; }
/* end */
"gcc -o conftest -I/opt/alt/ruby21/include/ruby-2.1.0/x86_64-linux -I/opt/alt/ruby21/include/ruby-2.1.0/ruby/backward -I/opt/alt/ruby21/include/ruby-2.1.0 -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/opt/alt/ruby21/lib64 -Wl,-R/opt/alt/ruby21/lib64 -L. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -mtune=generic -L/opt/alt/ruby21/lib64 -Wl,-rpath=/opt/alt/ruby21/lib64 -fstack-protector -rdynamic -Wl,-export-dynamic -m64 -Wl,-R -Wl,/opt/alt/ruby21/lib64 -L/opt/alt/ruby21/lib64 -lruby -lsocket -lpthread -ldl -lcrypt -lm -lc"
conftest.c: In function 't':
conftest.c:13:15: error: too few arguments to function 'main'
int t(void) { main(); return 0; }
^~~~
conftest.c:5:5: note: declared here
int main(int argc, char **argv)
^~~~
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: extern int t(void);
5: int main(int argc, char **argv)
6: {
7: if (argc > 1000000) {
8: printf("%p", &t);
9: }
10:
11: return 0;
12: }
13: int t(void) { main(); return 0; }
/* end */
--------------------
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists