apache编译过不去,请大家帮我!

apache编译过不去,请大家帮我!

/bin/sh /usr/local/src/apache/httpd-2.0.43/srclib/apr/libtool --silent
--mode=co
mpile gcc -g -O2 -pthread   -DHAVE_CONFIG_H -DLINUX=2 -D_REENTRANT
-D_XOPEN_SOUR
CE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE
-I/usr/local/src/apache/http
d-2.0.43/srclib/apr-util/include
-I/usr/local/src/apache/httpd-2.0.43/srclib/apr
-util/include/private
-I/usr/local/src/apache/httpd-2.0.43/srclib/apr/include
-I/usr/local/BerkeleyDB.4.1/include  -c apr_dbm_berkeleydb.c && touch
apr_dbm_be
rkeleydb.lo
apr_dbm_berkeleydb.c: In function `vt_db_open':
apr_dbm_berkeleydb.c:200: warning: passing arg 2 of pointer to function
from inc
ompatible pointer type
apr_dbm_berkeleydb.c:200: warning: passing arg 4 of pointer to function
makes po
inter from integer without a cast
apr_dbm_berkeleydb.c:200: too few arguments to function
make[4]: *** [apr_dbm_berkeleydb.lo] Error 1
make[4]: Leaving directory
`/usr/local/src/apache/httpd-2.0.43/srclib/apr-util/d
bm'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/usr/local/src/apache/httpd-2.0.43/srclib/apr-util/d
bm'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/usr/local/src/apache/httpd-2.0.43/srclib/apr-util'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/apache/httpd-2.0.43/srclib'
make: *** [all-recursive] Error 1
我的系统是redhat as5
换一个2。26我再试一下
但是这个只有mod_authz_host.so 没有mod_access.so模块。
模块问题,改成mod_authz_host.so,加上了
LoadModule authn_file_module modules/mod_authn_file.so

启动出错成了
[alert] getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
这个方法不行,换gcc3.43编译httpd-2.0.43
-I- -I. -Iada
-I/home/smcconne/work/crosstool-0.35/build/powerpc-405-linux-gnu/gcc-4.0.1-glibc-2.3.5/gcc-4.0.1/gcc/ada
/home/smcconne/work/crosstool-0.35/build/powerpc-405-linux-gnu/gcc-4.0.1-glibc-2.3.5/gcc-4.0.1/gcc/ada/a-except.adb
-o ada/a-except.o
s-traent.ads:61:01: (style) blank lines not allowed at end of file
a-exexda.adb:154:01: (style) multiple blank lines
a-exextr.adb:192:01: (style) multiple blank lines
make[1]: *** [ada/a-except.o] Error 1
make[1]: Leaving directory
`/home/smcconne/work/crosstool-0.35/build/powerpc-405-linux-gnu/gcc-4.0.1-glibc-2.3.5/build-gcc/gcc'
make: *** [all-gcc] Error 2
不用ada语言 --enable-language=c,c++
在别的机器上编译好,拷贝过来。告一段落。下一步是tomcat
楼主太不幸了