Bug 235505

Summary: sysutils/u-boot-tools: build fail with libressl
Product: Ports & Packages Reporter: rozhuk.im
Component: Individual Port(s)Assignee: Uboot FreeBSD Mailing List <uboot>
Status: Open ---    
Severity: Affects Some People CC: manu, mikael.urankar, rozhuk.im, w.schwarzenfeld
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch none

Description rozhuk.im 2019-02-04 23:18:06 UTC
...
  cc  -o tools/fit_check_sign tools/aisimage.o tools/atmelimage.o tools/common/image-sig.o tools/common/bootm.o tools/lib/crc32.o tools/default_image.o tools/lib/fdtdec_common.o tools/lib/fdtdec.o tools/fit_common.o tools/fit_image.o tools/common/image-fit.o tools/image-host.o tools/common/image.o tools/imagetool.o tools/imximage.o tools/imx8image.o tools/imx8mimage.o tools/kwbimage.o tools/lib/md5.o tools/lpc32xximage.o tools/mxsimage.o tools/omapimage.o tools/os_support.o tools/pblimage.o tools/pbl_crc32.o tools/vybridimage.o tools/stm32image.o tools/lib/rc4.o tools/rkcommon.o tools/rkimage.o tools/rksd.o tools/rkspi.o tools/socfpgaimage.o tools/lib/crc16.o tools/lib/sha1.o tools/lib/sha256.o tools/common/hash.o tools/ublimage.o tools/zynqimage.o tools/zynqmpimage.o tools/zynqmpbif.o tools/libfdt/fdt.o tools/libfdt/fdt_wip.o tools/libfdt/fdt_sw.o tools/libfdt/fdt_rw.o tools/libfdt/fdt_strerror.o tools/libfdt/fdt_empty_tree.o tools/libfdt/fdt_addresses.o tools/libfdt/fdt_overlay.o tools/lib/libfdt/fdt_ro.o tools/lib/libfdt/fdt_region.o tools/gpimage.o tools/gpimage-common.o tools/mtk_image.o tools/lib/rsa/rsa-sign.o tools/lib/rsa/rsa-verify.o tools/lib/rsa/rsa-checksum.o tools/lib/rsa/rsa-mod-exp.o tools/fit_check_sign.o  -L/usr/local/lib -lssl -lcrypto 
/usr/bin/ld: error: undefined symbol: RSA_pkey_ctx_ctrl
>>> referenced by rsa-sign.c
>>>               tools/lib/rsa/rsa-sign.o:(rsa_sign)
cc: error: linker command failed with exit code 1 (use -v to see invocation)
...
Comment 1 Bugzilla Automation freebsd_committer 2019-02-04 23:18:06 UTC
Maintainer informed via mail
Comment 2 Walter Schwarzenfeld freebsd_triage 2019-08-09 09:28:35 UTC
Is this still relevant? (libressl version has changed to 2.9.2).

(I try it with poudriere and it builds fine).
Comment 3 rozhuk.im 2019-08-09 15:55:19 UTC
Yes, relevant.
Comment 4 Emmanuel Vadot freebsd_committer 2019-10-13 08:31:58 UTC
This is not supported by upstream so it won't be by us.
Comment 5 rozhuk.im 2019-10-13 22:31:59 UTC
ha-ha-ha :)
FreeBSD not supported by many programs, but we have them in ports.

At least add to port that it broken with libressl and that you do not wont to fix it, may be some one else do this, at least they will not lost time to compile and bugreporting.
Comment 6 mikael.urankar 2019-10-14 11:38:15 UTC
Created attachment 208300 [details]
patch

there you go
Comment 7 rozhuk.im 2019-11-03 17:17:06 UTC
Thanks, commit it and close this bug report.