solaris编译apache出错
我先下载了httpd-2.0.54.tar.gz,然后用gzip解压
然后tar,然后到目录中./configure --prefix=/export/home/myname/apache --enable-module=so
然后make,出现错误
Making all in srclib
Making all in apr
Making all in strings
/bin/bash /export/home/myname/apache/httpd-2.0.54/srclib/apr/libtool --silent --mode=compile cc -g -DHAVE_CONFIG_H -DSOLARIS2=8 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -I../include -I../include/arch/unix -c apr_cpystrn.c && touch apr_cpystrn.lo
"../include/apr_thread_mutex.h", line 100: invalid token: ##
"../include/apr_thread_mutex.h", line 100: undefined or not a type: apr_
"../include/apr_thread_mutex.h", line 100: syntax error before or at: thread_mutex
"../include/apr_thread_mutex.h", line 100: invalid token: ##
"../include/apr_thread_mutex.h", line 100: undefined or not a type: thread_mutex
"../include/apr_thread_mutex.h", line 100: invalid token: ##
"../include/apr_thread_mutex.h", line 100: syntax error before or at: thread_mutex
"../include/apr_thread_mutex.h", line 100: warning: undefined or missing type for: thread_mutex
"../include/apr_thread_mutex.h", line 100: invalid token: ##
"../include/apr_thread_mutex.h", line 100: invalid token: ##
"../include/apr_thread_mutex.h", line 100: warning: old-style declaration or incorrect type for: _pool_get
*** Error code 1
make: Fatal error: Command failed for target `apr_cpystrn.lo'
Current working directory /export/home/myname/apache/httpd-2.0.54/srclib/apr/strings
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory /export/home/myname/apache/httpd-2.0.54/srclib/apr/strings
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory /export/home/myname/apache/httpd-2.0.54/srclib/apr
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory /export/home/myname/apache/httpd-2.0.54/srclib
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
应该怎么解决??!