libressl used as default openssl. FAILED: lib/CMakeFiles/zip.dir/zip_crypto_openssl.c.o /usr/local/libexec/ccache/cc -Dzip_EXPORTS -I/tmp/ports/usr/ports/archivers/libzip/work/libzip-1.7.3/lib -I. -isystem /usr/local/include -O2 -pipe -O3 -pipe -funroll-loops -DSTRIP_FBSDID -D_FORTIFY_SOURCE=2 -mretpoline -fstack-protector-strong -fno-strict-aliasing -fdebug-prefix-map=/tmp/ports/usr/ports/archivers/libzip/work/libzip-1.7.3=. -O2 -pipe -O3 -pipe -funroll-loops -DSTRIP_FBSDID -D_FORTIFY_SOURCE=2 -mretpoline -fstack-protector-strong -fno-strict-aliasing -fdebug-prefix-map=/tmp/ports/usr/ports/archivers/libzip/work/libzip-1.7.3=. -fPIC -fvisibility=hidden -MD -MT lib/CMakeFiles/zip.dir/zip_crypto_openssl.c.o -MF lib/CMakeFiles/zip.dir/zip_crypto_openssl.c.o.d -o lib/CMakeFiles/zip.dir/zip_crypto_openssl.c.o -c /tmp/ports/usr/ports/archivers/libzip/work/libzip-1.7.3/lib/zip_crypto_openssl.c ../libzip-1.7.3/lib/zip_crypto_openssl.c:76:25: error: use of undeclared identifier 'INT_MAX' if (secret_length > INT_MAX) { ^ 1 error generated.
Same here. It also fail if ssl=libressl is NOT set. uname -a gives : FreeBSD xxx 12.2-RELEASE-p1 FreeBSD 12.2-RELEASE-p1 GENERIC amd64
Over to fluffy@ who landed the libzip update.
I don't have a FreeBSD setup where I can test this right now, but https://github.com/nih-at/libzip/commit/fd89e242d16128dedef08f47d99ae56aa19b0591 should solve this as far as I can see.
Created attachment 221348 [details] Proposed patch If someone can verify this patch against archivers/libzip works, I can land it later.
Working !
A commit references this bug: Author: fluffy Date: Thu Jan 7 12:35:08 UTC 2021 New revision: 560706 URL: https://svnweb.freebsd.org/changeset/ports/560706 Log: archivers/libzip: unbreak build with non-base *ssl PR: 252483 Submitted by: rakuco Reported by: rozhuk.im@gmail.com Approved by: rakuco Changes: head/archivers/libzip/files/patch-git_fd89e242
Sorry folks, this was not catched in clean builds for recent -current/amd64 and 12.2/amd64 with ssl=base :( http://build.dimapanov.com/poudriere/data/130amd64-dimaports/2021-01-06_03h10m01s/logs/libzip-1.7.3.log