mod_perl make 错误(求助,实在是没有办法了)

mod_perl make 错误(求助,实在是没有办法了)

环境Linux host63 2.6.9-34.ELsmp #1 SMP Fri Feb 24 16:56:28 EST 2006 x86_64 x86_64 x86_64 GNU/Linux
Server version: Apache/2.2.8 (Unix)
Server built:   Jun 19 2008 18:05:34
This is perl, v5.8.5 built for x86_64-linux-thread-multi
安装mod_perl 2.0.4

运行
perl Makefile.PL MP_APXS=/usr/local/apache/bin/apxs MP_APR_CONFIG=/root/httpd-2.2.8/srclib/apr/apr-1-config
正常


make
出现的错误
Running Mkbootstrap for APR ()
chmod 644 APR.bs
rm -f ../../../blib/arch/auto/APR/APR.so
gcc  -shared APR.o modperl_error.o modperl_bucket.o modperl_common_util.o modperl_common_log.o  -o ../../../blib/arch/auto/APR/APR.so   -L/usr/local/apache/lib -laprutil-1 -lexpat -L/usr/local/apache/lib -lapr-1 -luuid -lrt -lcrypt -lpthread -ldl   
/usr/bin/ld: /usr/local/apache/lib/libaprutil-1.a(apr_buckets_alloc.o): relocation R_X86_64_32 against `apr_pool_cleanup_null' can not be used when making a shared object; recompile with -fPIC
/usr/local/apache/lib/libaprutil-1.a: could not read symbols: 错误的值
collect2: ld returned 1 exit status
make[3]: *** [../../../blib/arch/auto/APR/APR.so] 错误 1
make[3]: Leaving directory `/root/tangxin/mod_perl-2.0.4/xs/APR/APR'
make[2]: *** [subdirs] 错误 2
make[2]: Leaving directory `/root/tangxin/mod_perl-2.0.4/xs/APR'
make[1]: *** [subdirs] 错误 2
make[1]: Leaving directory `/root/tangxin/mod_perl-2.0.4/xs'
make: *** [subdirs] 错误 2

baidu google ,本论坛都找过,实在不知道是哪里错,麻烦,给点拔下啊.

recompile with -fPIC
谢谢楼上的,能不能具体点,说是重新编译recompile with -fPIC
但是不明白,要如何做呢,还望指教.
编译apache的的时候
config的时候加入-fPIC
看了下
应该是编译apr的config的时候添加

[Copy to clipboard] [ - ]
CODE:
--with-pic