我的config.log文件内容如下:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
configure:2162: checking for Cygwin environment
configure:2178: cc -c conftest.c 1>&5
configure: In function `main':
configure:2174: `__CYGWIN32__' undeclared (first use in this function)
configure:2174: (Each undeclared identifier is reported only once
configure:2174: for each function it appears in.)
configure: failed program was:
#line 2167 "configure"
#include "confdefs.h"
int main() {
#ifndef __CYGWIN__
#define __CYGWIN__ __CYGWIN32__
#endif
return __CYGWIN__;
; return 0; }
configure:2195: checking for mingw32 environment
configure:2207: cc -c conftest.c 1>&5
configure: In function `main':
configure:2203: `__MINGW32__' undeclared (first use in this function)
configure:2203: (Each undeclared identifier is reported only once
configure:2203: for each function it appears in.)
configure: failed program was:
#line 2200 "configure"
#include "confdefs.h"
int main() {
return __MINGW32__;
; return 0; }
configure:2226: checking for egrep
configure:2241: checking for a sed that does not truncate output
configure:2361: checking host system type
configure:2382: checking target system type
configure:2480: checking for gcc
configure:2593: checking whether the C compiler (gcc ) works
configure:2609: gcc -o conftest conftest.c 1>&5
configure:2635: checking whether the C compiler (gcc ) is a cross-compiler
configure:2640: checking whether we are using GNU C
configure:2649: gcc -E conftest.c
configure:2668: checking whether gcc accepts -g
configure:2701: checking whether gcc and cc understand -c and -o together
configure:2716: gcc -c conftest.c -o conftest.o 1>&5
configure:2717: gcc -c conftest.c -o conftest.o 1>&5
configure:2722: cc -c conftest.c 1>&5
configure:2724: cc -c conftest.c -o conftest.o 1>&5
configure:2725: cc -c conftest.c -o conftest.o 1>&5
configure:2752: checking how to run the C preprocessor
configure:2773: gcc -E conftest.c >/dev/null 2>conftest.out
configure:2832: checking for AIX
configure:2856: checking whether ln -s works
configure:2888: checking if compiler supports -R
configure:2903: gcc -o conftest -g -O2 conftest.c -R /usr/lib 1>&5
gcc: unrecognized option `-R'
/usr/lib: file not recognized: Is a directory
collect2: ld returned 1 exit status
configure: failed program was:
#line 2896 "configure"
#include "confdefs.h"
int main() {
; return 0; }
configure:2921: checking if compiler supports -Wl,-rpath,
configure:2936: gcc -o conftest -g -O2 conftest.c -Wl,-rpath,/usr/lib 1>&5
configure:2962: checking for re2c
configure:3022: checking for gawk
configure:3082: checking for bison
configure:3122: checking for bison version
configure:3163: checking for flex
configure:3197: checking for yywrap in -lfl
configure:3216: gcc -o conftest -g -O2 conftest.c -lfl 1>&5
configure:3240: checking lex output file root
configure:3261: checking whether yytext is a pointer
configure:3280: gcc -o conftest -g -O2 conftest.c -lfl 1>&5
configure:3304: checking for working const
configure:3358: gcc -c -g -O2 conftest.c 1>&5
configure:3384: checking for flex version
configure:3607: checking whether to force non-PIC code in shared modules
configure:3703: gcc -o conftest -g -O2 conftest.c 1>&5
/tmp/ccjurfkq.o(.text+0x20): In function `main':
/usr/local/php-5.1.6/configure:3698: undefined reference to `pthread_mutexattr_init'
/tmp/ccjurfkq.o(.text+0x34):/usr/local/php-5.1.6/configure:3699: undefined reference to `pthread_create'
collect2: ld returned 1 exit status
configure: failed program was:
#line 3685 "configure"
#include "confdefs.h"
#include <pthread.h>
#include <stddef.h>
void *thread_routine(void *data) {
return data;
}
int main() {
pthread_t thd;
pthread_mutexattr_t mattr;
int data = 1;
pthread_mutexattr_init(&mattr);
return pthread_create(&thd, NULL, thread_routine, &data);
}
configure:3723: checking for pthreads_cflags
configure:3763: gcc -o conftest -g -O2 -kthread conftest.c 1>&5
gcc: unrecognized option `-kthread'
/tmp/cc22FMRJ.o(.text+0x20): In function `main':
/usr/local/php-5.1.6/configure:3758: undefined reference to `pthread_mutexattr_init'
/tmp/cc22FMRJ.o(.text+0x34):/usr/local/php-5.1.6/configure:3759: undefined reference to `pthread_create'
collect2: ld returned 1 exit status
configure: failed program was:
#line 3745 "configure"
#include "confdefs.h"
#include <pthread.h>
#include <stddef.h>
void *thread_routine(void *data) {
return data;
}
int main() {
pthread_t thd;
pthread_mutexattr_t mattr;
int data = 1;
pthread_mutexattr_init(&mattr);
return pthread_create(&thd, NULL, thread_routine, &data);
}
configure:3763: gcc -o conftest -g -O2 -pthread conftest.c 1>&5
configure:3793: checking for pthreads_lib
configure:3942: checking for AOLserver support
configure:4185: checking for Apache 1.x module support via DSO through APXS
configure:4490: checking for Apache 1.x module support
configure:5333: checking for mod_charset compatibility option
configure:5470: checking for Apache 2.0 filter-module support via DSO through APXS
configure:6300: checking for Apache 2.0 handler-module support via DSO through APXS