This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. configure:801: checking for gcc configure:914: checking whether the C compiler (gcc ) works configure:930: gcc -o conftest conftest.c 1>&5 configure:956: checking whether the C compiler (gcc ) is a cross-compiler configure:961: checking whether we are using GNU C configure:970: gcc -E conftest.c configure:989: checking whether gcc accepts -g configure:1021: checking whether -fomit-frame-pointer is safe configure:1035: checking whether an include prefix is needed configure:1050: gcc -c -Werror -I/usr/include conftest.c 1>&5 configure:1069: checking how to run the C preprocessor configure:1090: gcc -E conftest.c >/dev/null 2>conftest.out configure:1149: checking whether linker works with -s option configure:1164: gcc -o conftest -s conftest.c 1>&5 configure:1182: checking for ranlib configure:1221: checking for a BSD compatible install configure:1274: checking whether make sets ${MAKE} configure:1301: checking whether ln -s works configure:1325: checking for ldconfig configure:1362: checking for makeinfo configure:1399: checking for install-info configure:1443: checking for asm support configure:1467: gcc -c conftest.c 1>&5 configure:1505: checking for MMX support configure:1531: gcc -c conftest.c 1>&5 configure:1565: checking for SSE support configure:1590: gcc -c conftest.c 1>&5 configure:1615: checking for asm prefix before symbols configure:1629: gcc -o conftest conftest.c 1>&5 /var/tmp/portage/allegro-4.0.3/temp/cc6QBUgI.o(.text+0x1d): In function `main': : undefined reference to `test_for_underscore' collect2: ld returned 1 exit status configure: failed program was: #line 1620 "configure" #include "confdefs.h" int test_for_underscore(void); asm (".globl _test_for_underscore\n" "_test_for_underscore:"); int main() { test_for_underscore (); ; return 0; } configure:1650: gcc -o conftest conftest.c 1>&5 configure:1676: checking whether byte ordering is bigendian configure:1694: gcc -c conftest.c 1>&5 configure:1709: gcc -c conftest.c 1>&5 configure: In function `main': configure:1704: error: `not' undeclared (first use in this function) configure:1704: error: (Each undeclared identifier is reported only once configure:1704: error: for each function it appears in.) configure:1704: error: parse error before "big" configure: failed program was: #line 1698 "configure" #include "confdefs.h" #include #include int main() { #if BYTE_ORDER != BIG_ENDIAN not big endian #endif ; return 0; } configure:1778: checking for constructor attribute configure:1800: gcc -o conftest conftest.c 1>&5 configure:1838: checking for dlfcn.h configure:1848: gcc -E conftest.c >/dev/null 2>conftest.out configure:1869: checking whether -export-dynamic linker flag is supported configure:1883: gcc -o conftest -Wl,-export-dynamic conftest.c 1>&5 configure:1900: checking for dlopen in -ldl configure:1919: gcc -o conftest conftest.c -ldl 1>&5 configure:2029: checking for sched_yield configure:2039: gcc -o conftest -s -Wl,-export-dynamic conftest.c -ldl 1>&5 configure:2158: checking for soundcard.h configure:2168: gcc -E conftest.c >/dev/null 2>conftest.out configure:2164:23: soundcard.h: No such file or directory configure: failed program was: #line 2163 "configure" #include "confdefs.h" #include configure:2198: checking for sys/soundcard.h configure:2208: gcc -E conftest.c >/dev/null 2>conftest.out configure:2238: checking for machine/soundcard.h configure:2248: gcc -E conftest.c >/dev/null 2>conftest.out configure:2244:31: machine/soundcard.h: No such file or directory configure: failed program was: #line 2243 "configure" #include "confdefs.h" #include configure:2278: checking for linux/soundcard.h configure:2288: gcc -E conftest.c >/dev/null 2>conftest.out configure:2334: checking for supported ALSA version for digital sound configure:2347: gcc -o conftest -s -Wl,-export-dynamic conftest.c -ldl 1>&5 In file included from configure:2343: /usr/include/sys/asoundlib.h:1:2: warning: #warning This header is deprecated, use instead. configure: failed program was: #line 2342 "configure" #include "confdefs.h" #include int main (void) { return SND_LIB_MAJOR != 0 || SND_LIB_MINOR != 5; } configure:2385: checking for supported ALSA version for MIDI configure:2398: gcc -o conftest -s -Wl,-export-dynamic conftest.c -ldl 1>&5 In file included from configure:2394: /usr/include/sys/asoundlib.h:1:2: warning: #warning This header is deprecated, use instead. configure: failed program was: #line 2393 "configure" #include "confdefs.h" #include int main (void) { return SND_LIB_MAJOR != 0 || SND_LIB_MINOR != 5; } configure:2526: checking for artsc-config configure:2564: checking for arts_init configure:2573: gcc -o conftest -I/usr/kde/3.2/include/artsc -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -s -Wl,-export-dynamic conftest.c -L/usr/kde/3.2/lib -ldl -lartsc -lpthread -lgmodule-2.0 -ldl -lgthread-2.0 -lglib-2.0 -ldl 1>&5 configure:2615: checking for soundcard.h configure:2655: checking for sys/soundcard.h configure:2695: checking for machine/soundcard.h configure:2735: checking for linux/soundcard.h configure:2818: checking for X configure:3064: checking for XMissingExtension in -lXext configure:3083: gcc -o conftest -I/usr/kde/3.2/include/artsc -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/X11R6/include -L/usr/X11R6/lib -s -Wl,-export-dynamic conftest.c -lXext -lX11 -ldl 1>&5 configure:3106: checking for XShmQueryExtension in -lXext configure:3125: gcc -o conftest -I/usr/kde/3.2/include/artsc -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/X11R6/include -L/usr/X11R6/lib -s -Wl,-export-dynamic conftest.c -lXext -lXext -lX11 -ldl 1>&5 configure:3152: checking for XF86VidModeQueryExtension in -lXxf86vm configure:3171: gcc -o conftest -I/usr/kde/3.2/include/artsc -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/X11R6/include -L/usr/X11R6/lib -s -Wl,-export-dynamic conftest.c -lXxf86vm -lXext -lX11 -ldl 1>&5 configure:3199: checking for XF86DGAQueryExtension in -lXxf86dga configure:3218: gcc -o conftest -I/usr/kde/3.2/include/artsc -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/X11R6/include -L/usr/X11R6/lib -s -Wl,-export-dynamic conftest.c -lXxf86dga -lXxf86vm -lXext -lX11 -ldl 1>&5 configure:3246: checking for XDGAQueryExtension in -lXxf86dga configure:3265: gcc -o conftest -I/usr/kde/3.2/include/artsc -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/X11R6/include -L/usr/X11R6/lib -s -Wl,-export-dynamic conftest.c -lXxf86dga -lXxf86dga -lXxf86vm -lXext -lX11 -ldl 1>&5 configure:3359: checking for MAP_FAILED configure:3372: gcc -c -I/usr/kde/3.2/include/artsc -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/X11R6/include conftest.c 1>&5 configure:3409: checking for sys/io.h configure:3419: gcc -E -I/usr/X11R6/include conftest.c >/dev/null 2>conftest.out configure:3409: checking for linux/joystick.h configure:3419: gcc -E -I/usr/X11R6/include conftest.c >/dev/null 2>conftest.out configure:3457: checking for linux/fb.h configure:3467: gcc -E -I/usr/X11R6/include conftest.c >/dev/null 2>conftest.out configure:3491: gcc -c -I/usr/kde/3.2/include/artsc -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/X11R6/include conftest.c 1>&5 configure:3521: checking for vga.h configure:3531: gcc -E -I/usr/X11R6/include conftest.c >/dev/null 2>conftest.out configure:3548: checking for vga_init in -lvga configure:3567: gcc -o conftest -I/usr/kde/3.2/include/artsc -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/X11R6/include -L/usr/X11R6/lib -s -Wl,-export-dynamic conftest.c -lvga -lXxf86dga -lXxf86vm -lXext -lX11 -ldl 1>&5 configure:3591: checking for vga_version in vga.h configure:3603: gcc -c -I/usr/kde/3.2/include/artsc -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/X11R6/include conftest.c 1>&5 configure:3643: checking for pthread.h configure:3653: gcc -E -I/usr/X11R6/include conftest.c >/dev/null 2>conftest.out configure:3670: checking for pthread_create in -lpthread configure:3689: gcc -o conftest -I/usr/kde/3.2/include/artsc -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/X11R6/include -L/usr/X11R6/lib -s -Wl,-export-dynamic conftest.c -lpthread -lXxf86dga -lXxf86vm -lXext -lX11 -ldl 1>&5 configure:3762: checking for ANSI C header files configure:3775: gcc -E -I/usr/X11R6/include conftest.c >/dev/null 2>conftest.out configure:3842: gcc -o conftest -I/usr/kde/3.2/include/artsc -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/X11R6/include -L/usr/X11R6/lib -s -Wl,-export-dynamic conftest.c -lm -lpthread -lXxf86dga -lXxf86vm -lXext -lX11 -ldl 1>&5 configure:3870: checking for dirent.h that defines DIR configure:3883: gcc -c -I/usr/kde/3.2/include/artsc -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/X11R6/include conftest.c 1>&5 configure:3908: checking for opendir in -ldir configure:3927: gcc -o conftest -I/usr/kde/3.2/include/artsc -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/X11R6/include -L/usr/X11R6/lib -s -Wl,-export-dynamic conftest.c -ldir -lm -lpthread -lXxf86dga -lXxf86vm -lXext -lX11 -ldl 1>&5 /usr/lib/gcc/i686-pc-linux-gnu/3.4.1/../../../../i686-pc-linux-gnu/bin/ld: cannot find -ldir collect2: ld returned 1 exit status configure: failed program was: #line 3916 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char opendir(); int main() { opendir() ; return 0; } configure:3991: checking whether time.h and sys/time.h may both be included configure:4005: gcc -c -I/usr/kde/3.2/include/artsc -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/X11R6/include conftest.c 1>&5 configure:4029: checking for fcntl.h configure:4039: gcc -E -I/usr/X11R6/include conftest.c >/dev/null 2>conftest.out configure:4029: checking for limits.h configure:4039: gcc -E -I/usr/X11R6/include conftest.c >/dev/null 2>conftest.out configure:4029: checking for sys/time.h configure:4039: gcc -E -I/usr/X11R6/include conftest.c >/dev/null 2>conftest.out configure:4029: checking for unistd.h configure:4039: gcc -E -I/usr/X11R6/include conftest.c >/dev/null 2>conftest.out configure:4029: checking for sys/utsname.h configure:4039: gcc -E -I/usr/X11R6/include conftest.c >/dev/null 2>conftest.out configure:4067: checking for working const configure:4121: gcc -c -I/usr/kde/3.2/include/artsc -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/X11R6/include conftest.c 1>&5 configure:4142: checking for inline configure:4156: gcc -c -I/usr/kde/3.2/include/artsc -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/X11R6/include conftest.c 1>&5 configure:4182: checking for size_t configure:4215: checking whether struct tm is in sys/time.h or time.h configure:4228: gcc -c -I/usr/kde/3.2/include/artsc -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/X11R6/include conftest.c 1>&5 configure:4250: checking for 8-bit clean memcmp configure:4268: gcc -o conftest -I/usr/kde/3.2/include/artsc -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/X11R6/include -L/usr/X11R6/lib -s -Wl,-export-dynamic conftest.c -lm -lpthread -lXxf86dga -lXxf86vm -lXext -lX11 -ldl 1>&5 configure:4289: checking for stdlib.h configure:4299: gcc -E -I/usr/X11R6/include conftest.c >/dev/null 2>conftest.out configure:4289: checking for unistd.h configure:4289: checking for sys/stat.h configure:4299: gcc -E -I/usr/X11R6/include conftest.c >/dev/null 2>conftest.out configure:4289: checking for sys/types.h configure:4299: gcc -E -I/usr/X11R6/include conftest.c >/dev/null 2>conftest.out configure:4328: checking for getpagesize configure:4356: gcc -o conftest -I/usr/kde/3.2/include/artsc -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/X11R6/include -L/usr/X11R6/lib -s -Wl,-export-dynamic conftest.c -lm -lpthread -lXxf86dga -lXxf86vm -lXext -lX11 -ldl 1>&5 configure:4381: checking for working mmap configure:4542: gcc -o conftest -I/usr/kde/3.2/include/artsc -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/X11R6/include -L/usr/X11R6/lib -s -Wl,-export-dynamic conftest.c -lm -lpthread -lXxf86dga -lXxf86vm -lXext -lX11 -ldl 1>&5 configure:4473: error: conflicting types for 'malloc' configure:4473: error: conflicting types for 'malloc' configure: failed program was: #line 4389 "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 #if HAVE_SYS_TYPES_H # include #endif #if HAVE_STDLIB_H # include #endif #if HAVE_SYS_STAT_H # include #endif #if HAVE_UNISTD_H # include #endif /* This mess was copied from the GNU getpagesize.h. */ #ifndef HAVE_GETPAGESIZE /* 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:4565: checking return type of signal handlers configure:4587: gcc -c -I/usr/kde/3.2/include/artsc -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/X11R6/include conftest.c 1>&5 configure:4606: checking for vprintf configure:4634: gcc -o conftest -I/usr/kde/3.2/include/artsc -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/X11R6/include -L/usr/X11R6/lib -s -Wl,-export-dynamic conftest.c -lm -lpthread -lXxf86dga -lXxf86vm -lXext -lX11 -ldl 1>&5 configure:4618: warning: conflicting types for built-in function 'vprintf' configure:4713: checking for memcmp configure:4741: gcc -o conftest -I/usr/kde/3.2/include/artsc -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/X11R6/include -L/usr/X11R6/lib -s -Wl,-export-dynamic conftest.c -lm -lpthread -lXxf86dga -lXxf86vm -lXext -lX11 -ldl 1>&5 configure:4725: warning: conflicting types for built-in function 'memcmp' configure:4713: checking for mkstemp configure:4741: gcc -o conftest -I/usr/kde/3.2/include/artsc -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/X11R6/include -L/usr/X11R6/lib -s -Wl,-export-dynamic conftest.c -lm -lpthread -lXxf86dga -lXxf86vm -lXext -lX11 -ldl 1>&5 configure:4713: checking for stricmp configure:4741: gcc -o conftest -I/usr/kde/3.2/include/artsc -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/X11R6/include -L/usr/X11R6/lib -s -Wl,-export-dynamic conftest.c -lm -lpthread -lXxf86dga -lXxf86vm -lXext -lX11 -ldl 1>&5 /var/tmp/portage/allegro-4.0.3/temp/ccQd828r.o(.text+0x1d): In function `main': : undefined reference to `stricmp' collect2: ld returned 1 exit status configure: failed program was: #line 4718 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char stricmp(); below. */ #include /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char stricmp(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_stricmp) || defined (__stub___stricmp) choke me #else stricmp(); #endif ; return 0; } configure:4713: checking for strlwr configure:4741: gcc -o conftest -I/usr/kde/3.2/include/artsc -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/X11R6/include -L/usr/X11R6/lib -s -Wl,-export-dynamic conftest.c -lm -lpthread -lXxf86dga -lXxf86vm -lXext -lX11 -ldl 1>&5 /var/tmp/portage/allegro-4.0.3/temp/cc2AodeW.o(.text+0x1d): In function `main': : undefined reference to `strlwr' collect2: ld returned 1 exit status configure: failed program was: #line 4718 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char strlwr(); below. */ #include /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char strlwr(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_strlwr) || defined (__stub___strlwr) choke me #else strlwr(); #endif ; return 0; } configure:4713: checking for strupr configure:4741: gcc -o conftest -I/usr/kde/3.2/include/artsc -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/X11R6/include -L/usr/X11R6/lib -s -Wl,-export-dynamic conftest.c -lm -lpthread -lXxf86dga -lXxf86vm -lXext -lX11 -ldl 1>&5 /var/tmp/portage/allegro-4.0.3/temp/ccsF1qDi.o(.text+0x1d): In function `main': : undefined reference to `strupr' collect2: ld returned 1 exit status configure: failed program was: #line 4718 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char strupr(); below. */ #include /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char strupr(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_strupr) || defined (__stub___strupr) choke me #else strupr(); #endif ; return 0; }