Created
December 25, 2014 11:10
-
-
Save tdtds/085a182056a2575c8f21 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package configuration for libffi is not found | |
have_header: checking for ffi.h... -------------------- no | |
"gcc -E -I../../.ext/include/x86_64-linux -I../.././include -I../.././ext/fiddle -I/home/sho/.rbenv/versions/2.2.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" | |
conftest.c:3:17: fatal error: ffi.h: No such file or directory | |
compilation terminated. | |
checked program was: | |
/* begin */ | |
1: #include "ruby.h" | |
2: | |
3: #include <ffi.h> | |
/* end */ | |
-------------------- | |
have_header: checking for ffi/ffi.h... -------------------- no | |
"gcc -E -I../../.ext/include/x86_64-linux -I../.././include -I../.././ext/fiddle -I/home/sho/.rbenv/versions/2.2.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" | |
conftest.c:3:21: fatal error: ffi/ffi.h: No such file or directory | |
compilation terminated. | |
checked program was: | |
/* begin */ | |
1: #include "ruby.h" | |
2: | |
3: #include <ffi/ffi.h> | |
/* end */ | |
-------------------- | |
["sh", "../../.././ext/fiddle/libffi-3.2.1/configure", "--srcdir=../../.././ext/fiddle/libffi-3.2.1", "--disable-shared", "--host=x86_64-unknown-linux-gnu", "--enable-builddir=x86_64-linux", "CC=gcc", "CFLAGS= -O3 -fno-fast-math -ggdb3 ", "CXX=g++", "CXXFLAGS= -O3 -fno-fast-math -ggdb3 ", "LD=ld", "LDFLAGS=-L. -L/home/sho/.rbenv/versions/2.2.0/lib -fstack-protector -rdynamic -Wl,-export-dynamic -L../../.. "] in {:chdir=>"libffi-3.2.1"} | |
checking build system type... x86_64-unknown-linux-gnu | |
checking host system type... x86_64-unknown-linux-gnu | |
checking target system type... x86_64-unknown-linux-gnu | |
checking for gsed... sed | |
checking for a BSD-compatible install... /usr/bin/install -c | |
checking whether build environment is sane... yes | |
checking for x86_64-unknown-linux-gnu-strip... no | |
checking for strip... strip | |
checking for a thread-safe mkdir -p... /bin/mkdir -p | |
checking for gawk... no | |
checking for mawk... mawk | |
checking whether make sets $(MAKE)... yes | |
checking whether make supports nested variables... yes | |
checking for x86_64-unknown-linux-gnu-gcc... gcc | |
checking whether the C compiler works... yes | |
checking for C compiler default output file name... a.out | |
checking for suffix of executables... | |
checking whether we are cross compiling... no | |
checking for suffix of object files... o | |
checking whether we are using the GNU C compiler... yes | |
checking whether gcc accepts -g... yes | |
checking for gcc option to accept ISO C89... none needed | |
checking for style of include used by make... GNU | |
checking dependency style of gcc... gcc3 | |
checking whether we are using the GNU C++ compiler... yes | |
checking whether g++ accepts -g... yes | |
checking dependency style of g++... gcc3 | |
checking dependency style of gcc... gcc3 | |
checking whether gcc and cc understand -c and -o together... yes | |
checking how to print strings... printf | |
checking for a sed that does not truncate output... /bin/sed | |
checking for grep that handles long lines and -e... /bin/grep | |
checking for egrep... /bin/grep -E | |
checking for fgrep... /bin/grep -F | |
checking for ld used by gcc... ld | |
checking if the linker (ld) is GNU ld... yes | |
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B | |
checking the name lister (/usr/bin/nm -B) interface... BSD nm | |
checking whether ln -s works... yes | |
checking the maximum length of command line arguments... 3458764513820540925 | |
checking whether the shell understands some XSI constructs... yes | |
checking whether the shell understands "+="... yes | |
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop | |
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop | |
checking for ld option to reload object files... -r | |
checking for x86_64-unknown-linux-gnu-objdump... no | |
checking for objdump... objdump | |
checking how to recognize dependent libraries... pass_all | |
checking for x86_64-unknown-linux-gnu-dlltool... no | |
checking for dlltool... no | |
checking how to associate runtime and link libraries... printf %s\n | |
checking for x86_64-unknown-linux-gnu-ar... no | |
checking for ar... ar | |
checking for archiver @FILE support... @ | |
checking for x86_64-unknown-linux-gnu-strip... strip | |
checking for x86_64-unknown-linux-gnu-ranlib... no | |
checking for ranlib... ranlib | |
checking command to parse /usr/bin/nm -B output from gcc object... ok | |
checking for sysroot... no | |
checking for x86_64-unknown-linux-gnu-mt... no | |
checking for mt... mt | |
checking if mt is a manifest tool... no | |
checking how to run the C preprocessor... gcc -E | |
checking for ANSI C header files... yes | |
checking for sys/types.h... yes | |
checking for sys/stat.h... yes | |
checking for stdlib.h... yes | |
checking for string.h... yes | |
checking for memory.h... yes | |
checking for strings.h... yes | |
checking for inttypes.h... yes | |
checking for stdint.h... yes | |
checking for unistd.h... yes | |
checking for dlfcn.h... yes | |
checking for objdir... .libs | |
checking if gcc supports -fno-rtti -fno-exceptions... no | |
checking for gcc option to produce PIC... -fPIC -DPIC | |
checking if gcc PIC flag -fPIC -DPIC works... yes | |
checking if gcc static flag -static works... no | |
checking if gcc supports -c -o file.o... yes | |
checking if gcc supports -c -o file.o... (cached) yes | |
checking whether the gcc linker (ld -m elf_x86_64) supports shared libraries... yes | |
checking dynamic linker characteristics... GNU/Linux ld.so | |
checking how to hardcode library paths into programs... immediate | |
checking whether stripping libraries is possible... yes | |
checking if libtool supports shared libraries... yes | |
checking whether to build shared libraries... no | |
checking whether to build static libraries... yes | |
checking how to run the C++ preprocessor... g++ -E | |
checking for ld used by g++... ld -m elf_x86_64 | |
checking if the linker (ld -m elf_x86_64) is GNU ld... yes | |
checking whether the g++ linker (ld -m elf_x86_64) supports shared libraries... yes | |
checking for g++ option to produce PIC... -fPIC -DPIC | |
checking if g++ PIC flag -fPIC -DPIC works... yes | |
checking if g++ static flag -static works... no | |
checking if g++ supports -c -o file.o... yes | |
checking if g++ supports -c -o file.o... (cached) yes | |
checking whether the g++ linker (ld -m elf_x86_64) supports shared libraries... yes | |
checking dynamic linker characteristics... (cached) GNU/Linux ld.so | |
checking how to hardcode library paths into programs... immediate | |
checking size of size_t... 8 | |
checking for C compiler vendor... gnu | |
checking CFLAGS for maximum warnings... -Wall | |
checking whether to enable maintainer-specific portions of Makefiles... no | |
checking sys/mman.h usability... yes | |
checking sys/mman.h presence... yes | |
checking for sys/mman.h... yes | |
checking for mmap... yes | |
checking for mkostemp... yes | |
checking for sys/mman.h... (cached) yes | |
checking for mmap... (cached) yes | |
checking whether read-only mmap of a plain file works... yes | |
checking whether mmap from /dev/zero works... yes | |
checking for MAP_ANON(YMOUS)... yes | |
checking whether mmap with MAP_ANON(YMOUS) works... yes | |
checking for ANSI C header files... (cached) yes | |
checking for memcpy... yes | |
checking for size_t... yes | |
checking for working alloca.h... yes | |
checking for alloca... yes | |
checking size of double... 8 | |
checking size of long double... 16 | |
checking whether byte ordering is bigendian... no | |
checking assembler .cfi pseudo-op support... yes | |
checking assembler supports pc related relocs... yes | |
checking assembler .ascii pseudo-op support... yes | |
checking assembler .string pseudo-op support... yes | |
checking for _ prefix in compiled symbols... no | |
checking toolchain supports unwind section type... yes | |
checking whether .eh_frame section should be read-only... yes | |
checking for __attribute__((visibility("hidden")))... yes | |
checking that generated files are newer than configure... done | |
configure: creating ./config.status | |
config.status: creating include/Makefile | |
config.status: creating include/ffi.h | |
config.status: creating Makefile | |
config.status: creating testsuite/Makefile | |
config.status: creating man/Makefile | |
config.status: creating libffi.pc | |
config.status: creating fficonfig.h | |
config.status: linking src/x86/ffitarget.h to include/ffitarget.h | |
config.status: executing buildir commands | |
config.status: keeping top_srcdir/Makefile from earlier configure | |
config.status: build in x86_64-linux (HOST=) | |
config.status: executing depfiles commands | |
config.status: executing libtool commands | |
config.status: executing include commands | |
config.status: executing src commands | |
have_header: checking for sys/mman.h... -------------------- yes | |
"gcc -E -I../../.ext/include/x86_64-linux -I../.././include -I../.././ext/fiddle -Ilibffi-3.2.1/include -I/home/sho/.rbenv/versions/2.2.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-linux -I../.././include -I../.././ext/fiddle -Ilibffi-3.2.1/include -I/home/sho/.rbenv/versions/2.2.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 -I../../.ext/include/x86_64-linux -I../.././include -I../.././ext/fiddle -Ilibffi-3.2.1/include -I/home/sho/.rbenv/versions/2.2.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/sho/.rbenv/versions/2.2.0/lib -fstack-protector -rdynamic -Wl,-export-dynamic -Wl,-R/home/sho/.rbenv/versions/2.2.0/lib -L/home/sho/.rbenv/versions/2.2.0/lib -lruby-static -ldl -lpthread -lrt -ldl -lcrypt -lm -lc" | |
conftest.c: In function ‘t’: | |
conftest.c:13:32: warning: variable ‘p’ set but not used [-Wunused-but-set-variable] | |
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 0; } | |
/* end */ | |
-------------------- | |
have_func: checking for dlopen()... -------------------- yes | |
"gcc -o conftest -I../../.ext/include/x86_64-linux -I../.././include -I../.././ext/fiddle -Ilibffi-3.2.1/include -I/home/sho/.rbenv/versions/2.2.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/sho/.rbenv/versions/2.2.0/lib -fstack-protector -rdynamic -Wl,-export-dynamic -ldl -Wl,-R/home/sho/.rbenv/versions/2.2.0/lib -L/home/sho/.rbenv/versions/2.2.0/lib -lruby-static -ldl -lpthread -lrt -ldl -lcrypt -lm -lc" | |
conftest.c: In function ‘t’: | |
conftest.c:13:57: error: ‘dlopen’ undeclared (first use in this function) | |
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] | |
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 0; } | |
/* end */ | |
"gcc -o conftest -I../../.ext/include/x86_64-linux -I../.././include -I../.././ext/fiddle -Ilibffi-3.2.1/include -I/home/sho/.rbenv/versions/2.2.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/sho/.rbenv/versions/2.2.0/lib -fstack-protector -rdynamic -Wl,-export-dynamic -ldl -Wl,-R/home/sho/.rbenv/versions/2.2.0/lib -L/home/sho/.rbenv/versions/2.2.0/lib -lruby-static -ldl -lpthread -lrt -ldl -lcrypt -lm -lc" | |
conftest.c: In function ‘t’: | |
conftest.c:13:1: warning: implicit declaration of function ‘dlopen’ [-Wimplicit-function-declaration] | |
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) { dlopen(); return 0; } | |
/* end */ | |
-------------------- | |
have_func: checking for dlclose()... -------------------- yes | |
"gcc -o conftest -I../../.ext/include/x86_64-linux -I../.././include -I../.././ext/fiddle -Ilibffi-3.2.1/include -I/home/sho/.rbenv/versions/2.2.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/sho/.rbenv/versions/2.2.0/lib -fstack-protector -rdynamic -Wl,-export-dynamic -ldl -Wl,-R/home/sho/.rbenv/versions/2.2.0/lib -L/home/sho/.rbenv/versions/2.2.0/lib -lruby-static -ldl -lpthread -lrt -ldl -lcrypt -lm -lc" | |
conftest.c: In function ‘t’: | |
conftest.c:13:57: error: ‘dlclose’ undeclared (first use in this function) | |
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] | |
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 0; } | |
/* end */ | |
"gcc -o conftest -I../../.ext/include/x86_64-linux -I../.././include -I../.././ext/fiddle -Ilibffi-3.2.1/include -I/home/sho/.rbenv/versions/2.2.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/sho/.rbenv/versions/2.2.0/lib -fstack-protector -rdynamic -Wl,-export-dynamic -ldl -Wl,-R/home/sho/.rbenv/versions/2.2.0/lib -L/home/sho/.rbenv/versions/2.2.0/lib -lruby-static -ldl -lpthread -lrt -ldl -lcrypt -lm -lc" | |
conftest.c: In function ‘t’: | |
conftest.c:13:1: warning: implicit declaration of function ‘dlclose’ [-Wimplicit-function-declaration] | |
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) { dlclose(); return 0; } | |
/* end */ | |
-------------------- | |
have_func: checking for dlsym()... -------------------- yes | |
"gcc -o conftest -I../../.ext/include/x86_64-linux -I../.././include -I../.././ext/fiddle -Ilibffi-3.2.1/include -I/home/sho/.rbenv/versions/2.2.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/sho/.rbenv/versions/2.2.0/lib -fstack-protector -rdynamic -Wl,-export-dynamic -ldl -Wl,-R/home/sho/.rbenv/versions/2.2.0/lib -L/home/sho/.rbenv/versions/2.2.0/lib -lruby-static -ldl -lpthread -lrt -ldl -lcrypt -lm -lc" | |
conftest.c: In function ‘t’: | |
conftest.c:13:57: error: ‘dlsym’ undeclared (first use in this function) | |
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] | |
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 0; } | |
/* end */ | |
"gcc -o conftest -I../../.ext/include/x86_64-linux -I../.././include -I../.././ext/fiddle -Ilibffi-3.2.1/include -I/home/sho/.rbenv/versions/2.2.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/sho/.rbenv/versions/2.2.0/lib -fstack-protector -rdynamic -Wl,-export-dynamic -ldl -Wl,-R/home/sho/.rbenv/versions/2.2.0/lib -L/home/sho/.rbenv/versions/2.2.0/lib -lruby-static -ldl -lpthread -lrt -ldl -lcrypt -lm -lc" | |
conftest.c: In function ‘t’: | |
conftest.c:13:1: warning: implicit declaration of function ‘dlsym’ [-Wimplicit-function-declaration] | |
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) { dlsym(); return 0; } | |
/* end */ | |
-------------------- | |
have_func: checking for dlerror()... -------------------- yes | |
"gcc -o conftest -I../../.ext/include/x86_64-linux -I../.././include -I../.././ext/fiddle -Ilibffi-3.2.1/include -I/home/sho/.rbenv/versions/2.2.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/sho/.rbenv/versions/2.2.0/lib -fstack-protector -rdynamic -Wl,-export-dynamic -ldl -Wl,-R/home/sho/.rbenv/versions/2.2.0/lib -L/home/sho/.rbenv/versions/2.2.0/lib -lruby-static -ldl -lpthread -lrt -ldl -lcrypt -lm -lc" | |
conftest.c: In function ‘t’: | |
conftest.c:13:57: error: ‘dlerror’ undeclared (first use in this function) | |
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] | |
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 0; } | |
/* end */ | |
"gcc -o conftest -I../../.ext/include/x86_64-linux -I../.././include -I../.././ext/fiddle -Ilibffi-3.2.1/include -I/home/sho/.rbenv/versions/2.2.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/sho/.rbenv/versions/2.2.0/lib -fstack-protector -rdynamic -Wl,-export-dynamic -ldl -Wl,-R/home/sho/.rbenv/versions/2.2.0/lib -L/home/sho/.rbenv/versions/2.2.0/lib -lruby-static -ldl -lpthread -lrt -ldl -lcrypt -lm -lc" | |
conftest.c: In function ‘t’: | |
conftest.c:13:1: warning: implicit declaration of function ‘dlerror’ [-Wimplicit-function-declaration] | |
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) { dlerror(); return 0; } | |
/* end */ | |
-------------------- | |
have_const: checking for FFI_STDCALL in ffi.h... -------------------- yes | |
"gcc -I../../.ext/include/x86_64-linux -I../.././include -I../.././ext/fiddle -Ilibffi-3.2.1/include -I/home/sho/.rbenv/versions/2.2.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 <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-linux -I../.././include -I../.././ext/fiddle -Ilibffi-3.2.1/include -I/home/sho/.rbenv/versions/2.2.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:1: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits] | |
conftest.c:7:5: error: size of array ‘conftest_const’ is negative | |
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-linux -I../.././include -I../.././ext/fiddle -Ilibffi-3.2.1/include -I/home/sho/.rbenv/versions/2.2.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 RUBY_LIBFFI_MODVERSION 3002001 | |
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 HAVE_CONST_FFI_STDCALL 1 | |
11: #define SIGNEDNESS_OF_SIZE_T +1 | |
12: #endif | |
/* end */ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment