Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1383752

Summary: dcmtk: FTBFS in Fedora Rawhide: invalid use of incomplete type 'EVP_PKEY {aka struct evp_pkey_st}'
Product: [Fedora] Fedora Reporter: Igor Gnatenko <ignatenko>
Component: dcmtkAssignee: Igor Gnatenko <ignatenko>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 26CC: fedora, ignatenko, lemenkov, mrceresa, releng
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: http://apps.fedoraproject.org/koschei/package/dcmtk
Whiteboard:
Fixed In Version: dcmtk-3.6.2-1.fc27 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-01-10 02:04:32 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, 1423041    

Description Igor Gnatenko 2016-10-11 16:53:37 UTC
Description of problem:
Package dcmtk fails to build from source in Fedora Rawhide.

Version-Release number of selected component (if applicable):
3.6.1-4.fc24

Steps to Reproduce:
koji build --scratch f26 dcmtk-3.6.1-4.fc24.src.rpm

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


/builddir/build/BUILD/dcmtk-3.6.1_20140617/dcmsign/libsrc/sicert.cc: In member function 'E_KeyType SiCertificate::getKeyType()':
/builddir/build/BUILD/dcmtk-3.6.1_20140617/dcmsign/libsrc/sicert.cc:60:18: error: invalid use of incomplete type 'EVP_PKEY {aka struct evp_pkey_st}'
       switch(pkey->type)
                  ^~
In file included from /usr/include/openssl/evp.h:14:0,
                 from /builddir/build/BUILD/dcmtk-3.6.1_20140617/dcmsign/libsrc/sicert.cc:37:
/usr/include/openssl/ossl_typ.h:93:16: note: forward declaration of 'EVP_PKEY {aka struct evp_pkey_st}'
 typedef struct evp_pkey_st EVP_PKEY;
                ^~~~~~~~~~~
/builddir/build/BUILD/dcmtk-3.6.1_20140617/dcmsign/libsrc/sicert.cc: In member function 'SiAlgorithm* SiCertificate::createAlgorithmForPublicKey()':
/builddir/build/BUILD/dcmtk-3.6.1_20140617/dcmsign/libsrc/sicert.cc:88:18: error: invalid use of incomplete type 'EVP_PKEY {aka struct evp_pkey_st}'
       switch(pkey->type)
                  ^~
In file included from /usr/include/openssl/evp.h:14:0,
                 from /builddir/build/BUILD/dcmtk-3.6.1_20140617/dcmsign/libsrc/sicert.cc:37:
/usr/include/openssl/ossl_typ.h:93:16: note: forward declaration of 'EVP_PKEY {aka struct evp_pkey_st}'
 typedef struct evp_pkey_st EVP_PKEY;
                ^~~~~~~~~~~
/builddir/build/BUILD/dcmtk-3.6.1_20140617/dcmsign/libsrc/sicert.cc: In member function 'OFCondition SiCertificate::loadCertificate(const char*, int)':
/builddir/build/BUILD/dcmtk-3.6.1_20140617/dcmsign/libsrc/sicert.cc:114:43: error: 'BIO_s_file_internal' was not declared in this scope
     BIO *in = BIO_new(BIO_s_file_internal());
                                           ^

Comment 1 Igor Gnatenko 2017-02-17 11:04:44 UTC
*** Bug 1423325 has been marked as a duplicate of this bug. ***

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

Comment 3 Jens Lody 2017-12-31 21:22:33 UTC
I opened a PR that should fix this (it builds fine on Rawhide) and also #1518760 and #1440439:

https://src.fedoraproject.org/rpms/dcmtk/pull-request/1

I need dcmtk as dependency of aeskulap.

Jens

Comment 4 Fedora Update System 2018-01-01 16:34:34 UTC
dcmtk-3.6.2-1.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-0027585240

Comment 5 Fedora Update System 2018-01-02 00:42:39 UTC
dcmtk-3.6.2-1.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-0027585240

Comment 6 Fedora Update System 2018-01-02 11:46:49 UTC
aeskulap-0.2.2-0.32.beta1.fc27 dcmtk-3.6.2-1.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-0027585240

Comment 7 Fedora Update System 2018-01-02 17:48:41 UTC
aeskulap-0.2.2-0.32.beta1.fc27, dcmtk-3.6.2-1.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-0027585240

Comment 8 Fedora Update System 2018-01-10 02:04:32 UTC
aeskulap-0.2.2-0.32.beta1.fc27, dcmtk-3.6.2-1.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.