Project

General

Profile

Bug #12071 » fiddle.mkmf.log

Panyamin (Benjamin Gueroult), 02/15/2016 09:15 PM

 
package configuration for libffi is not found
have_header: checking for ffi.h... -------------------- yes

"gcc -E -I../../.ext/include/x86_64-cygwin -I../.././include -I../.././ext/fiddle -I/home/USER/.rbenv/versions/2.3.0/include -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 conftest.c -o conftest.i"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <ffi.h>
/* end */

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

have_library: checking for main() in -lffi... -------------------- yes

"gcc -o conftest.exe -I../../.ext/include/x86_64-cygwin -I../.././include -I../.././ext/fiddle -I/home/USER/.rbenv/versions/2.3.0/include -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 conftest.c -L. -L../.. -L. -L/home/USER/.rbenv/versions/2.3.0/lib -fstack-protector -lruby230-static -lffi -lpthread -ldl "
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 !p; }
/* end */

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

have_header: checking for sys/mman.h... -------------------- yes

"gcc -E -I../../.ext/include/x86_64-cygwin -I../.././include -I../.././ext/fiddle -I/home/USER/.rbenv/versions/2.3.0/include -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 conftest.c -o conftest.i"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/mman.h>
/* end */

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

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

"gcc -E -I../../.ext/include/x86_64-cygwin -I../.././include -I../.././ext/fiddle -I/home/USER/.rbenv/versions/2.3.0/include -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 conftest.c -o conftest.i"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <dlfcn.h>
/* end */

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

have_library: checking for main() in -ldl... -------------------- yes

"gcc -o conftest.exe -I../../.ext/include/x86_64-cygwin -I../.././include -I../.././ext/fiddle -I/home/USER/.rbenv/versions/2.3.0/include -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 conftest.c -L. -L../.. -L. -L/home/USER/.rbenv/versions/2.3.0/lib -fstack-protector -lffi -lruby230-static -ldl -lffi -lpthread -ldl "
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 !p; }
/* end */

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

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

"gcc -o conftest.exe -I../../.ext/include/x86_64-cygwin -I../.././include -I../.././ext/fiddle -I/home/USER/.rbenv/versions/2.3.0/include -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 conftest.c -L. -L../.. -L. -L/home/USER/.rbenv/versions/2.3.0/lib -fstack-protector -ldl -lffi -lruby230-static -ldl -lffi -lpthread -ldl "
conftest.c: In function ‘t’:
conftest.c:13:57: erreur: ‘dlopen’ undeclared (first use in this function)
int t(void) { void ((*volatile p)()); p = (void ((*)()))dlopen; return !p; }
^
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 ((*)()))dlopen; return !p; }
/* end */

"gcc -o conftest.exe -I../../.ext/include/x86_64-cygwin -I../.././include -I../.././ext/fiddle -I/home/USER/.rbenv/versions/2.3.0/include -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 conftest.c -L. -L../.. -L. -L/home/USER/.rbenv/versions/2.3.0/lib -fstack-protector -ldl -lffi -lruby230-static -ldl -lffi -lpthread -ldl "
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 dlopen();
14: int t(void) { dlopen(); return 0; }
/* end */

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

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

"gcc -o conftest.exe -I../../.ext/include/x86_64-cygwin -I../.././include -I../.././ext/fiddle -I/home/USER/.rbenv/versions/2.3.0/include -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 conftest.c -L. -L../.. -L. -L/home/USER/.rbenv/versions/2.3.0/lib -fstack-protector -ldl -lffi -lruby230-static -ldl -lffi -lpthread -ldl "
conftest.c: In function ‘t’:
conftest.c:13:57: erreur: ‘dlclose’ undeclared (first use in this function)
int t(void) { void ((*volatile p)()); p = (void ((*)()))dlclose; return !p; }
^
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 ((*)()))dlclose; return !p; }
/* end */

"gcc -o conftest.exe -I../../.ext/include/x86_64-cygwin -I../.././include -I../.././ext/fiddle -I/home/USER/.rbenv/versions/2.3.0/include -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 conftest.c -L. -L../.. -L. -L/home/USER/.rbenv/versions/2.3.0/lib -fstack-protector -ldl -lffi -lruby230-static -ldl -lffi -lpthread -ldl "
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 dlclose();
14: int t(void) { dlclose(); return 0; }
/* end */

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

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

