[Bug 264293] security/krb5 not building with libressl

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 27 May 2022 15:35:22 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264293

            Bug ID: 264293
           Summary: security/krb5 not building with libressl
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: cy@FreeBSD.org
          Reporter: cam@neo-zeon.de
             Flags: maintainer-feedback?(cy@FreeBSD.org)
          Assignee: cy@FreeBSD.org

gmake[3]: Entering directory
'/usr/ports/security/krb5/work/krb5-1.20/src/plugins/preauth/pkinit'
cc -fpic -DSHARED -DHAVE_CONFIG_H  -I../../../include -I../../../include 
-DKRB5_DEPRECATED=1 -DKRB5_PRIVATE -I/usr/local/include -I/usr/local/include
-isystem /usr/local/include -O2 -pipe -pipe  -fstack-protector-strong -isystem
/usr/local/include -fno-strict-aliasing -std=gnu99 
-Werror=unknown-warning-option -Wall -Wcast-align -Wshadow -Wmissing-prototypes
-pedantic -Wno-format-zero-length -Woverflow -Wstrict-overflow
-Wmissing-format-attribute -Wmissing-prototypes -Wreturn-type -Wmissing-braces
-Wparentheses -Wswitch -Wunused-function -Wunused-label -Wunused-variable
-Wunused-value -Wunknown-pragmas -Wsign-compare -Wnewline-eof
-Werror=uninitialized -Werror=pointer-arith -Werror=int-conversion
-Werror=incompatible-pointer-types -Werror=implicit-int
-Werror=declaration-after-statement -Werror-implicit-function-declaration
-pthread  -c pkinit_crypto_openssl.c -o pkinit_crypto_openssl.so.o && mv -f
pkinit_crypto_openssl.so.o pkinit_crypto_openssl.so
rm -f ../pkinit.so
(cd .. && ln -s `basename plugins/preauth/pkinit`/pkinit.so .)
pkinit_crypto_openssl.c:334:14: error: implicit declaration of function
'EVP_PKEY_param_check' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
    result = EVP_PKEY_param_check(ctx);
             ^
pkinit_crypto_openssl.c:334:14: note: did you mean 'EVP_PKEY_paramgen'?
/usr/local/include/openssl/evp.h:1193:5: note: 'EVP_PKEY_paramgen' declared
here
int EVP_PKEY_paramgen(EVP_PKEY_CTX *ctx, EVP_PKEY **ppkey);
    ^
pkinit_crypto_openssl.c:379:10: error: implicit declaration of function
'd2i_DHxparams' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    dh = d2i_DHxparams(NULL, &p, params_der->length);
         ^
pkinit_crypto_openssl.c:379:10: note: did you mean 'd2i_DHparams'?
/usr/local/include/openssl/dh.h:216:6: note: 'd2i_DHparams' declared here
DH *    d2i_DHparams(DH **a,const unsigned char **pp, long length);
        ^
pkinit_crypto_openssl.c:379:8: error: incompatible integer to pointer
conversion assigning to 'DH *' (aka 'struct dh_st *') from 'int'
[-Werror,-Wint-conversion]
    dh = d2i_DHxparams(NULL, &p, params_der->length);
       ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pkinit_crypto_openssl.c:598:23: error: use of undeclared identifier
'EVP_PKEY_CTRL_DH_PAD'
                      EVP_PKEY_CTRL_DH_PAD, 1, NULL);
                      ^
4 errors generated.
gmake[3]: *** [Makefile:804: pkinit_crypto_openssl.so] Error 1
gmake[3]: Leaving directory
'/usr/ports/security/krb5/work/krb5-1.20/src/plugins/preauth/pkinit'
gmake[2]: *** [Makefile:1521: all-recurse] Error 1
gmake[2]: Leaving directory '/usr/ports/security/krb5/work/krb5-1.20/src'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/security/krb5
*** Error code 1

Stop.
make: stopped in /usr/ports/security/krb5

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