Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

有人在RH9下成功编译安装apache2.2.3为DSO模式吗?

[复制链接]
up1m 发表于 2006-11-4 21:55:40 | 显示全部楼层 |阅读模式
静态编译可以成功,但是DSO模式make的时候始终报错...

CC="gcc" CHOST="i686-pc-linux-gnu" CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer" CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer" ./configure --prefix=/etc/httpd --enable-MODULE=shared --enable-deflate --enable-expires --enable-headers --with-included-apr --enable-mime-magic --enable-rewrite --enable-vhost-alias


make[1]: Entering directory `/root/200611/httpd-2.2.3/support'
make[2]: Entering directory `/root/200611/httpd-2.2.3/support'
/root/200611/httpd-2.2.3/srclib/apr/libtool --silent --mode=compile gcc -pthread  -march=pentium3 -O3 -pipe -fomit-frame-pointer  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE    -I/root/200611/httpd-2.2.3/srclib/pcre -I. -I/root/200611/httpd-2.2.3/os/unix -I/root/200611/httpd-2.2.3/server/mpm/prefork -I/root/200611/httpd-2.2.3/modules/http -I/root/200611/httpd-2.2.3/modules/filters -I/root/200611/httpd-2.2.3/modules/proxy -I/root/200611/httpd-2.2.3/include -I/root/200611/httpd-2.2.3/modules/generators -I/root/200611/httpd-2.2.3/modules/mappers -I/root/200611/httpd-2.2.3/modules/database -I/root/200611/httpd-2.2.3/srclib/apr/include -I/root/200611/httpd-2.2.3/srclib/apr-util/include -I/root/200611/httpd-2.2.3/srclib/apr-util/xml/expat/lib -I/root/200611/httpd-2.2.3/modules/proxy/../generators -I/root/200611/httpd-2.2.3/modules/ssl -I/root/200611/httpd-2.2.3/modules/dav/main  -prefer-non-pic -static -c htpasswd.c && touch htpasswd.lo
/root/200611/httpd-2.2.3/srclib/apr/libtool --silent --mode=link gcc -pthread  -march=pentium3 -O3 -pipe -fomit-frame-pointer   -L/root/200611/httpd-2.2.3/srclib/apr-util/xml/expat/lib   -o htpasswd  htpasswd.lo   -lm /root/200611/httpd-2.2.3/srclib/pcre/libpcre.la /root/200611/httpd-2.2.3/srclib/apr-util/libaprutil-1.la /root/200611/httpd-2.2.3/srclib/apr-util/xml/expat/lib/libexpat.la /root/200611/httpd-2.2.3/srclib/apr/libapr-1.la -lrt -lcrypt -lpthread -ldl
/root/200611/httpd-2.2.3/srclib/apr-util/xml/expat/lib/.libs/libexpat.so: undefined reference to `XmlPrologStateInitExternalEntity'
/root/200611/httpd-2.2.3/srclib/apr-util/xml/expat/lib/.libs/libexpat.so: undefined reference to `XmlGetUtf8InternalEncoding'
/root/200611/httpd-2.2.3/srclib/apr-util/xml/expat/lib/.libs/libexpat.so: undefined reference to `XmlUtf8Encode'
/root/200611/httpd-2.2.3/srclib/apr-util/xml/expat/lib/.libs/libexpat.so: undefined reference to `XmlSizeOfUnknownEncoding'
/root/200611/httpd-2.2.3/srclib/apr-util/xml/expat/lib/.libs/libexpat.so: undefined reference to `XmlInitEncodingNS'
/root/200611/httpd-2.2.3/srclib/apr-util/xml/expat/lib/.libs/libexpat.so: undefined reference to `XmlParseXmlDeclNS'
/root/200611/httpd-2.2.3/srclib/apr-util/xml/expat/lib/.libs/libexpat.so: undefined reference to `XmlGetUtf8InternalEncodingNS'
/root/200611/httpd-2.2.3/srclib/apr-util/xml/expat/lib/.libs/libexpat.so: undefined reference to `XmlInitUnknownEncodingNS'
/root/200611/httpd-2.2.3/srclib/apr-util/xml/expat/lib/.libs/libexpat.so: undefined reference to `XmlInitEncoding'
/root/200611/httpd-2.2.3/srclib/apr-util/xml/expat/lib/.libs/libexpat.so: undefined reference to `XmlInitUnknownEncoding'
/root/200611/httpd-2.2.3/srclib/apr-util/xml/expat/lib/.libs/libexpat.so: undefined reference to `XmlPrologStateInit'
/root/200611/httpd-2.2.3/srclib/apr-util/xml/expat/lib/.libs/libexpat.so: undefined reference to `XmlParseXmlDecl'
collect2: ld returned 1 exit status
make[2]: *** [htpasswd] Error 1
make[2]: Leaving directory `/root/200611/httpd-2.2.3/support'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/200611/httpd-2.2.3/support'
make: *** [all-recursive] Error 1

[ 本帖最后由 up1m 于 2006-11-4 23:36 编辑 ]
cqfanli 发表于 2006-11-7 22:42:16 | 显示全部楼层
请贴出来你的编译参数,并且请去掉优化的参数试一下.
回复

使用道具 举报

 楼主| up1m 发表于 2006-11-8 12:13:14 | 显示全部楼层
CC="gcc" CHOST="i686-pc-linux-gnu" CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer" CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer" ./configure --prefix=/etc/httpd --enable-MODULE=shared --enable-deflate --enable-expires --enable-headers --with-included-apr --enable-mime-magic --enable-rewrite --enable-vhost-alias

这就是我的编译参数啊,我去掉过 ./configure 之前的东西,错误提示还是相同的。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2025-1-11 04:16 , Processed in 0.022999 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表