apache2.40 openssl1.0.1i 编译错误
2014-10-11 11:40
429 查看
[root@diguojin httpd-2.4.10]# uname -a Linux diguojin 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux [root@diguojin httpd-2.4.10]# uname -r 2.6.32-431.el6.x86_64 [root@diguojin httpd-2.4.10]#64为centos 6.5版本, 编译Apache2.40时出错
Apache编译选项:
./configure --prefix=/usr/local/httpd24 \ --sysconfdir=/etc/httpd24 \ --enable-so \ --enable-ssl \ --enable-cgi \ --enable-rewrite \ --with-zlib \ --with-pcre \ --with-apr=/usr/local/apr/ \ --with-apr-util=/usr/local/apr-util/ \ --enable-modules=most \ --enable-mpms-shared=all \ --with-mpm=event \ --with-ssl=/usr/local/openssl-1.0.1i
错误信息:
/usr/bin/ld: /usr/local/openssl-1.0.1i/lib/libcrypto.a(e_gost_err.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC /usr/local/openssl-1.0.1i/lib/libcrypto.a: could not read symbols: Bad value collect2: ld returned 1 exit status make[4]: *** [mod_ssl.la] Error 1 make[4]: Leaving directory `/usr/local/src/httpd-2.4.10/modules/ssl' make[3]: *** [shared-build-recursive] Error 1 make[3]: Leaving directory `/usr/local/src/httpd-2.4.10/modules/ssl' make[2]: *** [shared-build-recursive] Error 1 make[2]: Leaving directory `/usr/local/src/httpd-2.4.10/modules' make[1]: *** [shared-build-recursive] Error 1 make[1]: Leaving directory `/usr/local/src/httpd-2.4.10' make: *** [all-recursive] Error 1让重新编译OpenSSL使用-fPIC, 结果还是一样, 最后参考了博文
http://qing.blog.sina.com.cn/1153369603/44bf0603330023r5.html
重新编译OpenSSL解决了:
./config --prefix=/usr/local/openssl-1.0.1i -fPIC no-gost
本文出自 “帝国金菜园子” 博客,请务必保留此出处http://diguojin.blog.51cto.com/5034509/1562460
相关文章推荐
- PHP 编译 mysql4 apache 的错误
- vs 2005 编译 apache2.2.17 时 ,rc 命令行错误的解决办法
- centos系统编译apache-2.4.x常见错误总结
- Windows下编译Apache-2.2.22(集成OpenSSL-1.0.1
- 备忘:编译Apache的configure: error: Size of "void *" is less than size of "long"错误
- 编译OpenSSL发现的一个错误
- 问题:编译kirlog时出现错误openssl-0.9.8i/libssl.so.0.9.8': No such file
- Apache2.4.9编译event错误解决过程
- Libcurl使用OpenSSL编译出现undefined reference to `COMP_CTX_free'错误备忘
- libssh2编译错误(configure error: cannot find OpenSSL or Libgcrypt)解决方法
- Windows 下OpenSSL 安装详解 +图解/windows下openssl编译过程及ml等错误/MASM 8.0 下载 安装方法
- openssl-1.0.0.beta3编译错误详解
- Apache编译安装php错误 libphp5.so : No such file or directory apxs:Error: Command failed with rc=65536
- 手工编译安装php后,重启apache时,libphp5.so: cannot restore segment prot after reloc: Permission denied 错误的解决办法
- 编译apache过程中出现如下错误及解决办法
- cent-os下编译安装apache时碰到的缺少zlib引起的错误
- Windows下编译Apache-2.2.22(集成OpenSSL-1.0.1哦亲~)
- windows下openssl编译过程及错误
- 解决在win7中用vs2010编译openssl中出现把警告当做错误的报错问题
- apache 在 加载openssl 模块时出现 “/usr/local/ssl/lib/libssl.a: could not read symbols: Bad value”错误解决方案