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.2.10/ext/pty/mkmf.log
have_header: checking for sys/stropts.h... -------------------- no

"gcc -E -I../../.ext/include/x86_64-linux -I../.././include -I../.././ext/pty -I../.. -I../../.     -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 -o conftest.i"
conftest.c:3:10: fatal error: sys/stropts.h: No such file or directory
 #include <sys/stropts.h>
          ^~~~~~~~~~~~~~~
compilation terminated.
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: #include <sys/stropts.h>
/* end */

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

have_func: checking for setresuid()... -------------------- yes

"gcc -o conftest -I../../.ext/include/x86_64-linux -I../.././include -I../.././ext/pty -I../.. -I../../.     -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,-R/usr/local/rvm/rubies/ruby-2.2.10/lib -L/usr/local/rvm/rubies/ruby-2.2.10/lib -lruby-static  -lpthread -ldl -lcrypt -lm   -lc"
conftest.c: In function ‘t’:
conftest.c:13:43: warning: cast between incompatible function types from ‘int (*)(__uid_t,  __uid_t,  __uid_t)’ {aka ‘int (*)(unsigned int,  unsigned int,  unsigned int)’} to ‘void (*)()’ [-Wcast-function-type]
 int t(void) { void ((*volatile p)()); p = (void ((*)()))setresuid; return 0; }
                                           ^
conftest.c:13:32: warning: variable ‘p’ set but not used [-Wunused-but-set-variable]
 int t(void) { void ((*volatile p)()); p = (void ((*)()))setresuid; return 0; }
                                ^
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 ((*)()))setresuid; return 0; }
/* end */

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

have_header: checking for libutil.h... -------------------- no

"gcc -E -I../../.ext/include/x86_64-linux -I../.././include -I../.././ext/pty -I../.. -I../../.     -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 -o conftest.i"
conftest.c:3:10: fatal error: libutil.h: No such file or directory
 #include <libutil.h>
          ^~~~~~~~~~~
compilation terminated.
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: #include <libutil.h>
/* end */

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

have_header: checking for util.h... -------------------- no

"gcc -E -I../../.ext/include/x86_64-linux -I../.././include -I../.././ext/pty -I../.. -I../../.     -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 -o conftest.i"
conftest.c:3:10: fatal error: util.h: No such file or directory
 #include <util.h>
          ^~~~~~~~
compilation terminated.
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: #include <util.h>
/* end */

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

have_header: checking for pty.h... -------------------- yes

"gcc -E -I../../.ext/include/x86_64-linux -I../.././include -I../.././ext/pty -I../.. -I../../.     -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 -o conftest.i"
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: #include <pty.h>
/* end */

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

have_library: checking for openpty() in -lutil... -------------------- yes

"gcc -o conftest -I../../.ext/include/x86_64-linux -I../.././include -I../.././ext/pty -I../.. -I../../.     -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,-R/usr/local/rvm/rubies/ruby-2.2.10/lib -L/usr/local/rvm/rubies/ruby-2.2.10/lib -lruby-static -lutil  -lpthread -ldl -lcrypt -lm   -lc"
conftest.c: In function ‘t’:
conftest.c:13:57: error: ‘openpty’ undeclared (first use in this function); did you mean ‘optopt’?
 int t(void) { void ((*volatile p)()); p = (void ((*)()))openpty; return 0; }
                                                         ^~~~~~~
                                                         optopt
conftest.c:13:57: note: each undeclared identifier is reported only once for each function it appears in
conftest.c:13:32: warning: variable ‘p’ set but not used [-Wunused-but-set-variable]
 int t(void) { void ((*volatile p)()); p = (void ((*)()))openpty; return 0; }
                                ^
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 ((*)()))openpty; return 0; }
/* end */

"gcc -o conftest -I../../.ext/include/x86_64-linux -I../.././include -I../.././ext/pty -I../.. -I../../.     -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,-R/usr/local/rvm/rubies/ruby-2.2.10/lib -L/usr/local/rvm/rubies/ruby-2.2.10/lib -lruby-static -lutil  -lpthread -ldl -lcrypt -lm   -lc"
conftest.c: In function ‘t’:
conftest.c:13:15: warning: implicit declaration of function ‘openpty’ [-Wimplicit-function-declaration]
 int t(void) { openpty(); return 0; }
               ^~~~~~~
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) { openpty(); return 0; }
/* end */

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

have_func: checking for posix_openpt()... -------------------- yes

"gcc -o conftest -I../../.ext/include/x86_64-linux -I../.././include -I../.././ext/pty -I../.. -I../../.     -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    -lutil  -Wl,-R/usr/local/rvm/rubies/ruby-2.2.10/lib -L/usr/local/rvm/rubies/ruby-2.2.10/lib -lruby-static -lutil  -lpthread -ldl -lcrypt -lm   -lc"
conftest.c: In function ‘t’:
conftest.c:13:43: warning: cast between incompatible function types from ‘int (*)(int)’ to ‘void (*)()’ [-Wcast-function-type]
 int t(void) { void ((*volatile p)()); p = (void ((*)()))posix_openpt; return 0; }
                                           ^
conftest.c:13:32: warning: variable ‘p’ set but not used [-Wunused-but-set-variable]
 int t(void) { void ((*volatile p)()); p = (void ((*)()))posix_openpt; return 0; }
                                ^
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 ((*)()))posix_openpt; return 0; }
/* end */

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

extconf.h is:
/* begin */
1: #ifndef EXTCONF_H
2: #define EXTCONF_H
3: #define HAVE_SETRESUID 1
4: #define HAVE_PTY_H 1
5: #define HAVE_POSIX_OPENPT 1
6: #endif
/* end */