redhat as4U6 x64下编译apache出错

redhat as4U6 x64下编译apache出错

redhat as4U6 x64下编译apache出错


#CFLAGS="-O3 -fPIC" ./configure --prefix=/usr/local/apache --enable-cache --enable-disk-cache --enable-expires --enable-file-cache --enable-headers --enable-info --enable-logio --enable-mem-cache --enable-proxy --enable-rewrite --enable-ssl --with-ssl=/usr/local/openssl -enable-unique-id --enable-usertrack --enable-vhost-alias --enable-mods-shared=most --enable-so
/usr/bin/ld: /usr/local/openssl/lib/libssl.a(s2_srvr.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/local/openssl/lib/libssl.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[4]: *** [mod_ssl.la] Error 1
make[4]: Leaving directory `/home/src/httpd-2.2.9/modules/ssl'
make[3]: *** [shared-build-recursive] Error 1
make[3]: Leaving directory `/home/src/httpd-2.2.9/modules/ssl'
make[2]: *** [shared-build-recursive] Error 1
make[2]: Leaving directory `/home/src/httpd-2.2.9/modules'
make[1]: *** [shared-build-recursive] Error 1
make[1]: Leaving directory `/home/src/httpd-2.2.9'
make: *** [all-recursive] Error 1

报这个错误,人家说重新编译openssl

CFLAGS="-O3 -fPIC" ./config --prefix=/usr/local/openssl/

再重新编译apache也一样的报错。
>>再重新编译apache也一样的报错

一样出一样的错
单独装个openssl看看。
这事也好奇怪,我换了一台机器编译成功了,可能还是哪个包没有安装的问题