This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. configure:639: checking host system type configure:660: checking target system type configure:678: checking build system type configure:717: checking for a BSD compatible install configure:770: checking whether build environment is sane configure:827: checking whether make sets ${MAKE} configure:873: checking for working aclocal configure:886: checking for working autoconf configure:899: checking for working automake configure:912: checking for working autoheader configure:925: checking for working makeinfo configure:940: checking whether to enable maintainer-specific portions of Makefiles configure:999: checking for gcc configure:1078: checking whether we are using GNU C configure:1087: cc -E conftest.c configure:1102: checking whether cc accepts -g configure:1318: checking for ld used by GCC configure:1386: checking if the linker (ld) is GNU ld configure:1403: checking for ld option to reload object files configure:1415: checking for BSD-compatible nm configure:1453: checking whether ln -s works configure:1474: checking how to recognise dependant libraries configure:1647: checking for object suffix configure:1653: cc -c -fno-common conftest.c 1>&5 configure:1816: checking for ranlib configure:1883: checking for strip ltconfig:678:checking for cc option to produce PIC ltconfig:687:checking that cc PIC flag -fPIC -DPIC works. ltconfig:697: cc -c -fno-common -fPIC -DPIC -DPIC conftest.c 1>&5 ltconfig:749: checking if cc static flag -static works ltconfig:758: cc -o conftest -fno-common -static conftest.c 1>&5 ld: Undefined symbols: __cthread_init_routine _errno _exit _mach_init_routine ltconfig:780: finding the maximum length of command line arguments ltconfig:@lineno@: result: 98305 ltconfig:833: checking if cc supports -c -o file.o ltconfig:834: cc -c -fno-common -o out/conftest2.o conftest.c 1>&5 ltconfig:887: checking if cc supports -fno-rtti -fno-exceptions ltconfig:888: cc -c -fno-common -fno-rtti -fno-exceptions -c conftest.c conftest.c 1>&5 ltconfig:1431: checking if global_symbol_pipe works ltconfig:1432: cc -c -fno-common conftest.c 1>&5 ltconfig:1435: eval "nm conftest.o | sed -n -e 's/^.*[ ]\([BCDEGRST][BCDEGRST]*\)[ ][ ]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' > conftest.nm" cannot find nm_test_var in conftest.nm ltconfig:1431: checking if global_symbol_pipe works ltconfig:1432: cc -c -fno-common conftest.c 1>&5 ltconfig:1435: eval "nm conftest.o | sed -n -e 's/^.*[ ]\([BCDEGRST][BCDEGRST]*\)[ ][ ]*\(_\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' > conftest.nm" ltconfig:1487: cc -o conftest -fno-common -fno-builtin conftest.c conftstm.o 1>&5 configure:2222: checking how to run the C preprocessor configure:2243: cc -E conftest.c >/dev/null 2>conftest.out configure:2325: checking for unistd.h configure:2335: cc -E conftest.c >/dev/null 2>conftest.out configure:2364: checking for getpagesize configure:2392: cc -o conftest -fno-common conftest.c 1>&5 configure:2417: checking for working mmap configure:2565: cc -o conftest -fno-common conftest.c 1>&5 In file included from /usr/include/sys/_endian.h:103, from /usr/include/i386/endian.h:92, from /usr/include/machine/endian.h:32, from /usr/include/sys/types.h:75, from configure:2448: /usr/local/include/stdint.h:162: error: conflicting types for `int8_t' /usr/include/i386/types.h:72: error: previous declaration of `int8_t' /usr/local/include/stdint.h:272: error: conflicting types for `uintptr_t' /usr/include/i386/types.h:99: error: previous declaration of `uintptr_t' configure: failed program was: #line 2425 "configure" #include "confdefs.h" /* Thanks to Mike Haertel and Jim Avera for this test. Here is a matrix of mmap possibilities: mmap private not fixed mmap private fixed at somewhere currently unmapped mmap private fixed at somewhere already mapped mmap shared not fixed mmap shared fixed at somewhere currently unmapped mmap shared fixed at somewhere already mapped For private mappings, we should verify that changes cannot be read() back from the file, nor mmap's back from the file at a different address. (There have been systems where private was not correctly implemented like the infamous i386 svr4.0, and systems where the VM page cache was not coherent with the filesystem buffer cache like early versions of FreeBSD and possibly contemporary NetBSD.) For shared mappings, we should conversely verify that changes get propogated back to all the places they're supposed to be. Grep wants private fixed already mapped. The main things grep needs to know about mmap are: * does it exist and is it safe to write into the mmap'd area * how to use it (BSD variants) */ #include #include #include /* This mess was copied from the GNU getpagesize.h. */ #ifndef HAVE_GETPAGESIZE # ifdef HAVE_UNISTD_H # include # endif /* Assume that all systems that can run configure have sys/param.h. */ # ifndef HAVE_SYS_PARAM_H # define HAVE_SYS_PARAM_H 1 # endif # ifdef _SC_PAGESIZE # define getpagesize() sysconf(_SC_PAGESIZE) # else /* no _SC_PAGESIZE */ # ifdef HAVE_SYS_PARAM_H # include # ifdef EXEC_PAGESIZE # define getpagesize() EXEC_PAGESIZE # else /* no EXEC_PAGESIZE */ # ifdef NBPG # define getpagesize() NBPG * CLSIZE # ifndef CLSIZE # define CLSIZE 1 # endif /* no CLSIZE */ # else /* no NBPG */ # ifdef NBPC # define getpagesize() NBPC # else /* no NBPC */ # ifdef PAGESIZE # define getpagesize() PAGESIZE # endif /* PAGESIZE */ # endif /* no NBPC */ # endif /* no NBPG */ # endif /* no EXEC_PAGESIZE */ # else /* no HAVE_SYS_PARAM_H */ # define getpagesize() 8192 /* punt totally */ # endif /* no HAVE_SYS_PARAM_H */ # endif /* no _SC_PAGESIZE */ #endif /* no HAVE_GETPAGESIZE */ #ifdef __cplusplus extern "C" { void *malloc(unsigned); } #else char *malloc(); #endif int main() { char *data, *data2, *data3; int i, pagesize; int fd; pagesize = getpagesize(); /* * First, make a file with some known garbage in it. */ data = malloc(pagesize); if (!data) exit(1); for (i = 0; i < pagesize; ++i) *(data + i) = rand(); umask(0); fd = creat("conftestmmap", 0600); if (fd < 0) exit(1); if (write(fd, data, pagesize) != pagesize) exit(1); close(fd); /* * Next, try to mmap the file at a fixed address which * already has something else allocated at it. If we can, * also make sure that we see the same garbage. */ fd = open("conftestmmap", O_RDWR); if (fd < 0) exit(1); data2 = malloc(2 * pagesize); if (!data2) exit(1); data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_FIXED, fd, 0L)) exit(1); for (i = 0; i < pagesize; ++i) if (*(data + i) != *(data2 + i)) exit(1); /* * Finally, make sure that changes to the mapped area * do not percolate back to the file as seen by read(). * (This is a bug on some variants of i386 svr4.0.) */ for (i = 0; i < pagesize; ++i) *(data2 + i) = *(data2 + i) + 1; data3 = malloc(pagesize); if (!data3) exit(1); if (read(fd, data3, pagesize) != pagesize) exit(1); for (i = 0; i < pagesize; ++i) if (*(data + i) != *(data3 + i)) exit(1); close(fd); unlink("conftestmmap"); exit(0); } configure:2590: checking for memcpy configure:2618: cc -o conftest -fno-common conftest.c 1>&5 configure:2602: warning: conflicting types for built-in function `memcpy' configure:2590: checking for strerror configure:2618: cc -o conftest -fno-common conftest.c 1>&5 configure:2696: checking for unistd.h