"gcc -o conftest.exe -I../../.ext/include/x86_64-cygwin -I../.././include -I../.././ext/fiddle -I/home/USER/.rbenv/versions/2.3.0/include -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 conftest.c -L. -L../.. -L. -L/home/USER/.rbenv/versions/2.3.0/lib -fstack-protector -ldl -lffi -lruby230-static -ldl -lffi -lpthread -ldl "
conftest.c: In function ‘t’:
conftest.c:13:57: erreur: ‘dlsym’ undeclared (first use in this function)
int t(void) { void ((*volatile p)()); p = (void ((*)()))dlsym; return !p; }
^
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 ((*)()))dlsym; return !p; }
/* end */

"gcc -o conftest.exe -I../../.ext/include/x86_64-cygwin -I../.././include -I../.././ext/fiddle -I/home/USER/.rbenv/versions/2.3.0/include -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 conftest.c -L. -L../.. -L. -L/home/USER/.rbenv/versions/2.3.0/lib -fstack-protector -ldl -lffi -lruby230-static -ldl -lffi -lpthread -ldl "
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 dlsym();
14: int t(void) { dlsym(); return 0; }
/* end */

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

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

"gcc -o conftest.exe -I../../.ext/include/x86_64-cygwin -I../.././include -I../.././ext/fiddle -I/home/USER/.rbenv/versions/2.3.0/include -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 conftest.c -L. -L../.. -L. -L/home/USER/.rbenv/versions/2.3.0/lib -fstack-protector -ldl -lffi -lruby230-static -ldl -lffi -lpthread -ldl "
conftest.c: In function ‘t’:
conftest.c:13:57: erreur: ‘dlerror’ undeclared (first use in this function)
int t(void) { void ((*volatile p)()); p = (void ((*)()))dlerror; return !p; }
^
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 ((*)()))dlerror; return !p; }
/* end */

"gcc -o conftest.exe -I../../.ext/include/x86_64-cygwin -I../.././include -I../.././ext/fiddle -I/home/USER/.rbenv/versions/2.3.0/include -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 conftest.c -L. -L../.. -L. -L/home/USER/.rbenv/versions/2.3.0/lib -fstack-protector -ldl -lffi -lruby230-static -ldl -lffi -lpthread -ldl "
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 dlerror();
14: int t(void) { dlerror(); return 0; }
/* end */

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

have_const: checking for FFI_STDCALL in ffi.h... -------------------- no

"gcc -I../../.ext/include/x86_64-cygwin -I../.././include -I../.././ext/fiddle -I/home/USER/.rbenv/versions/2.3.0/include -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 -c conftest.c"
conftest.c:7:34: erreur: ‘FFI_STDCALL’ undeclared here (not in a function)
conftest_type conftestval = (int)FFI_STDCALL;
^
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <ffi.h>
4:
5: /*top*/
6: typedef int conftest_type;
7: conftest_type conftestval = (int)FFI_STDCALL;
/* end */

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

check_signedness: checking signedness of size_t... -------------------- unsigned

"gcc -I../../.ext/include/x86_64-cygwin -I../.././include -I../.././ext/fiddle -I/home/USER/.rbenv/versions/2.3.0/include -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 -c conftest.c"
conftest.c:7:39: attention : comparaison d'une expression non signée < 0 est toujours fausse [-Wtype-limits]
int conftest_const[((rbcv_typedef_)-1 < 0) ? 1 : -1];
^
conftest.c:7:5: erreur: size of array ‘conftest_const’ is negative
int conftest_const[((rbcv_typedef_)-1 < 0) ? 1 : -1];
^
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <stddef.h>
4: typedef size_t rbcv_typedef_;
5:
6: /*top*/
7: int conftest_const[((rbcv_typedef_)-1 < 0) ? 1 : -1];
/* end */

"gcc -I../../.ext/include/x86_64-cygwin -I../.././include -I../.././ext/fiddle -I/home/USER/.rbenv/versions/2.3.0/include -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 -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <stddef.h>
4: typedef size_t rbcv_typedef_;
5:
6: /*top*/
7: int conftest_const[((rbcv_typedef_)-1 > 0) ? 1 : -1];
/* end */

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

extconf.h is:
/* begin */
1: #ifndef EXTCONF_H
2: #define EXTCONF_H
3: #define HAVE_FFI_H 1
4: #define HAVE_SYS_MMAN_H 1
5: #define HAVE_DLFCN_H 1
6: #define HAVE_DLOPEN 1
7: #define HAVE_DLCLOSE 1
8: #define HAVE_DLSYM 1
9: #define HAVE_DLERROR 1
10: #define SIGNEDNESS_OF_SIZE_T +1
11: #endif
/* end */

(2-2/4)