- 论坛徽章:
- 0
|
我在一台机器上安装HTTP2.2.15,步骤如下:
tar zvxf httpd-2.2.15.tar.gz
cd httpd-2.2.15
./configure --prefix=/usr/local/httpd --enbale-modules=so
make
在make时就报下面的错,我把前面部分省略了。
.............gcc -g -O2 -pthread -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/root/install/httpd-2.2.15/srclib/pcre -I. -I/root/install/httpd-2.2.15/os/unix -I/root/install/httpd-2.2.15/server/mpm/prefork -I/root/install/httpd-2.2.15/modules/http -I/root/install/httpd-2.2.15/modules/filters -I/root/install/httpd-2.2.15/modules/proxy -I/root/install/httpd-2.2.15/include -I/root/install/httpd-2.2.15/modules/generators -I/root/install/httpd-2.2.15/modules/mappers -I/root/install/httpd-2.2.15/modules/database -I/usr/local/svn/include/apr-1 -I/root/install/httpd-2.2.15/modules/proxy/../generators -I/root/install/httpd-2.2.15/modules/ssl -I/root/install/httpd-2.2.15/modules/dav/main -c /root/install/httpd-2.2.15/server/buildmark.c
/usr/local/svn/build-1/libtool --silent --mode=link gcc -g -O2 -pthread -o httpd modules.lo buildmark.o -export-dynamic server/libmain.la modules/aaa/libmod_authn_file.la modules/aaa/libmod_authn_default.la modules/aaa/libmod_authz_host.la modules/aaa/libmod_authz_groupfile.la modules/aaa/libmod_authz_user.la modules/aaa/libmod_authz_default.la modules/aaa/libmod_auth_basic.la modules/filters/libmod_include.la modules/filters/libmod_filter.la modules/loggers/libmod_log_config.la modules/metadata/libmod_env.la modules/metadata/libmod_setenvif.la modules/metadata/libmod_version.la modules/http/libmod_http.la modules/http/libmod_mime.la modules/generators/libmod_status.la modules/generators/libmod_autoindex.la modules/generators/libmod_asis.la modules/generators/libmod_cgi.la modules/mappers/libmod_negotiation.la modules/mappers/libmod_dir.la modules/mappers/libmod_actions.la modules/mappers/libmod_userdir.la modules/mappers/libmod_alias.la modules/mappers/libmod_so.la server/mpm/prefork/libprefork.la os/unix/libos.la -lm /root/install/httpd-2.2.15/srclib/pcre/libpcre.la /usr/local/svn/lib/libaprutil-1.la -lexpat /usr/local/svn/lib/libapr-1.la -luuid -lrt -lcrypt -lpthread -ldl
modules/aaa/.libs/libmod_authn_file.a(mod_authn_file.o)(.text+0x35f): In function `register_hooks':
/root/install/httpd-2.2.15/modules/aaa/mod_authn_file.c:166: undefined reference to `ap_register_provider'
modules/aaa/.libs/libmod_auth_basic.a(mod_auth_basic.o)(.text+0x91): In function `add_authn_provider':
/root/install/httpd-2.2.15/modules/aaa/mod_auth_basic.c:62: undefined reference to `ap_lookup_provider'
modules/aaa/.libs/libmod_auth_basic.a(mod_auth_basic.o)(.text+0x431): In function `authenticate_basic_user':
/root/install/httpd-2.2.15/modules/aaa/mod_auth_basic.c:213: undefined reference to `ap_lookup_provider'
modules/http/.libs/libmod_http.a(http_filters.o)(.text+0x2f): In function `bail_out_on_error':
/root/install/httpd-2.2.15/modules/http/http_filters.c:88: undefined reference to `ap_bucket_error_create'
modules/http/.libs/libmod_http.a(http_filters.o)(.text+0x48c): In function `ap_http_filter':
/root/install/httpd-2.2.15/modules/http/http_filters.c:554: undefined reference to `ap_bucket_error_create'
modules/http/.libs/libmod_http.a(http_filters.o)(.text+0x1665): In function `ap_http_header_filter':
/root/install/httpd-2.2.15/modules/http/http_filters.c:1132: undefined reference to `ap_bucket_type_error'
modules/http/.libs/libmod_http.a(http_filters.o)(.text+0x2104): In function `ap_http_outerror_filter':
/root/install/httpd-2.2.15/modules/http/http_filters.c:1605: undefined reference to `ap_bucket_type_error'
modules/http/.libs/libmod_http.a(chunk_filter.o)(.text+0x71): In function `ap_http_chunk_filter':
/root/install/httpd-2.2.15/modules/http/chunk_filter.c:76: undefined reference to `ap_bucket_type_error'
modules/http/.libs/libmod_http.a(byterange_filter.o)(.text+0x6aa): In function `ap_byterange_filter':
/root/install/httpd-2.2.15/modules/http/byterange_filter.c:289: undefined reference to `ap_bucket_error_create'
collect2: ld returned 1 exit status
make[1]: *** [httpd] 错误 1
make[1]: Leaving directory `/root/install/httpd-2.2.15'
make: *** [all-recursive] 错误 1
root@dbmaster:~/install/httpd-2.2.15#
config 输出如下:
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
Configuring Apache Portable Runtime library ...
checking for APR... yes
setting CC to "gcc"
setting CPP to "gcc -E"
setting CFLAGS to " -g -O2 -pthread"
setting CPPFLAGS to " -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE"
setting LDFLAGS to " "
Configuring Apache Portable Runtime Utility library...
checking for APR-util... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
configure: Configuring PCRE regular expression library
configuring package in srclib/pcre now
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for bcopy... yes
checking for memmove... yes
checking for strerror... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating pcre.h
config.status: creating pcre-config
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing default commands
root@install/httpd-2.2.15# apr-1-config --version
我觉得是APR的版本问题,但升级了还是不行,分开编译也不行。
请各位帮忙分析一下,问题在哪里?
1.3.8 |
|