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)
Depends on:
Reported: 2020-04-07 09:58 UTC by jau
Modified: 2020-12-13 09:41 UTC (History)
2 users (show)

See Also:


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
Comment 2 Helge Oldach 2020-12-13 09:41:26 UTC
I guess this is already fixed...

root@latitude /usr/ports/sysutils/u-boot-rpi4 # make
===>  Staging for u-boot-rpi4-2020.10
===>   Generating temporary packing list
/bin/mkdir -p /usr/obj/usr/ports/sysutils/u-boot-rpi4/work/stage//usr/local/share/u-boot/u-boot-rpi4
install  -m 0644 /usr/obj/usr/ports/sysutils/u-boot-rpi4/work/u-boot-2020.10/u-boot.bin /usr/obj/usr/ports/sysutils/u-boot-rpi4/work/stage//usr/local/share/u-boot/u-boot-rpi4
install  -m 0644 /usr/obj/usr/ports/sysutils/u-boot-rpi4/work/u-boot-2020.10/metadata /usr/obj/usr/ports/sysutils/u-boot-rpi4/work/stage//usr/local/share/u-boot/u-boot-rpi4
install  -m 0644 /usr/ports/sysutils/u-boot-rpi4/pkg-descr /usr/obj/usr/ports/sysutils/u-boot-rpi4/work/stage//usr/local/share/u-boot/u-boot-rpi4/README
====> Compressing man pages (compress-man)
root@latitude /usr/ports/sysutils/u-boot-rpi4 # openssl version
OpenSSL 1.1.1h-freebsd  22 Sep 2020
root@latitude /usr/ports/sysutils/u-boot-rpi4 # uname -a
FreeBSD latitude.local 12.2-STABLE FreeBSD 12.2-STABLE r368477 MINIMAL  amd64
root@latitude /usr/ports/sysutils/u-boot-rpi4 #