HEX
Server: Apache
System: Linux s198.coreserver.jp 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025 x86_64
User: nagasaki (10062)
PHP: 7.1.33
Disabled: NONE
Upload Files
File: //usr/local/rvm/src/ruby-2.3.8/ext/-test-/symbol/mkmf.log
have_func: checking for rb_pin_dynamic_symbol()... -------------------- no

"gcc -o conftest -I../../../.ext/include/x86_64-linux -I../../.././include -I../../.././ext/-test-/symbol     -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat  -fPIC conftest.c  -L. -L../../.. -L. -fstack-protector -rdynamic -Wl,-export-dynamic     -Wl,-rpath,/usr/local/rvm/rubies/ruby-2.3.8/lib -L/usr/local/rvm/rubies/ruby-2.3.8/lib -lruby-static  -lpthread -ldl -lcrypt -lm   -lc"
conftest.c: In function ‘t’:
conftest.c:13:57: error: ‘rb_pin_dynamic_symbol’ undeclared (first use in this function); did you mean ‘rb_sym_all_symbols’?
 int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_pin_dynamic_symbol; return !p; }
                                                         ^~~~~~~~~~~~~~~~~~~~~
                                                         rb_sym_all_symbols
conftest.c:13:57: note: each undeclared identifier is reported only once for each function it appears in
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 ((*)()))rb_pin_dynamic_symbol; return !p; }
/* end */

"gcc -o conftest -I../../../.ext/include/x86_64-linux -I../../.././include -I../../.././ext/-test-/symbol     -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat  -fPIC conftest.c  -L. -L../../.. -L. -fstack-protector -rdynamic -Wl,-export-dynamic     -Wl,-rpath,/usr/local/rvm/rubies/ruby-2.3.8/lib -L/usr/local/rvm/rubies/ruby-2.3.8/lib -lruby-static  -lpthread -ldl -lcrypt -lm   -lc"
/tmp/cc5CjcUK.o: In function `t':
/usr/local/rvm/src/ruby-2.3.8/ext/-test-/symbol/conftest.c:14: undefined reference to `rb_pin_dynamic_symbol'
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: extern void rb_pin_dynamic_symbol();
14: int t(void) { rb_pin_dynamic_symbol(); return 0; }
/* end */

--------------------

extconf.h is:
/* begin */
1: #ifndef EXTCONF_H
2: #define EXTCONF_H
3: #define TEST_INIT_FUNCS(X) X(type)
4: #endif
/* end */