Bug 1715606

Summary: libibmtss does not link to openssl although it depends on it
Product: [Fedora] Fedora Reporter: Jerry Snitselaar <jsnitsel>
Component: tss2Assignee: Jerry Snitselaar <jsnitsel>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 30CC: extras-qa, jsnitsel, lo1, nmavrogi, yunying.sun
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tss2-1234-4.fc30 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1691819 Environment:
Last Closed: 2019-07-16 01:39:45 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: 1691819    
Bug Blocks:    

Description Jerry Snitselaar 2019-05-30 18:50:27 UTC
+++ This bug was initially created as a clone of Bug #1691819 +++

Description of problem:
The library libibmtss does not link to openssl libraries although no applications can be compiled without it. Example:

```
ld -libmtss

ld: warning: cannot find entry symbol _start; not setting start address
ld: //usr/lib64/libibmtss.so: undefined reference to `BN_hex2bn'
ld: //usr/lib64/libibmtss.so: undefined reference to `BN_value_one'
ld: //usr/lib64/libibmtss.so: undefined reference to `EVP_MD_CTX_free'
ld: //usr/lib64/libibmtss.so: undefined reference to `RSA_public_encrypt'
ld: //usr/lib64/libibmtss.so: undefined reference to `EC_POINT_point2bn'
ld: //usr/lib64/libibmtss.so: undefined reference to `EC_GROUP_free'
ld: //usr/lib64/libibmtss.so: undefined reference to `EC_KEY_check_key'
...
```

Applications using it should not be required to figure the dependencies during linking time. I believe the options are (a) provide a package config file (.pc), or (b) link the library against libcrypto of openssl.


The easiest is to uncomment  the "#LNLLIBS += -lcrypto" line in makefile.fedora.

Comment 1 Fedora Update System 2019-05-30 18:52:27 UTC
FEDORA-2019-63839fc6c1 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-63839fc6c1

Comment 2 Fedora Update System 2019-05-31 00:53:18 UTC
tss2-1234-4.fc30 has been pushed to the Fedora 30 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-2019-63839fc6c1

Comment 3 Fedora Update System 2019-07-16 01:39:45 UTC
tss2-1234-4.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.