[Bacula-users] Problem with opensslv1.patch when openssl-0.9.8 installed (b
2010-03-20 12:17:58
I had the same problem but i was able to fix it. The problem is that current
Version uses some const definitions that does not work with openssl-9.8. If you
use openssl-v1 you will not have a problem.
This is a hotfix to get it working with 0.9.8 shipped with centos.
Add patch to bacula.spec in SPECS dir.
Change Patch Tag in the definition part like:
--<schnipp>---
URL: http://www.bacula.org/
Vendor: The Bacula Team
Packager: %{_packager}
Prefix: %{_prefix}
Patch0: opensslv1.patch
Patch1: opensslv1_const.patch
--<schnipp>--
Change patch statements from %prep section in the following way:
--<schnipp>--
%prep
%setup
%setup -T -D -b 1
%setup -T -D -b 3
%patch0 -p2
%patch1 -p2
--<scnapp>--
Create file "opensslv1_const.patch" in SOURCES dir with following content:
--<schnipp>---
diff -Naur a/bacula-5.0.1/src/lib/crypto.c b/bacula-5.0.1/src/lib/crypto.c
--- a/bacula-5.0.1/src/lib/crypto.c 2010-03-20 14:16:42.000000000 +0100
+++ b/bacula-5.0.1/src/lib/crypto.c 2010-03-20 14:13:47.000000000 +0100
@@ -316,7 +316,11 @@
*/
static ASN1_OCTET_STRING *openssl_cert_keyid(X509 *cert) {
X509_EXTENSION *ext;
+#if (OPENSSL_VERSION_NUMBER >= 0x10000000L)
const X509V3_EXT_METHOD *method;
+#else
+ X509V3_EXT_METHOD *method;
+#endif
ASN1_OCTET_STRING *keyid;
int i;
#if (OPENSSL_VERSION_NUMBER >= 0x0090800FL)
diff -Naur a/bacula-5.0.1/src/lib/tls.c b/bacula-5.0.1/src/lib/tls.c
--- a/bacula-5.0.1/src/lib/tls.c 2010-03-20 14:16:42.000000000 +0100
+++ b/bacula-5.0.1/src/lib/tls.c 2010-03-20 14:12:48.000000000 +0100
@@ -315,7 +315,11 @@
extname = OBJ_nid2sn(OBJ_obj2nid(X509_EXTENSION_get_object(ext)));
if (strcmp(extname, "subjectAltName") == 0) {
- const X509V3_EXT_METHOD *method;
+#if (OPENSSL_VERSION_NUMBER >= 0x10000000L)
+ const X509V3_EXT_METHOD *method;
+#else
+ X509V3_EXT_METHOD *method;
+#endif
STACK_OF(CONF_VALUE) *val;
CONF_VALUE *nval;
void *extstr = NULL;
--<schnapp>--
Happy building :)
+----------------------------------------------------------------------
|This was sent by p.pede AT gmx DOT de via Backup Central.
|Forward SPAM to abuse AT backupcentral DOT com.
+----------------------------------------------------------------------
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Bacula-users] Problem with opensslv1.patch when openssl-0.9.8 installed (b,
pierrep <=
|
|
|