Bug 1162268

Summary: Misspelling in patch file causes failure to build against older OpenSSL releases
Product: Red Hat Enterprise Linux 6 Reporter: John Conroy <jconroy>
Component: httpdAssignee: Luboš Uhliarik <luhliari>
Status: CLOSED ERRATA QA Contact: Filip Holec <fholec>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.6CC: dkutalek, jkaluza, jorton, psplicha
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: httpd-2.2.15-41.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-07-22 05:53:39 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description John Conroy 2014-11-10 17:15:48 UTC
Description of problem:
When attempting to build this package against older (< 1.0.0) releases of OpenSSL, an error occurs.

Version-Release number of selected component (if applicable):
httpd-2.2.15-39.el6

How reproducible:
Always when building against OpenSSL < 1.0.0

Steps to Reproduce:
1.  Easiest, attempt to build on EL5 (OpenSSL 0.9.8e)
2.
3.

Actual results:
DEBUG: Building shared: mod_ssl.la
DEBUG: make[4]: Entering directory `/builddir/build/BUILD/httpd-2.2.15/prefork/modules/ssl'
DEBUG: /usr/lib/apr-1/build/libtool --silent --mode=compile gcc -Werror-implicit-function-declaration  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -Wformat-security -fno-strict-aliasing  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE    -I. -I/builddir/build/BUILD/httpd-2.2.15/prefork/include -I/builddir/build/BUILD/httpd-2.2.15/os/unix -I/builddir/build/BUILD/httpd-2.2.15/server/mpm/prefork -I/builddir/build/BUILD/httpd-2.2.15/modules/http -I/builddir/build/BUILD/httpd-2.2.15/modules/filters -I/builddir/build/BUILD/httpd-2.2.15/modules/proxy -I/builddir/build/BUILD/httpd-2.2.15/include -I/builddir/build/BUILD/httpd-2.2.15/modules/generators -I/builddir/build/BUILD/httpd-2.2.15/modules/mappers -I/builddir/build/BUILD/httpd-2.2.15/modules/database -I/usr/include/apr-1 -I/builddir/build/BUILD/httpd-2.2.15/prefork/server -I/builddir/build/BUILD/httpd-2.2.15/modules/proxy/../generators -I/usr/kerberos/include -I/builddir/build/BUILD/httpd-2.2.15/modules/ssl -I/builddir/build/BUILD/httpd-2.2.15/modules/dav/main -prefer-pic -c /builddir/build/BUILD/httpd-2.2.15/modules/ssl/mod_ssl.c && touch mod_ssl.slo
DEBUG: In file included from /builddir/build/BUILD/httpd-2.2.15/modules/ssl/mod_ssl.c:27:
DEBUG: /builddir/build/BUILD/httpd-2.2.15/modules/ssl/ssl_private.h:685: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
DEBUG: make[4]: *** [mod_ssl.slo] Error 1
DEBUG: make[4]: Leaving directory `/builddir/build/BUILD/httpd-2.2.15/prefork/modules/ssl'

Expected results:
A successful build

Additional info:
There is a misspelling in the following patch file:
httpd-2.2.15-r1542327.patch

>DH           *ssl_dh_GetParamFromFile(const char *);
>#ifndef OPNESSL_NO_EC
>EC_GROUP     *ssl_ec_GetParamFromFile(const char *);
>#endif

The above should be -> OPENSSL_NO_EC

Comment 2 Joe Orton 2014-12-02 10:09:28 UTC
Since it's a patch in the typo we can correct that, but, I'll note that building RHEL source RPMs on older versions of RHEL is not supported nor expected to work in general.

Comment 3 Joe Orton 2014-12-02 10:10:08 UTC
"a patch in the typo" ... or something like that.

Comment 8 errata-xmlrpc 2015-07-22 05:53:39 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2015-1249.html