관리-도구
편집 파일: mkmf.log
have_library: checking for -lsocket... -------------------- no "gcc -o conftest -I/opt/cpanel/ea-ruby27/root/usr/include -I/opt/cpanel/ea-ruby27/root/usr/include/ruby/backward -I/opt/cpanel/ea-ruby27/root/usr/include -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 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC conftest.c -L. -L/opt/cpanel/ea-ruby27/root/usr/lib64 -L. -Wl,-rpath=/opt/cpanel/ea-ruby27/root/usr/lib64 -fstack-protector-strong -rdynamic -Wl,-export-dynamic -m64 -lruby -lm -lc" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: int main(int argc, char **argv) 4: { 5: return !!argv[argc]; 6: } /* end */ "gcc -o conftest -I/opt/cpanel/ea-ruby27/root/usr/include -I/opt/cpanel/ea-ruby27/root/usr/include/ruby/backward -I/opt/cpanel/ea-ruby27/root/usr/include -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 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC conftest.c -L. -L/opt/cpanel/ea-ruby27/root/usr/lib64 -L. -Wl,-rpath=/opt/cpanel/ea-ruby27/root/usr/lib64 -fstack-protector-strong -rdynamic -Wl,-export-dynamic -m64 -lruby -lsocket -lm -lc" /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 main(int argc, char **argv) 6: { 7: if (argc > 1000000) { 8: int (* volatile tp)(void)=(int (*)(void))&t; 9: printf("%d", (*tp)()); 10: } 11: 12: return !!argv[argc]; 13: } 14: 15: int t(void) { ; return 0; } /* end */ --------------------