Bug 245419 - sysutils/u-boot-rpi: Does not build with OpenSSL-1.1.x
Summary: sysutils/u-boot-rpi: Does not build with OpenSSL-1.1.x
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-uboot (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-07 09:58 UTC by jau
Modified: 2020-09-03 06:08 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jau 2020-04-07 09:58:13 UTC
Though I create this report for u-boot-rpi, the same problem applies also to
u-boot-rpi2 and probably other u-boot variants as well.

The u-boot packages do not take into account the following changes between
OpenSSL-1.0.x series and OpenSSL-1.1.x series...

     Additional changes:
     1) EVP_MD_CTX_cleanup(), EVP_CIPHER_CTX_cleanup() and
        HMAC_CTX_cleanup() were removed.  HMAC_CTX_reset() and
        EVP_MD_CTX_reset() should be called instead to reinitialise
        an already created structure.
     2) For consistency with the majority of our object creators and
        destructors, EVP_MD_CTX_(create|destroy) were renamed to
        EVP_MD_CTX_(new|free).  The old names are retained as macros
        for deprecated builds.
     [Richard Levitte]

As a result the build creates a load of complaints similar to these...

mxsimage.c:(.text+0x17cb): undefined reference to `EVP_CIPHER_CTX_cleanup'
mxsimage.c:(.text+0x1841): undefined reference to `EVP_MD_CTX_cleanup'
mxsimage.c:(.text+0x18ae): undefined reference to `EVP_CIPHER_CTX_cleanup'
tools/mxsimage.o: In function `mxsimage_verify_print_header':
mxsimage.c:(.text+0x1c38): undefined reference to `EVP_MD_CTX_cleanup'
mxsimage.c:(.text+0x1dfd): undefined reference to `EVP_CIPHER_CTX_cleanup'
mxsimage.c:(.text+0x236d): undefined reference to `EVP_CIPHER_CTX_cleanup'
mxsimage.c:(.text+0x243c): undefined reference to `EVP_CIPHER_CTX_cleanup'
mxsimage.c:(.text+0x2552): undefined reference to `EVP_CIPHER_CTX_cleanup'
mxsimage.c:(.text+0x277f): undefined reference to `EVP_CIPHER_CTX_cleanup'
mxsimage.c:(.text+0x2a66): undefined reference to `EVP_MD_CTX_cleanup'
mxsimage.c:(.text+0x2a7b): undefined reference to `EVP_CIPHER_CTX_cleanup'
Comment 1 Bugzilla Automation freebsd_committer 2020-04-07 09:58:13 UTC
Maintainer informed via mail