This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by configure, which was generated by GNU Autoconf 2.59. Invocation command line was $ ./configure --prefix=/usr --prefix=/usr --sysconfdir=/etc --localstatedir=/var --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --build=i686-uhu-linux --host=i686-uhu-linux --disable-static CFLAGS=-O2 -march=i686 -mtune=generic build_alias=i686-uhu-linux host_alias=i686-uhu-linux --cache-file=/dev/null --srcdir=. --cache-file=/dev/null --srcdir=. ## --------- ## ## Platform. ## ## --------- ## hostname = hp04 uname -m = i686 uname -r = 3.15.0-rc8-2.i386 uname -s = Linux uname -v = #2 SMP Thu Jun 5 11:08:29 UTC 2014 /usr/bin/uname -p = unknown /bin/uname -X = unknown /bin/arch = unknown /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /usr/lib/uhubuild PATH: /usr/lib/ccache PATH: /sbin PATH: /usr/sbin PATH: /bin PATH: /usr/bin ## ----------- ## ## Core tests. ## ## ----------- ## configure:1474: checking for i686-uhu-linux-gcc configure:1490: found /usr/bin/i686-uhu-linux-gcc configure:1500: result: i686-uhu-linux-gcc configure:1782: checking for C compiler version configure:1785: i686-uhu-linux-gcc --version &5 i686-uhu-linux-gcc (GCC) 4.8.3 Copyright (C) 2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:1788: $? = 0 configure:1790: i686-uhu-linux-gcc -v &5 Using built-in specs. COLLECT_GCC=i686-uhu-linux-gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/i686-uhu-linux/4.8.3/lto-wrapper Target: i686-uhu-linux Configured with: /var/uhubuild/work/compile/configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --build=i686-uhu-linux --host=i686-uhu-linux --target=i686-uhu-linux --enable-languages=c,c++,objc,java,fortran --enable-shared --enable-targets=all --disable-multilib --with-gnu-as --with-gnu-ld --with-system-zlib --with-arch-32=i686 --with-arch-64=core2 --with-cpu-32=i686 --with-cpu-64=core2 --with-tune=generic Thread model: posix gcc version 4.8.3 (GCC) configure:1793: $? = 0 configure:1795: i686-uhu-linux-gcc -V &5 i686-uhu-linux-gcc: error: unrecognized command line option '-V' i686-uhu-linux-gcc: fatal error: no input files compilation terminated. configure:1798: $? = 1 configure:1821: checking for C compiler default output file name configure:1824: i686-uhu-linux-gcc -O2 -march=i686 -mtune=generic conftest.c >&5 configure:1827: $? = 0 configure:1873: result: a.out configure:1878: checking whether the C compiler works configure:1884: ./a.out configure:1887: $? = 0 configure:1904: result: yes configure:1911: checking whether we are cross compiling configure:1913: result: no configure:1916: checking for suffix of executables configure:1918: i686-uhu-linux-gcc -o conftest -O2 -march=i686 -mtune=generic conftest.c >&5 configure:1921: $? = 0 configure:1946: result: configure:1952: checking for suffix of object files configure:1973: i686-uhu-linux-gcc -c -O2 -march=i686 -mtune=generic conftest.c >&5 configure:1976: $? = 0 configure:1998: result: o configure:2002: checking whether we are using the GNU C compiler configure:2026: i686-uhu-linux-gcc -c -O2 -march=i686 -mtune=generic conftest.c >&5 configure:2032: $? = 0 configure:2036: test -z || test ! -s conftest.err configure:2039: $? = 0 configure:2042: test -s conftest.o configure:2045: $? = 0 configure:2058: result: yes configure:2064: checking whether i686-uhu-linux-gcc accepts -g configure:2085: i686-uhu-linux-gcc -c -g conftest.c >&5 configure:2091: $? = 0 configure:2095: test -z || test ! -s conftest.err configure:2098: $? = 0 configure:2101: test -s conftest.o configure:2104: $? = 0 configure:2115: result: yes configure:2132: checking for i686-uhu-linux-gcc option to accept ANSI C configure:2202: i686-uhu-linux-gcc -c -O2 -march=i686 -mtune=generic conftest.c >&5 configure:2208: $? = 0 configure:2212: test -z || test ! -s conftest.err configure:2215: $? = 0 configure:2218: test -s conftest.o configure:2221: $? = 0 configure:2239: result: none needed configure:2257: i686-uhu-linux-gcc -c -O2 -march=i686 -mtune=generic conftest.c >&5 conftest.c:2:3: error: unknown type name 'choke' choke me ^ conftest.c:2:3: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input configure:2263: $? = 1 configure: failed program was: | #ifndef __cplusplus | choke me | #endif configure:2401: checking how to run the C preprocessor configure:2436: i686-uhu-linux-gcc -E conftest.c configure:2442: $? = 0 configure:2474: i686-uhu-linux-gcc -E conftest.c conftest.c:9:28: fatal error: ac_nonexistent.h: No such file or directory #include ^ compilation terminated. configure:2480: $? = 1 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | /* end confdefs.h. */ | #include configure:2519: result: i686-uhu-linux-gcc -E configure:2543: i686-uhu-linux-gcc -E conftest.c configure:2549: $? = 0 configure:2581: i686-uhu-linux-gcc -E conftest.c conftest.c:9:28: fatal error: ac_nonexistent.h: No such file or directory #include ^ compilation terminated. configure:2587: $? = 1 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | /* end confdefs.h. */ | #include configure:2632: checking for egrep configure:2642: result: grep -E configure:2648: checking whether i686-uhu-linux-gcc needs -traditional configure:2690: result: no configure:2698: checking whether using GNU C configure:2725: result: yes configure:2737: checking for underscore in external names configure:2751: i686-uhu-linux-gcc -S conftest.c configure:2754: $? = 0 configure:2764: result: no configure:2779: checking for ranlib configure:2795: found /usr/bin/ranlib configure:2806: result: ranlib configure:2813: checking whether make sets $(MAKE) configure:2833: result: yes configure:2852: checking for a BSD compatible install configure:2899: result: /bin/install -c configure:2911: checking how to copy files configure:2927: result: cp -p configure:2931: checking how to make hard links configure:2947: result: ln configure:2951: checking whether ln -s works configure:2967: result: yes configure:2984: checking build system type configure:3002: result: i686-uhu-linux-gnu configure:3010: checking host system type configure:3024: result: i686-uhu-linux-gnu configure:3255: checking for ld used by GCC configure:3318: result: /usr/bin/ld configure:3327: checking if the linker (/usr/bin/ld) is GNU ld GNU ld (GNU Binutils) 2.23.2 configure:3339: result: yes configure:3344: checking for /usr/bin/ld option to reload object files configure:3351: result: -r configure:3356: checking for BSD-compatible nm configure:3392: result: nm configure:3395: checking for a sed that does not truncate output configure:3477: result: /bin/sed configure:3480: checking how to recognise dependent libraries configure:3661: result: pass_all configure:3673: checking command to parse nm output configure:3757: i686-uhu-linux-gcc -c -O2 -march=i686 -mtune=generic conftest.c >&5 configure:3760: $? = 0 configure:3764: nm conftest.o \| sed -n -e 's/^.*[ ]\([ABCDGISTW][ABCDGISTW]*\)[ ][ ]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' \> conftest.nm configure:3767: $? = 0 configure:3819: i686-uhu-linux-gcc -o conftest -O2 -march=i686 -mtune=generic conftest.c conftstm.o >&5 configure:3822: $? = 0 configure:3866: result: ok configure:3870: checking for ANSI C header files configure:3895: i686-uhu-linux-gcc -c -O2 -march=i686 -mtune=generic conftest.c >&5 configure:3901: $? = 0 configure:3905: test -z || test ! -s conftest.err configure:3908: $? = 0 configure:3911: test -s conftest.o configure:3914: $? = 0 configure:4003: i686-uhu-linux-gcc -o conftest -O2 -march=i686 -mtune=generic conftest.c >&5 conftest.c: In function 'main': conftest.c:29:7: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default] exit(2); ^ configure:4006: $? = 0 configure:4008: ./conftest configure:4011: $? = 0 configure:4026: result: yes configure:4050: checking for sys/types.h configure:4066: i686-uhu-linux-gcc -c -O2 -march=i686 -mtune=generic conftest.c >&5 configure:4072: $? = 0 configure:4076: test -z || test ! -s conftest.err configure:4079: $? = 0 configure:4082: test -s conftest.o configure:4085: $? = 0 configure:4096: result: yes configure:4050: checking for sys/stat.h configure:4066: i686-uhu-linux-gcc -c -O2 -march=i686 -mtune=generic conftest.c >&5 configure:4072: $? = 0 configure:4076: test -z || test ! -s conftest.err configure:4079: $? = 0 configure:4082: test -s conftest.o configure:4085: $? = 0 configure:4096: result: yes configure:4050: checking for stdlib.h configure:4066: i686-uhu-linux-gcc -c -O2 -march=i686 -mtune=generic conftest.c >&5 configure:4072: $? = 0 configure:4076: test -z || test ! -s conftest.err configure:4079: $? = 0 configure:4082: test -s conftest.o configure:4085: $? = 0 configure:4096: result: yes configure:4050: checking for string.h configure:4066: i686-uhu-linux-gcc -c -O2 -march=i686 -mtune=generic conftest.c >&5 configure:4072: $? = 0 configure:4076: test -z || test ! -s conftest.err configure:4079: $? = 0 configure:4082: test -s conftest.o configure:4085: $? = 0 configure:4096: result: yes configure:4050: checking for memory.h configure:4066: i686-uhu-linux-gcc -c -O2 -march=i686 -mtune=generic conftest.c >&5 configure:4072: $? = 0 configure:4076: test -z || test ! -s conftest.err configure:4079: $? = 0 configure:4082: test -s conftest.o configure:4085: $? = 0 configure:4096: result: yes configure:4050: checking for strings.h configure:4066: i686-uhu-linux-gcc -c -O2 -march=i686 -mtune=generic conftest.c >&5 configure:4072: $? = 0 configure:4076: test -z || test ! -s conftest.err configure:4079: $? = 0 configure:4082: test -s conftest.o configure:4085: $? = 0 configure:4096: result: yes configure:4050: checking for inttypes.h configure:4066: i686-uhu-linux-gcc -c -O2 -march=i686 -mtune=generic conftest.c >&5 configure:4072: $? = 0 configure:4076: test -z || test ! -s conftest.err configure:4079: $? = 0 configure:4082: test -s conftest.o configure:4085: $? = 0 configure:4096: result: yes configure:4050: checking for stdint.h configure:4066: i686-uhu-linux-gcc -c -O2 -march=i686 -mtune=generic conftest.c >&5 configure:4072: $? = 0 configure:4076: test -z || test ! -s conftest.err configure:4079: $? = 0 configure:4082: test -s conftest.o configure:4085: $? = 0 configure:4096: result: yes configure:4050: checking for unistd.h configure:4066: i686-uhu-linux-gcc -c -O2 -march=i686 -mtune=generic conftest.c >&5 configure:4072: $? = 0 configure:4076: test -z || test ! -s conftest.err configure:4079: $? = 0 configure:4082: test -s conftest.o configure:4085: $? = 0 configure:4096: result: yes configure:4122: checking dlfcn.h usability configure:4134: i686-uhu-linux-gcc -c -O2 -march=i686 -mtune=generic conftest.c >&5 configure:4140: $? = 0 configure:4144: test -z || test ! -s conftest.err configure:4147: $? = 0 configure:4150: test -s conftest.o configure:4153: $? = 0 configure:4163: result: yes configure:4167: checking dlfcn.h presence configure:4177: i686-uhu-linux-gcc -E conftest.c configure:4183: $? = 0 configure:4203: result: yes configure:4238: checking for dlfcn.h configure:4245: result: yes configure:4405: checking for i686-uhu-linux-ranlib configure:4431: result: ranlib configure:4485: checking for i686-uhu-linux-strip configure:4514: result: no configure:4523: checking for strip configure:4539: found /usr/bin/strip configure:4550: result: strip configure:4770: checking for objdir configure:4781: result: .libs configure:4798: checking for i686-uhu-linux-gcc option to produce PIC configure:4944: result: -fPIC configure:4948: checking if i686-uhu-linux-gcc PIC flag -fPIC works configure:4971: i686-uhu-linux-gcc -c -O2 -march=i686 -mtune=generic -fPIC -DPIC conftest.c >&5 configure:4977: $? = 0 configure:4981: test -z || test ! -s conftest.err configure:4984: $? = 0 configure:4987: test -s conftest.o configure:4990: $? = 0 configure:5028: result: yes configure:5044: checking if i686-uhu-linux-gcc static flag -static works configure:5068: i686-uhu-linux-gcc -o conftest -O2 -march=i686 -mtune=generic -static conftest.c >&5 configure:5074: $? = 0 configure:5078: test -z || test ! -s conftest.err configure:5081: $? = 0 configure:5084: test -s conftest configure:5087: $? = 0 configure:5104: result: yes configure:5116: checking if i686-uhu-linux-gcc supports -c -o file.o configure:5136: i686-uhu-linux-gcc -c -O2 -march=i686 -mtune=generic -o out/conftest2.o conftest.c >&5 configure:5160: result: yes configure:5165: checking if i686-uhu-linux-gcc supports -c -o file.lo configure:5192: i686-uhu-linux-gcc -c -O2 -march=i686 -mtune=generic -c -o conftest.lo conftest.c >&5 configure:5198: $? = 0 configure:5202: test -z || test ! -s conftest.err configure:5205: $? = 0 configure:5208: test -s conftest.lo configure:5211: $? = 0 configure:5233: result: yes configure:5264: checking if i686-uhu-linux-gcc supports -fno-rtti -fno-exceptions configure:5286: i686-uhu-linux-gcc -c -O2 -march=i686 -mtune=generic -fno-rtti -fno-exceptions -c conftest.c conftest.c >&5 cc1: warning: command line option '-fno-rtti' is valid for C++/ObjC++ but not for C [enabled by default] cc1: warning: command line option '-fno-rtti' is valid for C++/ObjC++ but not for C [enabled by default] configure:5292: $? = 0 configure:5296: test -z || test ! -s conftest.err configure:5299: $? = 0 configure:5302: test -s conftest.o configure:5305: $? = 0 configure:5322: result: no configure:5333: checking whether the linker (/usr/bin/ld) supports shared libraries configure:6028: result: yes configure:6033: checking how to hardcode library paths into programs configure:6057: result: immediate configure:6062: checking whether stripping libraries is possible configure:6067: result: yes configure:6078: checking dynamic linker characteristics configure:6485: result: GNU/Linux ld.so configure:6490: checking if libtool supports shared libraries configure:6492: result: yes configure:6495: checking whether to build shared libraries configure:6516: result: yes configure:6519: checking whether to build static libraries configure:6523: result: no configure:7273: checking whether -lc should be explicitly linked in configure:7281: i686-uhu-linux-gcc -c -O2 -march=i686 -mtune=generic conftest.c >&5 configure:7284: $? = 0 configure:7298: i686-uhu-linux-gcc -shared conftest.o -v -Wl,-soname -Wl,conftest -o conftest 2\>\&1 \| grep -lc \>/dev/null 2\>\&1 configure:7301: $? = 0 configure:7314: result: no configure:7887: checking for working void configure:7912: i686-uhu-linux-gcc -c -O2 -march=i686 -mtune=generic conftest.c >&5 configure:7918: $? = 0 configure:7922: test -z || test ! -s conftest.err configure:7925: $? = 0 configure:7928: test -s conftest.o configure:7931: $? = 0 configure:7944: result: yes configure:7956: checking for working "return void" configure:7978: i686-uhu-linux-gcc -c -O2 -march=i686 -mtune=generic conftest.c >&5 configure:7984: $? = 0 configure:7988: test -z || test ! -s conftest.err configure:7991: $? = 0 configure:7994: test -s conftest.o configure:7997: $? = 0 configure:8010: result: yes configure:8025: checking for ANSI C header files configure:8043: i686-uhu-linux-gcc -E conftest.c configure:8049: $? = 0 configure:8072: result: yes configure:8087: checking for unistd_h configure:8092: result: yes configure:8233: checking for getpagesize configure:8260: i686-uhu-linux-gcc -o conftest -O2 -march=i686 -mtune=generic conftest.c >&5 configure:8266: $? = 0 configure:8270: test -z || test ! -s conftest.err configure:8273: $? = 0 configure:8276: test -s conftest configure:8279: $? = 0 configure:8293: result: yes configure:8304: checking for getpagesize declaration configure:8342: i686-uhu-linux-gcc -c -O2 -march=i686 -mtune=generic conftest.c >&5 configure:8348: $? = 0 configure:8352: test -z || test ! -s conftest.err configure:8355: $? = 0 configure:8358: test -s conftest.o configure:8361: $? = 0 configure:8378: result: extern int getpagesize (void); configure:8540: checking for vm_allocate configure:8562: i686-uhu-linux-gcc -o conftest -O2 -march=i686 -mtune=generic conftest.c >&5 /tmp/ccjDpHiG.o: In function `main': conftest.c:(.text.startup+0x7): undefined reference to `vm_allocate' conftest.c:(.text.startup+0xc): undefined reference to `task_self' collect2: error: ld returned 1 exit status configure:8568: $? = 1 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #ifndef __i386__ | #define __i386__ 1 | #endif | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define return_void return | #define STDC_HEADERS 1 | #define HAVE_UNISTD_H 1 | #define HAVE_GETPAGESIZE | #define RETGETPAGESIZETYPE int | /* end confdefs.h. */ | | int | main () | { | vm_allocate(); task_self(); | ; | return 0; | } configure:8595: result: no configure:8620: checking sys/file.h usability configure:8632: i686-uhu-linux-gcc -c -O2 -march=i686 -mtune=generic conftest.c >&5 configure:8638: $? = 0 configure:8642: test -z || test ! -s conftest.err configure:8645: $? = 0 configure:8648: test -s conftest.o configure:8651: $? = 0 configure:8661: result: yes configure:8665: checking sys/file.h presence configure:8675: i686-uhu-linux-gcc -E conftest.c configure:8681: $? = 0 configure:8701: result: yes configure:8736: checking for sys/file.h configure:8743: result: yes configure:8766: checking for O_RDWR in fcntl.h configure:8788: i686-uhu-linux-gcc -c -O2 -march=i686 -mtune=generic conftest.c >&5 configure:8794: $? = 0 configure:8798: test -z || test ! -s conftest.err configure:8801: $? = 0 configure:8804: test -s conftest.o configure:8807: $? = 0 configure:8820: result: yes configure:8845: checking sys/mman.h usability configure:8857: i686-uhu-linux-gcc -c -O2 -march=i686 -mtune=generic conftest.c >&5 configure:8863: $? = 0 configure:8867: test -z || test ! -s conftest.err configure:8870: $? = 0 configure:8873: test -s conftest.o configure:8876: $? = 0 configure:8886: result: yes configure:8890: checking sys/mman.h presence configure:8900: i686-uhu-linux-gcc -E conftest.c configure:8906: $? = 0 configure:8926: result: yes configure:8961: checking for sys/mman.h configure:8968: result: yes configure:8979: checking for mmap configure:9036: i686-uhu-linux-gcc -o conftest -O2 -march=i686 -mtune=generic conftest.c >&5 configure:9042: $? = 0 configure:9046: test -z || test ! -s conftest.err configure:9049: $? = 0 configure:9052: test -s conftest configure:9055: $? = 0 configure:9067: result: yes configure:9080: checking for working mmap configure:9161: i686-uhu-linux-gcc -o conftest -O2 -march=i686 -mtune=generic conftest.c >&5 configure:9164: $? = 0 configure:9166: ./conftest configure:9169: $? = 0 configure:9200: i686-uhu-linux-gcc -o conftest -O2 -march=i686 -mtune=generic conftest.c >&5 configure:9203: $? = 0 configure:9205: ./conftest configure:9208: $? = 0 configure:9243: i686-uhu-linux-gcc -o conftest -O2 -march=i686 -mtune=generic conftest.c >&5 configure:9246: $? = 0 configure:9248: ./conftest configure:9251: $? = 0 configure:9319: result: yes configure:9356: checking for mprotect configure:9413: i686-uhu-linux-gcc -o conftest -O2 -march=i686 -mtune=generic conftest.c >&5 configure:9419: $? = 0 configure:9423: test -z || test ! -s conftest.err configure:9426: $? = 0 configure:9429: test -s conftest configure:9432: $? = 0 configure:9444: result: yes configure:9454: checking for working mprotect configure:9504: i686-uhu-linux-gcc -o conftest -O2 -march=i686 -mtune=generic conftest.c >&5 configure:9507: $? = 0 configure:9509: ./conftest configure:9512: $? = 0 configure:9546: i686-uhu-linux-gcc -o conftest -O2 -march=i686 -mtune=generic conftest.c >&5 configure:9549: $? = 0 configure:9551: ./conftest ./configure: line 9552: 4681 Segmentation fault (core dumped) ./conftest$ac_exeext configure:9554: $? = 139 configure: program exited with status 139 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #ifndef __i386__ | #define __i386__ 1 | #endif | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define return_void return | #define STDC_HEADERS 1 | #define HAVE_UNISTD_H 1 | #define HAVE_GETPAGESIZE | #define RETGETPAGESIZETYPE int | #define HAVE_SYS_FILE_H 1 | #define HAVE_MMAP | #define HAVE_MMAP_ANON | #define HAVE_MMAP_ANONYMOUS | #define HAVE_MMAP_DEVZERO | #define HAVE_MPROTECT 1 | /* end confdefs.h. */ | | #include | /* declare malloc() */ | #include | #ifdef HAVE_UNISTD_H | #include | #endif | /* declare getpagesize() and mprotect() */ | #include | #ifndef HAVE_GETPAGESIZE | #include | #define getpagesize() PAGESIZE | #else | extern | #ifdef __cplusplus | "C" | #endif | | #if defined(__STDC__) || defined(__cplusplus) | RETGETPAGESIZETYPE getpagesize (void); | #else | RETGETPAGESIZETYPE getpagesize(); | #endif | #endif | char foo; | int main () { | unsigned long pagesize = getpagesize(); | #define page_align(address) (char*)((unsigned long)(address) & -pagesize) | | char* area = (char*) malloc(6*pagesize); | char* fault_address = area + pagesize*7/2; | | if (mprotect(page_align(fault_address),pagesize,PROT_NONE) < 0) exit(0); | foo = *fault_address; /* this should cause a core dump */ | exit(0); } configure:9585: i686-uhu-linux-gcc -o conftest -O2 -march=i686 -mtune=generic conftest.c >&5 configure:9588: $? = 0 configure:9590: ./conftest ./configure: line 9591: 4714 Segmentation fault (core dumped) ./conftest$ac_exeext configure:9593: $? = 139 configure: program exited with status 139 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #ifndef __i386__ | #define __i386__ 1 | #endif | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define return_void return | #define STDC_HEADERS 1 | #define HAVE_UNISTD_H 1 | #define HAVE_GETPAGESIZE | #define RETGETPAGESIZETYPE int | #define HAVE_SYS_FILE_H 1 | #define HAVE_MMAP | #define HAVE_MMAP_ANON | #define HAVE_MMAP_ANONYMOUS | #define HAVE_MMAP_DEVZERO | #define HAVE_MPROTECT 1 | /* end confdefs.h. */ | | #include | /* declare malloc() */ | #include | #ifdef HAVE_UNISTD_H | #include | #endif | /* declare getpagesize() and mprotect() */ | #include | #ifndef HAVE_GETPAGESIZE | #include | #define getpagesize() PAGESIZE | #else | extern | #ifdef __cplusplus | "C" | #endif | | #if defined(__STDC__) || defined(__cplusplus) | RETGETPAGESIZETYPE getpagesize (void); | #else | RETGETPAGESIZETYPE getpagesize(); | #endif | #endif | char foo; | int main () { | unsigned long pagesize = getpagesize(); | #define page_align(address) (char*)((unsigned long)(address) & -pagesize) | | char* area = (char*) malloc(6*pagesize); | char* fault_address = area + pagesize*7/2; | | if (mprotect(page_align(fault_address),pagesize,PROT_NONE) < 0) exit(0); | *fault_address = 'z'; /* this should cause a core dump */ | exit(0); } configure:9624: i686-uhu-linux-gcc -o conftest -O2 -march=i686 -mtune=generic conftest.c >&5 configure:9627: $? = 0 configure:9629: ./conftest ./configure: line 9630: 4747 Segmentation fault (core dumped) ./conftest$ac_exeext configure:9632: $? = 139 configure: program exited with status 139 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #ifndef __i386__ | #define __i386__ 1 | #endif | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define return_void return | #define STDC_HEADERS 1 | #define HAVE_UNISTD_H 1 | #define HAVE_GETPAGESIZE | #define RETGETPAGESIZETYPE int | #define HAVE_SYS_FILE_H 1 | #define HAVE_MMAP | #define HAVE_MMAP_ANON | #define HAVE_MMAP_ANONYMOUS | #define HAVE_MMAP_DEVZERO | #define HAVE_MPROTECT 1 | /* end confdefs.h. */ | | #include | /* declare malloc() */ | #include | #ifdef HAVE_UNISTD_H | #include | #endif | /* declare getpagesize() and mprotect() */ | #include | #ifndef HAVE_GETPAGESIZE | #include | #define getpagesize() PAGESIZE | #else | extern | #ifdef __cplusplus | "C" | #endif | | #if defined(__STDC__) || defined(__cplusplus) | RETGETPAGESIZETYPE getpagesize (void); | #else | RETGETPAGESIZETYPE getpagesize(); | #endif | #endif | char foo; | int main () { | unsigned long pagesize = getpagesize(); | #define page_align(address) (char*)((unsigned long)(address) & -pagesize) | | char* area = (char*) malloc(6*pagesize); | char* fault_address = area + pagesize*7/2; | | if (mprotect(page_align(fault_address),pagesize,PROT_READ) < 0) exit(0); | *fault_address = 'z'; /* this should cause a core dump */ | exit(0); } configure:9664: i686-uhu-linux-gcc -o conftest -O2 -march=i686 -mtune=generic conftest.c >&5 configure:9667: $? = 0 configure:9669: ./conftest configure:9672: $? = 0 configure:9694: result: yes configure:9719: checking sys/shm.h usability configure:9731: i686-uhu-linux-gcc -c -O2 -march=i686 -mtune=generic conftest.c >&5 configure:9737: $? = 0 configure:9741: test -z || test ! -s conftest.err configure:9744: $? = 0 configure:9747: test -s conftest.o configure:9750: $? = 0 configure:9760: result: yes configure:9764: checking sys/shm.h presence configure:9774: i686-uhu-linux-gcc -E conftest.c configure:9780: $? = 0 configure:9800: result: yes configure:9835: checking for sys/shm.h configure:9842: result: yes configure:9870: checking sys/ipc.h usability configure:9882: i686-uhu-linux-gcc -c -O2 -march=i686 -mtune=generic conftest.c >&5 configure:9888: $? = 0 configure:9892: test -z || test ! -s conftest.err configure:9895: $? = 0 configure:9898: test -s conftest.o configure:9901: $? = 0 configure:9911: result: yes configure:9915: checking sys/ipc.h presence configure:9925: i686-uhu-linux-gcc -E conftest.c configure:9931: $? = 0 configure:9951: result: yes configure:9986: checking for sys/ipc.h configure:9993: result: yes configure:10010: checking for working shared memory configure:10044: i686-uhu-linux-gcc -o conftest -O2 -march=i686 -mtune=generic conftest.c >&5 conftest.c: In function 'main': conftest.c:46:55: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default] if ((shmid = shmget(IPC_PRIVATE,segsize,0400)) < 0) exit(1); ^ configure:10047: $? = 0 configure:10049: ./conftest configure:10052: $? = 0 configure:10067: result: yes configure:10091: checking sys/sysmacros.h usability configure:10103: i686-uhu-linux-gcc -c -O2 -march=i686 -mtune=generic conftest.c >&5 configure:10109: $? = 0 configure:10113: test -z || test ! -s conftest.err configure:10116: $? = 0 configure:10119: test -s conftest.o configure:10122: $? = 0 configure:10132: result: yes configure:10136: checking sys/sysmacros.h presence configure:10146: i686-uhu-linux-gcc -E conftest.c configure:10152: $? = 0 configure:10172: result: yes configure:10207: checking for sys/sysmacros.h configure:10214: result: yes configure:10231: checking whether code in malloc'ed memory is executable configure:10267: i686-uhu-linux-gcc -o conftest -O2 -march=i686 -mtune=generic conftest.c >&5 configure:10270: $? = 0 configure:10272: ./conftest ./configure: line 10273: 5036 Segmentation fault (core dumped) ./conftest$ac_exeext configure:10275: $? = 139 configure: program exited with status 139 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #ifndef __i386__ | #define __i386__ 1 | #endif | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define return_void return | #define STDC_HEADERS 1 | #define HAVE_UNISTD_H 1 | #define HAVE_GETPAGESIZE | #define RETGETPAGESIZETYPE int | #define HAVE_SYS_FILE_H 1 | #define HAVE_MMAP | #define HAVE_MMAP_ANON | #define HAVE_MMAP_ANONYMOUS | #define HAVE_MMAP_DEVZERO | #define HAVE_MPROTECT 1 | #define HAVE_WORKING_MPROTECT | #define HAVE_SYS_SHM_H 1 | #define HAVE_SYS_IPC_H 1 | #define HAVE_SHM | #define HAVE_SYS_SYSMACROS_H 1 | /* end confdefs.h. */ | | #include | /* declare malloc() */ | #include | int fun () { return 31415926; } | int main () | { long size = (char*)&main - (char*)&fun; | char* funcopy = (char*) malloc(size); | int i; | for (i = 0; i < size; i++) { funcopy[i] = ((char*)&fun)[i]; } | exit(!((*(int(*)())funcopy)() == 31415926)); | } configure:10295: result: no configure:10725: creating ./config.status ## ---------------------- ## ## Running config.status. ## ## ---------------------- ## This file was extended by config.status, which was generated by GNU Autoconf 2.59. Invocation command line was CONFIG_FILES = CONFIG_HEADERS = CONFIG_LINKS = CONFIG_COMMANDS = $ ./config.status on hp04 config.status:666: creating Makefile config.status:769: creating config.h ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_build=i686-uhu-linux-gnu ac_cv_build_alias=i686-uhu-linux ac_cv_c_compiler_gnu=yes ac_cv_env_CC_set= ac_cv_env_CC_value= ac_cv_env_CFLAGS_set=set ac_cv_env_CFLAGS_value='-O2 -march=i686 -mtune=generic ' ac_cv_env_CPPFLAGS_set= ac_cv_env_CPPFLAGS_value= ac_cv_env_CPP_set= ac_cv_env_CPP_value= ac_cv_env_LDFLAGS_set= ac_cv_env_LDFLAGS_value= ac_cv_env_build_alias_set=set ac_cv_env_build_alias_value=i686-uhu-linux ac_cv_env_host_alias_set=set ac_cv_env_host_alias_value=i686-uhu-linux ac_cv_env_target_alias_set= ac_cv_env_target_alias_value= ac_cv_exeext= ac_cv_func_mmap=yes ac_cv_func_mprotect=yes ac_cv_header_dlfcn_h=yes ac_cv_header_inttypes_h=yes ac_cv_header_memory_h=yes ac_cv_header_stdc=yes ac_cv_header_stdint_h=yes ac_cv_header_stdlib_h=yes ac_cv_header_string_h=yes ac_cv_header_strings_h=yes ac_cv_header_sys_file_h=yes ac_cv_header_sys_ipc_h=yes ac_cv_header_sys_mman_h=yes ac_cv_header_sys_shm_h=yes ac_cv_header_sys_stat_h=yes ac_cv_header_sys_sysmacros_h=yes ac_cv_header_sys_types_h=yes ac_cv_header_unistd_h=yes ac_cv_host=i686-uhu-linux-gnu ac_cv_host_alias=i686-uhu-linux ac_cv_objext=o ac_cv_prog_CC=i686-uhu-linux-gcc ac_cv_prog_CPP='i686-uhu-linux-gcc -E' ac_cv_prog_RANLIB=ranlib ac_cv_prog_ac_ct_STRIP=strip ac_cv_prog_cc_g=yes ac_cv_prog_cc_stdc= ac_cv_prog_egrep='grep -E' ac_cv_prog_gcc_traditional=no ac_cv_prog_make_make_set=yes cl_cv_c_return_void=yes cl_cv_c_return_void_form=return cl_cv_c_void=yes cl_cv_codeexec=no cl_cv_decl_O_RDWR_fcntl_h=yes cl_cv_func_getpagesize=yes cl_cv_func_mmap_anon=yes cl_cv_func_mmap_anonymous=yes cl_cv_func_mmap_devzero=yes cl_cv_func_mmap_works=yes cl_cv_func_mprotect_works=yes cl_cv_func_vm=no cl_cv_header_stdc=yes cl_cv_path_install='/bin/install -c' cl_cv_prog_LN=ln cl_cv_prog_LN_S='ln -s' cl_cv_prog_as_underscore=no cl_cv_prog_cc_gcc=yes cl_cv_prog_cp='cp -p' cl_cv_proto_getpagesize='extern int getpagesize (void);' cl_cv_proto_getpagesize_ret=int cl_cv_sys_shm_works=yes lt_cv_archive_cmds_need_lc=no lt_cv_compiler_c_o=yes lt_cv_compiler_o_lo=yes lt_cv_deplibs_check_method=pass_all lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file='/lib/libc.so.6 /lib/libc-2.19.so' lt_cv_global_symbol_to_c_name_address='sed -n -e '\''s/^: \([^ ]*\) $/ {\"\1\", (lt_ptr) 0},/p'\'' -e '\''s/^[BCDEGRST] \([^ ]*\) \([^ ]*\)$/ {"\2", (lt_ptr) \&\2},/p'\''' lt_cv_global_symbol_to_cdecl='sed -n -e '\''s/^. .* \(.*\)$/extern char \1;/p'\''' lt_cv_ld_reload_flag=-r lt_cv_path_LD=/usr/bin/ld lt_cv_path_NM=nm lt_cv_path_SED=/bin/sed lt_cv_prog_cc_can_build_shared=yes lt_cv_prog_cc_no_builtin= lt_cv_prog_cc_pic=' -fPIC' lt_cv_prog_cc_pic_works=yes lt_cv_prog_cc_shlib= lt_cv_prog_cc_static=-static lt_cv_prog_cc_static_works=yes lt_cv_prog_cc_wl=-Wl, lt_cv_prog_gnu_ld=yes lt_cv_sys_global_symbol_pipe='sed -n -e '\''s/^.*[ ]\([ABCDGISTW][ABCDGISTW]*\)[ ][ ]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p'\''' ## ----------------- ## ## Output variables. ## ## ----------------- ## AS_UNDERSCORE='false' CC='i686-uhu-linux-gcc' CC_GCC='true' CFLAGS='-O2 -march=i686 -mtune=generic ' CP='cp -p' CPP='i686-uhu-linux-gcc -E' CPPFLAGS='' CPU_OBJECTS='' DEFS='-DHAVE_CONFIG_H' ECHO='echo' ECHO_C='' ECHO_N='-n' ECHO_T='' EGREP='grep -E' EXEEXT='' GCC_X_NONE='-x none' INSTALL='/bin/install -c' INSTALL_DATA='$(INSTALL) -m 644' INSTALL_PROGRAM='$(INSTALL)' LDFLAGS='' LIBOBJS='' LIBS='' LIBTOOL='$(SHELL) $(top_builddir)/libtool' LN='ln' LN_S='ln -s' LTLIBOBJS='' OBJEXT='o' PACKAGE_BUGREPORT='' PACKAGE_NAME='' PACKAGE_STRING='' PACKAGE_TARNAME='' PACKAGE_VERSION='' PATH_SEPARATOR=':' RANLIB='ranlib' SET_MAKE='' SHELL='/bin/sh' STRIP='strip' ac_ct_CC='' ac_ct_RANLIB='' ac_ct_STRIP='strip' bindir='${exec_prefix}/bin' build='i686-uhu-linux-gnu' build_alias='i686-uhu-linux' build_cpu='i686' build_os='linux-gnu' build_vendor='uhu' datadir='${prefix}/share' exec_prefix='${prefix}' host='i686-uhu-linux-gnu' host_alias='i686-uhu-linux' host_cpu='i386' host_os='linux-gnu' host_vendor='uhu' includedir='${prefix}/include' infodir='/usr/share/info' libdir='${exec_prefix}/lib' libexecdir='${exec_prefix}/libexec' localstatedir='/var' mandir='/usr/share/man' oldincludedir='/usr/include' prefix='/usr' program_transform_name='s,x,x,' sbindir='${exec_prefix}/sbin' sharedstatedir='${prefix}/com' sysconfdir='/etc' target_alias='' ## ----------- ## ## confdefs.h. ## ## ----------- ## #define HAVE_DLFCN_H 1 #define HAVE_GETPAGESIZE #define HAVE_INTTYPES_H 1 #define HAVE_MEMORY_H 1 #define HAVE_MMAP #define HAVE_MMAP_ANON #define HAVE_MMAP_ANONYMOUS #define HAVE_MMAP_DEVZERO #define HAVE_MPROTECT 1 #define HAVE_SHM #define HAVE_STDINT_H 1 #define HAVE_STDLIB_H 1 #define HAVE_STRINGS_H 1 #define HAVE_STRING_H 1 #define HAVE_SYS_FILE_H 1 #define HAVE_SYS_IPC_H 1 #define HAVE_SYS_SHM_H 1 #define HAVE_SYS_STAT_H 1 #define HAVE_SYS_SYSMACROS_H 1 #define HAVE_SYS_TYPES_H 1 #define HAVE_UNISTD_H 1 #define HAVE_UNISTD_H 1 #define HAVE_WORKING_MPROTECT #define PACKAGE_BUGREPORT "" #define PACKAGE_NAME "" #define PACKAGE_STRING "" #define PACKAGE_TARNAME "" #define PACKAGE_VERSION "" #define RETGETPAGESIZETYPE int #define STDC_HEADERS 1 #define STDC_HEADERS 1 #define __i386__ 1 #define return_void return #endif #ifndef __i386__ configure: exit 0