[Bug 269317] security/xmlsec1 1.2.37 fails to build with LibreSSL

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 04 Feb 2023 11:31:35 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269317

            Bug ID: 269317
           Summary: security/xmlsec1 1.2.37 fails to build with LibreSSL
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: hrs@FreeBSD.org
          Reporter: jakub_lach@mailplus.pl
             Flags: maintainer-feedback?(hrs@FreeBSD.org)
          Assignee: hrs@FreeBSD.org

FreeBSD 13.2-PRERELEASE #0 stable/13-3901be6a1 amd64

DEFAULT_VERSIONS+=ssl=libressl

FreeBSD clang version 14.0.5 (https://github.com/llvm/llvm-project.git
llvmorg-14.0.5-0-gc12386ae247c)
Target: x86_64-unknown-freebsd13.2

<...>

x509.c:1257:11: error: implicit declaration of function 'ASN1_TIME_to_tm' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
    ret = ASN1_TIME_to_tm(t, &tm);
          ^
x509.c:1257:11: note: did you mean 'ASN1_TIME_set_tm'?
/usr/local/include/openssl/asn1.h:728:12: note: 'ASN1_TIME_set_tm' declared
here
ASN1_TIME *ASN1_TIME_set_tm(ASN1_TIME *s, struct tm *tm);
           ^
1 error generated.
gmake[5]: *** [Makefile:717: libxmlsec1_openssl_la-x509.lo] Error 1
gmake[5]: *** Waiting for unfinished jobs....
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I../.. -DPACKAGE=\"xmlsec1\"
-I../../include -I../../include -D__XMLSEC_FUNCTION__=__func__
-DXMLSEC_NO_SIZE_T -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_GOST2012=1
-DXMLSEC_DL_LIBLTDL=1 -I/usr/local/include -I/usr/local/include/openssl
-DXMLSEC_CRYPTO_OPENSSL=1 -I/usr/local/include -I/usr/local/include/libxml2
-I/usr/local/include/libxml2 -isystem /usr/local/include -O2 -pipe
-march=penryn -fstack-protector-strong -isystem /usr/local/include
-fno-strict-aliasing -Werror -fno-builtin-memset -MT
libxmlsec1_openssl_la-x509vfy.lo -MD -MP -MF
.deps/libxmlsec1_openssl_la-x509vfy.Tpo -c x509vfy.c  -fPIC -DPIC -o
.libs/libxmlsec1_openssl_la-x509vfy.o
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I../.. -DPACKAGE=\"xmlsec1\"
-I../../include -I../../include -D__XMLSEC_FUNCTION__=__func__
-DXMLSEC_NO_SIZE_T -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_GOST2012=1
-DXMLSEC_DL_LIBLTDL=1 -I/usr/local/include -I/usr/local/include/openssl
-DXMLSEC_CRYPTO_OPENSSL=1 -I/usr/local/include -I/usr/local/include/libxml2
-I/usr/local/include/libxml2 -isystem /usr/local/include -O2 -pipe
-march=penryn -fstack-protector-strong -isystem /usr/local/include
-fno-strict-aliasing -Werror -fno-builtin-memset -MT
libxmlsec1_openssl_la-x509vfy.lo -MD -MP -MF
.deps/libxmlsec1_openssl_la-x509vfy.Tpo -c x509vfy.c -o
libxmlsec1_openssl_la-x509vfy.o >/dev/null 2>&1
mv -f .deps/libxmlsec1_openssl_la-x509vfy.Tpo
.deps/libxmlsec1_openssl_la-x509vfy.Plo
gmake[5]: Leaving directory
'/usr/obj/usr/ports/security/xmlsec1/work/xmlsec1-1.2.37/src/openssl'
gmake[4]: *** [Makefile:692: all-recursive] Error 1
gmake[4]: Leaving directory
'/usr/obj/usr/ports/security/xmlsec1/work/xmlsec1-1.2.37/src'
gmake[3]: *** [Makefile:747: all-recursive] Error 1
gmake[3]: Leaving directory
'/usr/obj/usr/ports/security/xmlsec1/work/xmlsec1-1.2.37'
gmake[2]: *** [Makefile:565: all] Error 2
gmake[2]: Leaving directory
'/usr/obj/usr/ports/security/xmlsec1/work/xmlsec1-1.2.37'
===> Compilation failed unexpectedly.

-- 
You are receiving this mail because:
You are the assignee for the bug.