Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 648796 - sys-auth/yubico-piv-tool-1.4.4 with >=dev-libs/openssl-1.1.0 - yubico-piv-tool.c:237:10: error: dereferencing pointer to incomplete type ‘RSA {aka struct rsa_st}’
Summary: sys-auth/yubico-piv-tool-1.4.4 with >=dev-libs/openssl-1.1.0 - yubico-piv-too...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: openssl-1.1
  Show dependency tree
 
Reported: 2018-02-26 00:58 UTC by Quentin Minster
Modified: 2018-03-06 11:23 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (file_648796.txt,37.18 KB, text/plain)
2018-02-26 00:58 UTC, Quentin Minster
Details
yubico-piv-tool-1.5.0-openssl-1.1.0-compat.patch (file_648796.txt,4.69 KB, patch)
2018-02-26 01:00 UTC, Quentin Minster
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Quentin Minster 2018-02-26 00:58:30 UTC
Created attachment 521052 [details]
build.log

sys-auth/yubico-piv-tool-1.4.4 fails to build with >=dev-libs/openssl-1.1.0, with errors regarding dereferencing pointers to incomplete types, and several warnings about using undeclared functions.

This is due to changes in OpenSSL 1.1.0: internal structures are now opaque, and a lot of functions were deprecated/removed.

Upstream has a new version (1.5.0, see [0]) with some fixes for OpenSSL 1.1.0.
However a simple version bump is not enough, there are still calls to undeclared functions and an undefined symbol, so the build still fails.

I'm attaching below a patch against yubico-piv-tool-1.5.0 that restores compatibility with Gentoo's OpenSSL 1.1.0 (sent upstream, see [1]).


[0]: https://github.com/Yubico/yubico-piv-tool/releases
[1]: https://github.com/Yubico/yubico-piv-tool/pull/141
Comment 1 Quentin Minster 2018-02-26 01:00:43 UTC
Created attachment 521054 [details, diff]
yubico-piv-tool-1.5.0-openssl-1.1.0-compat.patch
Comment 2 Quentin Minster 2018-03-06 01:35:15 UTC
Upstream merged the PR (but there hasn't been any new release yet).
Comment 3 Larry the Git Cow gentoo-dev 2018-03-06 11:23:01 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bce09dab8931afbb372738f1d2c3eca91a727c4f

commit bce09dab8931afbb372738f1d2c3eca91a727c4f
Author:     Michael Palimaka <kensington@gentoo.org>
AuthorDate: 2018-03-06 11:22:22 +0000
Commit:     Michael Palimaka <kensington@gentoo.org>
CommitDate: 2018-03-06 11:22:45 +0000

    sys-auth/yubico-piv-tool: version bump 1.5.0
    
    Includes a backported patch from upstream solving build failure with openssl-1.1.
    
    Closes: https://bugs.gentoo.org/648796
    Package-Manager: Portage-2.3.19, Repoman-2.3.6

 sys-auth/yubico-piv-tool/Manifest                  |   1 +
 .../files/yubico-piv-tool-1.5.0-openssl110.patch   | 170 +++++++++++++++++++++
 .../yubico-piv-tool/yubico-piv-tool-1.5.0.ebuild   |  50 ++++++
 3 files changed, 221 insertions(+)