Bug 1423088

Summary: libssh: FTBFS against openssl-1.1
Product: [Fedora] Fedora Reporter: Fedora Release Engineering <releng>
Component: libsshAssignee: Andreas Schneider <asn>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: asn, cfergeau, jwakely, negativo17, rdieter, tmraz
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: libssh-0.7.5-6.fc28 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-20 16:31:24 UTC Type: ---
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, 1485241    
Attachments:
Description Flags
build.log
none
root.log
none
state.log none

Description Fedora Release Engineering 2017-02-17 02:44:26 UTC
Your package libssh failed to build from source in current rawhide.

https://koji.fedoraproject.org/koji/taskinfo?taskID=17671434

For details on mass rebuild see https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

Comment 1 Fedora Release Engineering 2017-02-17 02:44:33 UTC
Created attachment 1251032 [details]
build.log

Comment 2 Fedora Release Engineering 2017-02-17 02:44:37 UTC
Created attachment 1251033 [details]
root.log

Comment 3 Fedora Release Engineering 2017-02-17 02:44:41 UTC
Created attachment 1251034 [details]
state.log

Comment 4 Jonathan Wakely 2017-02-17 13:36:56 UTC
Incompatible with OpenSSL 1.1.0

/builddir/build/BUILD/libssh-0.7.4/src/libcrypto.c: In function 'evp':
/builddir/build/BUILD/libssh-0.7.4/src/libcrypto.c:136:16: error: storage size of 'md' isn't known
     EVP_MD_CTX md;
                ^~
/builddir/build/BUILD/libssh-0.7.4/src/libcrypto.c:136:16: warning: unused variable 'md' [-Wunused-variable]
/builddir/build/BUILD/libssh-0.7.4/src/libcrypto.c: In function 'evp_init':
/builddir/build/BUILD/libssh-0.7.4/src/libcrypto.c:147:32: error: invalid application of 'sizeof' to incomplete type 'EVP_MD_CTX {aka struct evp_md_ctx_st}'
     EVPCTX ctx = malloc(sizeof(EVP_MD_CTX));
                                ^~~~~~~~~~

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

Comment 6 Igor Gnatenko 2017-03-11 15:04:35 UTC
There are some commits in master branch to support 1.1.0 though.

Comment 7 Rex Dieter 2017-03-11 15:36:40 UTC
In the meantime, libssh can/should use compat-openssl10

(I'll take the liberty of committing that now, and perhaps can keep this open to track openssl-1.1 support moving forward)

Comment 8 Rex Dieter 2017-03-11 15:50:26 UTC
%changelog
* Sat Mar 11 2017 Rex Dieter <rdieter> - 0.7.4-2
- BR: compat-openssl10-devel (f26+, #1423088)
- use %%license
- -devel: drop hardcoded pkgconfig dep (let autodeps handle it)
- %%files: track library sonames, simplify -devel
- %%install: use 'install/fast' target
- .spec cosmetics, drop deprecated %%clean section