Bug 1667772 - libibmtss2 needs to be linked with -lcrypto from openssl
Summary: libibmtss2 needs to be linked with -lcrypto from openssl
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: tss2
Version: 29
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: lo1
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-01-21 02:18 UTC by Stefan Berger
Modified: 2019-11-27 20:45 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-11-27 20:45:03 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Stefan Berger 2019-01-21 02:18:00 UTC
Description of problem:

libibmtss2 needs to be linked with -lcrypto from openssl since otherwise the autotools of other programs checking for availability of symbols in that library may fail due to missing openssl crypto related symbols.

Version-Release number of selected component (if applicable):

tss2-1234-1.fc29.x86_64
tss2-1027-2.fc28.x86_64

How reproducible:

$ ldd /usr/lib64/libibmtss.so.0.1 
	linux-vdso.so.1 (0x00007ffc2e1a7000)
	libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007fc6bca4c000)
	libc.so.6 => /lib64/libc.so.6 (0x00007fc6bc886000)
	/lib64/ld-linux-x86-64.so.2 (0x00007fc6bccf5000)

Comment 1 Jerry Snitselaar 2019-01-21 02:35:51 UTC
Hi Stefan,

Is Vicky still with IBM? She is the owner of the Fedora package. If she is still there, we should see about having her add Debora as an owner, and perhaps myself. I will see if I can find out how to migrate ownership if she is no longer there. I have pull requests open for f28, f29, and master that cleans up the problem of crypto not being linked and some other issues caught by covscan from when I was doing rhel8 work.

Comment 2 Jerry Snitselaar 2019-01-21 04:28:09 UTC
Actually, looking at it there is still a problem. $(LNLLIBS) being at the end of the rule in makefile.fedora:

diff -ur tss2-1234/utils/makefile.fedora tss2-1234-new/utils/makefile.fedora
--- tss2-1234/utils/makefile.fedora	2019-01-20 21:21:11.356819497 -0700
+++ tss2-1234-new/utils/makefile.fedora	2019-01-20 21:22:02.507096182 -0700
@@ -220,7 +220,7 @@
 # TSS shared library build
 
 $(LIBTSS): 	$(TSS_OBJS)
-		$(CC) $(LNFLAGS) $(LNLFLAGS) -Wl,-soname,$(LIBTSSSONAME) -o $(LIBTSSVERSIONED) $(TSS_OBJS) $(LNLLIBS)
+		$(CC) $(LNFLAGS) $(LNLFLAGS) $(LNLLIBS) -Wl,-soname,$(LIBTSSSONAME) -o $(LIBTSSVERSIONED) $(TSS_OBJS)
 		rm -f $(LIBTSSSONAME)
 		ln -sf $(LIBTSSVERSIONED) $(LIBTSSSONAME)
 		rm -f $(LIBTSS)

If I move it forward to where the flags are it links properly.

Comment 3 Jerry Snitselaar 2019-01-21 05:25:48 UTC
Disregard comment #2. I was looking at an old package build on my system. My earlier patch that is in the pull request does fix it. What I found 
before was that LNLLIBS = -lcrypto was commented out in makefile.fedora. So uncommenting that solved the problem.

Comment 4 Stefan Berger 2019-01-21 18:25:44 UTC
(In reply to Jerry Snitselaar from comment #1)
> Hi Stefan,
> 
> Is Vicky still with IBM? She is the owner of the Fedora package. If she is
> still there, we should see about having her add Debora as an owner, and

I believe Debora has taken over for Vicky now. Let me send her an email.

Comment 5 Ben Cotton 2019-10-31 20:08:42 UTC
This message is a reminder that Fedora 29 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 29 on 2019-11-26.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
Fedora 'version' of '29'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 29 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 6 Ben Cotton 2019-11-27 20:45:03 UTC
Fedora 29 changed to end-of-life (EOL) status on 2019-11-26. Fedora 29 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.