patch文件httpd-2.0.54_openssl-0.9.8.patch内容如下
--- httpd-2.0.54.orig/modules/ssl/ssl_toolkit_compat.h2005-02-04 12:21:18.000000000 -0800
+++ httpd-2.0.54/modules/ssl/ssl_toolkit_compat.h2005-07-06 08:50:38.468750000 -0700
@@ -24,6 +24,12 @@
#ifdef OPENSSL_VERSION_NUMBER
+#if (OPENSSL_VERSION_NUMBER >= 0x0090800fL)
+#ifndef PEM_F_DEF_CALLBACK
+#define PEM_F_DEF_CALLBACK PEM_F_PEM_DEF_CALLBACK
+#endif
+#endif
+
/*
* rsa sslc uses incomplete types for most structures
* so we macroize for OpenSSL those which cannot be dereferenced
将文件拷贝到
/usr/local/src/httpd-2.0.54/modules/ssl
中,并进入该文件夹,然后运行
patch -p3 httpd-2.0.54_openssl-0.9.8.patch
补丁修订完毕
编译方法
1. tar xvfz openssl-0.9.8.tar.gz
2. cd openssl-0.9.8
3. ./config shared
4. make
5. make install
1. tar xvfz httpd-2.0.54.tar.gz
2. cd httpd-2.0.54
3. ./configure --enable-rewrite=shared --enable-proxy=shared --enable-ssl=shared --with-ssl=/usr/local/ssl
4. make
5. make install
注:httpd 2.0.55加入了这个patch,直接编译就可以了。