AlkantarClanX12
Current Path : /opt/alt/ruby20/lib64/ruby/gems/2.0.0/gems/ruby-lsapi-5.6/ext/lsapi/ |
Current File : //opt/alt/ruby20/lib64/ruby/gems/2.0.0/gems/ruby-lsapi-5.6/ext/lsapi/mkmf.log |
have_library: checking for main() in -lsocket... -------------------- no "gcc -o conftest -I/opt/alt/ruby20/include/ruby-2.0.0/x86_64-linux -I/opt/alt/ruby20/include/ruby-2.0.0/ruby/backward -I/opt/alt/ruby20/include/ruby-2.0.0 -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection conftest.c -L. -L/opt/alt/ruby20/lib64 -Wl,-R/opt/alt/ruby20/lib64 -L. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -L/opt/alt/openssl/lib64 -L/opt/alt/ruby20/lib64 -Wl,-rpath=/opt/alt/openssl/lib64,-rpath=/opt/alt/ruby20/lib64 -fstack-protector -rdynamic -Wl,-export-dynamic -m64 -Wl,-R -Wl,/opt/alt/ruby20/lib64 -L/opt/alt/ruby20/lib64 -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/opt/alt/ruby20/include/ruby-2.0.0/x86_64-linux -I/opt/alt/ruby20/include/ruby-2.0.0/ruby/backward -I/opt/alt/ruby20/include/ruby-2.0.0 -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection conftest.c -L. -L/opt/alt/ruby20/lib64 -Wl,-R/opt/alt/ruby20/lib64 -L. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -L/opt/alt/openssl/lib64 -L/opt/alt/ruby20/lib64 -Wl,-rpath=/opt/alt/openssl/lib64,-rpath=/opt/alt/ruby20/lib64 -fstack-protector -rdynamic -Wl,-export-dynamic -m64 -Wl,-R -Wl,/opt/alt/ruby20/lib64 -L/opt/alt/ruby20/lib64 -lruby -lsocket -lpthread -lrt -ldl -lcrypt -lm -lc" conftest.c: In function 't': conftest.c:5:57: error: 'main' undeclared (first use in this function); did you mean 'fmin'? int t(void) { void ((*volatile p)()); p = (void ((*)()))main; return 0; } ^~~~ fmin 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/opt/alt/ruby20/include/ruby-2.0.0/x86_64-linux -I/opt/alt/ruby20/include/ruby-2.0.0/ruby/backward -I/opt/alt/ruby20/include/ruby-2.0.0 -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection conftest.c -L. -L/opt/alt/ruby20/lib64 -Wl,-R/opt/alt/ruby20/lib64 -L. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -L/opt/alt/openssl/lib64 -L/opt/alt/ruby20/lib64 -Wl,-rpath=/opt/alt/openssl/lib64,-rpath=/opt/alt/ruby20/lib64 -fstack-protector -rdynamic -Wl,-export-dynamic -m64 -Wl,-R -Wl,/opt/alt/ruby20/lib64 -L/opt/alt/ruby20/lib64 -lruby -lsocket -lpthread -lrt -ldl -lcrypt -lm -lc" conftest.c: In function 't': conftest.c:5:15: warning: implicit declaration of function 'main'; did you mean 'fmin'? [-Wimplicit-function-declaration] int t(void) { main(); return 0; } ^~~~ fmin /usr/bin/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 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 */ --------------------