Bug 1384010

Summary: m2crypto-0.25.1-1.fc25: FTBFS with OpenSSL 1.1.0
Product: [Fedora] Fedora Reporter: Jitka Plesnikova <jplesnik>
Component: m2cryptoAssignee: Miloslav Trmač <mitr>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 26CC: anish.developer, gholms, karsten, mcepl, mcepl, mitr
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: http://apps.fedoraproject.org/koschei/package/m2crypto
Whiteboard:
Fixed In Version: m2crypto-0.26.2-1.fc28 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-09-21 23:17:12 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:
Bug Depends On:    
Bug Blocks: 1383740, 1488196    

Description Jitka Plesnikova 2016-10-12 11:05:54 UTC
Description of problem:
Package m2crypto fails to build from source in Fedora Rawhide.

SWIG/_m2crypto_wrap.c:4052:35: error: 'CRYPTO_NUM_LOCKS' undeclared here (not in a function)

...
SWIG/_m2crypto_wrap.c:4897:12: error: storage size of 'rnd' isn't known

...
SWIG/_m2crypto_wrap.c:5221:34: error: dereferencing pointer to incomplete type 'EVP_MD_CTX {aka struct evp_md_ctx_st}'

...
SWIG/_m2crypto_wrap.c:5244:49: error: invalid application of 'sizeof' to incomplete type 'HMAC_CTX {aka struct hmac_ctx_st}'

...
SWIG/_m2crypto_wrap.c:5614:35: error: dereferencing pointer to incomplete type 'RSA {aka struct rsa_st}'

,,,
SWIG/_m2crypto_wrap.c:32495:112: error: 'SSL_ST_INIT' undeclared (first use in this function)


This is caused by upgrading openssl from 1:1.0.2j-1.fc26 to 1:1.1.0b-1.fc26.


Additional info:
This package is tracked by Koschei. See:
http://apps.fedoraproject.org/koschei/package/m2crypto

Comment 1 Fedora End Of Life 2017-02-28 10:26:17 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 26 development cycle.
Changing version to '26'.

Comment 2 anish 2017-05-17 07:57:01 UTC
It happens to me, is there any workaround for this issue?

Comment 3 Miloslav Trmač 2017-05-17 13:51:10 UTC
(In reply to anish from comment #2)
> It happens to me, is there any workaround for this issue?

I’m afraid not, see https://bugzilla.redhat.com/show_bug.cgi?id=1439366 .

Comment 4 Karsten Hopp 2017-09-08 12:31:06 UTC
Any news here ? We still don't have an m2crypto package in f26 or f27 that has been compiled with the current openssl

Comment 5 Miloslav Trmač 2017-09-08 22:25:56 UTC
Not really I’m afraid.

Comment 7 Matěj Cepl 2017-09-20 21:13:19 UTC
M2Crypto 0.26.2 was released today which adds port to OpenSSL 1.1.0 (while still maintaining compatibility all the way down to RHEL-6).

Available at normal places (https://pypi.python.org/pypi/M2Crypto/).

Comment 8 Miloslav Trmač 2017-09-21 23:17:12 UTC
m2crypto-0.26.2-1.fc28 built in rawhide. Thanks, Matěj!