Bacula-users

[Bacula-users] Problem with opensslv1.patch when openssl-0.9.8 installed (bacula 5.0.1-2, Centos 5.4 64 bit )

2010-03-18 02:41:04
Subject: [Bacula-users] Problem with opensslv1.patch when openssl-0.9.8 installed (bacula 5.0.1-2, Centos 5.4 64 bit )
From: Norberto Meijome <numardbsd AT gmail DOT com>
To: bacula-users <bacula-users AT lists.sourceforge DOT net>
Date: Thu, 18 Mar 2010 17:38:39 +1100
Hi everyone,
I am getting build errors when building 5.0.1-2 from src rpm on  Centos 5.4, 64 bit .

rpmbuild line:

rpmbuild --target=$(uname -m) --define build_centos5=1    --define build_client_only=1   --define build_python=1 --define build_tcpwrappers=1 -bb <pathtoSPECS>/bacula.spec

The error I get is , @ configure stage :

checking for OpenSSL... checking for EVP_PKEY_encrypt_old in -lssl... no
yes
checking for library containing dlopen... -ldl

(notice the 'no', then 'yes'... ??)

then, @ build stage :
Compiling smartall.c
Compiling rblist.c
Compiling tls.c
tls.c: In function 'bool tls_postconnect_verify_host(JCR*, TLS_CONNECTION*, const char*)':
tls.c:354: error: invalid conversion from 'const X509V3_EXT_METHOD*' to 'v3_ext_method*'
make[1]: *** [tls.lo] Error 1


I then found http://www.backupcentral.com/phpBB2/two-way-mirrors-of-external-mailing-lists-3/bacula-25/fedora-12-and-opensslv1-bacula-5-0-1-2-rpm-release-104496/


Question - is 5.0.1-2 ONLY meant for FC-11 / 12 ??


I am not sure how to check, in an RPM Spec for version of openssl-devel installed , but blatingly forcing a OS / library specifc patch on any OS seems a bit much, IMHO.

The patch below ( [1] ) for bacula.spec "Worked-For-Me (tm)".

Please let me know if you want me to log this in Mantis.

cheers,
Beto


[root@xander redhat]# rpm -qa | grep openssl
openssl-devel-0.9.8e-12.el5_4.1
openssl-0.9.8e-12.el5_4.1



[1]
--- bacula.spec (revision 132)
+++ bacula.spec (working copy)
@@ -225,7 +225,9 @@
 Vendor: The Bacula Team
 Packager: %{_packager}
 Prefix: %{_prefix}
+%if 0%{?fedora_version} >= 11
 Patch: opensslv1.patch
+%endif
 
 Source0: http://www.prdownloads.sourceforge.net/bacula/%{name}-%{version}.tar.gz
 # opensuse build service changes the release itself
@@ -705,7 +707,9 @@
 %setup
 %setup -T -D -b 1
 %setup -T -D -b 3
+%if 0%{?fedora_version} >= 11
 %patch -p2
+%endif
 
 %build

_________________________
{Beto|Norberto|Numard} Meijome

"The only people that never change are the stupid and the dead"
 Jorge Luis Borges.

I speak for myself, not my employer. Contents may be hot. Slippery when wet.
Reading disclaimers makes you go blind. Writing them is worse. You have been
Warned.
------------------------------------------------------------------------------
Download Intel&#174; 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>