[MacPorts] #72257: redwax-tool fails to build: error: conflicting types for 'X509_STORE_CTX_get_num_untrusted' etc.
MacPorts
noreply at macports.org
Sat Mar 29 19:19:59 UTC 2025
#72257: redwax-tool fails to build: error: conflicting types for
'X509_STORE_CTX_get_num_untrusted' etc.
--------------------------+-------------------------
Reporter: barracuda156 | Owner: herbygillot
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.10.5
Keywords: | Port: redwax-tool
--------------------------+-------------------------
{{{
---> Building redwax-tool
Executing: cd "/opt/local/var/macports/build
/_opt_local_ppcports_security_redwax-tool/redwax-tool/work/redwax-
tool-0.9.9" && /usr/bin/make -j6 -w all
make: Entering directory `/opt/local/var/macports/build
/_opt_local_ppcports_security_redwax-tool/redwax-tool/work/redwax-
tool-0.9.9'
/usr/bin/make all-am
make[1]: Entering directory `/opt/local/var/macports/build
/_opt_local_ppcports_security_redwax-tool/redwax-tool/work/redwax-
tool-0.9.9'
/opt/local/bin/gcc-mp-14 -DHAVE_CONFIG_H -I.
-DPKGSYSCONFDIR='"/opt/local/etc/redwax-tool"'
-DPKGLIBEXECDIR='"/opt/local/libexec/redwax-tool"'
-DP11_MODULE_PATH='"/opt/local/lib/pkcs11"'
-I/opt/local/libexec/openssl3/include -isystem/opt/local/include
-pipe -I/opt/local/libexec/openssl3/include -Os -arch ppc
-I/opt/local/include/nss -I/opt/local/include/nspr
-I/opt/local/include/p11-kit-1 -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK
-DDARWIN_10 -I/opt/local/include/apr-1 -DDARWIN
-DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10 -I/opt/local/include/apr-1
-I/opt/local/include/nss -I/opt/local/include/nspr -MT redwax-tool.o -MD
-MP -MF .deps/redwax-tool.Tpo -c -o redwax-tool.o redwax-tool.c
/opt/local/bin/gcc-mp-14 -DHAVE_CONFIG_H -I.
-DPKGSYSCONFDIR='"/opt/local/etc/redwax-tool"'
-DPKGLIBEXECDIR='"/opt/local/libexec/redwax-tool"'
-DP11_MODULE_PATH='"/opt/local/lib/pkcs11"'
-I/opt/local/libexec/openssl3/include -isystem/opt/local/include
-pipe -I/opt/local/libexec/openssl3/include -Os -arch ppc
-I/opt/local/include/nss -I/opt/local/include/nspr
-I/opt/local/include/p11-kit-1 -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK
-DDARWIN_10 -I/opt/local/include/apr-1 -DDARWIN
-DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10 -I/opt/local/include/apr-1
-I/opt/local/include/nss -I/opt/local/include/nspr -MT redwax_openssl.o
-MD -MP -MF .deps/redwax_openssl.Tpo -c -o redwax_openssl.o
redwax_openssl.c
/opt/local/bin/gcc-mp-14 -DHAVE_CONFIG_H -I.
-DPKGSYSCONFDIR='"/opt/local/etc/redwax-tool"'
-DPKGLIBEXECDIR='"/opt/local/libexec/redwax-tool"'
-DP11_MODULE_PATH='"/opt/local/lib/pkcs11"'
-I/opt/local/libexec/openssl3/include -isystem/opt/local/include
-pipe -I/opt/local/libexec/openssl3/include -Os -arch ppc
-I/opt/local/include/nss -I/opt/local/include/nspr
-I/opt/local/include/p11-kit-1 -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK
-DDARWIN_10 -I/opt/local/include/apr-1 -DDARWIN
-DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10 -I/opt/local/include/apr-1
-I/opt/local/include/nss -I/opt/local/include/nspr -MT redwax_nss.o -MD
-MP -MF .deps/redwax_nss.Tpo -c -o redwax_nss.o redwax_nss.c
/opt/local/bin/gcc-mp-14 -DHAVE_CONFIG_H -I.
-DPKGSYSCONFDIR='"/opt/local/etc/redwax-tool"'
-DPKGLIBEXECDIR='"/opt/local/libexec/redwax-tool"'
-DP11_MODULE_PATH='"/opt/local/lib/pkcs11"'
-I/opt/local/libexec/openssl3/include -isystem/opt/local/include
-pipe -I/opt/local/libexec/openssl3/include -Os -arch ppc
-I/opt/local/include/nss -I/opt/local/include/nspr
-I/opt/local/include/p11-kit-1 -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK
-DDARWIN_10 -I/opt/local/include/apr-1 -DDARWIN
-DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10 -I/opt/local/include/apr-1
-I/opt/local/include/nss -I/opt/local/include/nspr -MT redwax_p11kit.o -MD
-MP -MF .deps/redwax_p11kit.Tpo -c -o redwax_p11kit.o redwax_p11kit.c
/opt/local/bin/gcc-mp-14 -DHAVE_CONFIG_H -I.
-DPKGSYSCONFDIR='"/opt/local/etc/redwax-tool"'
-DPKGLIBEXECDIR='"/opt/local/libexec/redwax-tool"'
-DP11_MODULE_PATH='"/opt/local/lib/pkcs11"'
-I/opt/local/libexec/openssl3/include -isystem/opt/local/include
-pipe -I/opt/local/libexec/openssl3/include -Os -arch ppc
-I/opt/local/include/nss -I/opt/local/include/nspr
-I/opt/local/include/p11-kit-1 -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK
-DDARWIN_10 -I/opt/local/include/apr-1 -DDARWIN
-DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10 -I/opt/local/include/apr-1
-I/opt/local/include/nss -I/opt/local/include/nspr -MT redwax_libical.o
-MD -MP -MF .deps/redwax_libical.Tpo -c -o redwax_libical.o
redwax_libical.c
/opt/local/bin/gcc-mp-14 -DHAVE_CONFIG_H -I.
-DPKGSYSCONFDIR='"/opt/local/etc/redwax-tool"'
-DPKGLIBEXECDIR='"/opt/local/libexec/redwax-tool"'
-DP11_MODULE_PATH='"/opt/local/lib/pkcs11"'
-I/opt/local/libexec/openssl3/include -isystem/opt/local/include
-pipe -I/opt/local/libexec/openssl3/include -Os -arch ppc
-I/opt/local/include/nss -I/opt/local/include/nspr
-I/opt/local/include/p11-kit-1 -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK
-DDARWIN_10 -I/opt/local/include/apr-1 -DDARWIN
-DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10 -I/opt/local/include/apr-1
-I/opt/local/include/nss -I/opt/local/include/nspr -MT redwax_keychain.o
-MD -MP -MF .deps/redwax_keychain.Tpo -c -o redwax_keychain.o
redwax_keychain.c
mv -f .deps/redwax_p11kit.Tpo .deps/redwax_p11kit.Po
/opt/local/bin/gcc-mp-14 -DHAVE_CONFIG_H -I.
-DPKGSYSCONFDIR='"/opt/local/etc/redwax-tool"'
-DPKGLIBEXECDIR='"/opt/local/libexec/redwax-tool"'
-DP11_MODULE_PATH='"/opt/local/lib/pkcs11"'
-I/opt/local/libexec/openssl3/include -isystem/opt/local/include
-pipe -I/opt/local/libexec/openssl3/include -Os -arch ppc
-I/opt/local/include/nss -I/opt/local/include/nspr
-I/opt/local/include/p11-kit-1 -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK
-DDARWIN_10 -I/opt/local/include/apr-1 -DDARWIN
-DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10 -I/opt/local/include/apr-1
-I/opt/local/include/nss -I/opt/local/include/nspr -MT redwax_ldns.o -MD
-MP -MF .deps/redwax_ldns.Tpo -c -o redwax_ldns.o redwax_ldns.c
mv -f .deps/redwax_nss.Tpo .deps/redwax_nss.Po
/opt/local/bin/gcc-mp-14 -DHAVE_CONFIG_H -I.
-DPKGSYSCONFDIR='"/opt/local/etc/redwax-tool"'
-DPKGLIBEXECDIR='"/opt/local/libexec/redwax-tool"'
-DP11_MODULE_PATH='"/opt/local/lib/pkcs11"'
-I/opt/local/libexec/openssl3/include -isystem/opt/local/include
-pipe -I/opt/local/libexec/openssl3/include -Os -arch ppc
-I/opt/local/include/nss -I/opt/local/include/nspr
-I/opt/local/include/p11-kit-1 -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK
-DDARWIN_10 -I/opt/local/include/apr-1 -DDARWIN
-DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10 -I/opt/local/include/apr-1
-I/opt/local/include/nss -I/opt/local/include/nspr -MT redwax_unbound.o
-MD -MP -MF .deps/redwax_unbound.Tpo -c -o redwax_unbound.o
redwax_unbound.c
redwax_openssl.c:694:5: error: conflicting types for
'X509_STORE_CTX_get_num_untrusted'; have 'int(X509_STORE_CTX *)' {aka
'int(struct x509_store_ctx_st *)'}
694 | int X509_STORE_CTX_get_num_untrusted(X509_STORE_CTX *ctx)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from
/opt/local/libexec/openssl3/include/openssl/x509.h:495,
from
/opt/local/libexec/openssl3/include/openssl/pem.h:23,
from redwax_openssl.c:38:
/opt/local/libexec/openssl3/include/openssl/x509_vfy.h:787:5: note:
previous declaration of 'X509_STORE_CTX_get_num_untrusted' with type
'int(const X509_STORE_CTX *)' {aka 'int(const struct x509_store_ctx_st
*)'}
787 | int X509_STORE_CTX_get_num_untrusted(const X509_STORE_CTX *ctx);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
redwax_openssl.c: In function 'X509_STORE_CTX_get_num_untrusted':
redwax_openssl.c:696:15: error: invalid use of incomplete typedef
'X509_STORE_CTX' {aka 'struct x509_store_ctx_st'}
696 | return ctx->last_untrusted;
| ^~
redwax_openssl.c: At top level:
redwax_openssl.c:701:20: error: conflicting types for
'X509_STORE_get0_param'; have 'X509_VERIFY_PARAM *(X509_STORE *)' {aka
'struct X509_VERIFY_PARAM_st *(struct x509_store_st *)'}
701 | X509_VERIFY_PARAM *X509_STORE_get0_param(X509_STORE *ctx)
| ^~~~~~~~~~~~~~~~~~~~~
/opt/local/libexec/openssl3/include/openssl/x509_vfy.h:510:20: note:
previous declaration of 'X509_STORE_get0_param' with type
'X509_VERIFY_PARAM *(const X509_STORE *)' {aka 'struct
X509_VERIFY_PARAM_st *(const struct x509_store_st *)'}
510 | X509_VERIFY_PARAM *X509_STORE_get0_param(const X509_STORE *xs);
| ^~~~~~~~~~~~~~~~~~~~~
redwax_openssl.c: In function 'X509_STORE_get0_param':
redwax_openssl.c:703:15: error: invalid use of incomplete typedef
'X509_STORE' {aka 'struct x509_store_st'}
703 | return ctx->param;
| ^~
redwax_openssl.c: In function 'X509_get0_tbs_sigalg':
redwax_openssl.c:722:22: error: invalid use of incomplete typedef 'X509'
{aka 'const struct x509_st'}
722 | X509_CINF *ci = x->cert_info;
| ^~
redwax_openssl.c:724:14: error: invalid use of incomplete typedef
'X509_CINF' {aka 'struct x509_cinf_st'}
724 | return ci->signature;
| ^~
redwax_openssl.c: In function 'X509_get0_extensions':
redwax_openssl.c:731:22: error: invalid use of incomplete typedef 'X509'
{aka 'const struct x509_st'}
731 | X509_CINF *ci = x->cert_info;
| ^~
redwax_openssl.c:733:14: error: invalid use of incomplete typedef
'X509_CINF' {aka 'struct x509_cinf_st'}
733 | return ci->extensions;
| ^~
redwax_openssl.c: In function 'X509_get0_uids':
redwax_openssl.c:741:22: error: invalid use of incomplete typedef 'X509'
{aka 'const struct x509_st'}
741 | X509_CINF *ci = x->cert_info;
| ^~
redwax_openssl.c:744:20: error: invalid use of incomplete typedef
'X509_CINF' {aka 'struct x509_cinf_st'}
744 | *piuid = ci->issuerUID;
| ^~
redwax_openssl.c:746:20: error: invalid use of incomplete typedef
'X509_CINF' {aka 'struct x509_cinf_st'}
746 | *psuid = ci->subjectUID;
| ^~
redwax_openssl.c: In function 'X509_get0_signature':
redwax_openssl.c:755:19: error: invalid use of incomplete typedef 'X509'
{aka 'const struct x509_st'}
755 | *psig = &x->signature;
| ^~
redwax_openssl.c:757:19: error: invalid use of incomplete typedef 'X509'
{aka 'const struct x509_st'}
757 | *palg = &x->sig_alg;
| ^~
redwax_openssl.c: In function 'X509_get_extension_flags':
redwax_openssl.c:766:13: error: invalid use of incomplete typedef 'X509'
{aka 'struct x509_st'}
766 | return x->ex_flags;
| ^~
redwax_openssl.c: At top level:
redwax_openssl.c:771:6: error: conflicting types for 'X509_up_ref'; have
'void(X509 *)' {aka 'void(struct x509_st *)'}
771 | void X509_up_ref(X509 *x)
| ^~~~~~~~~~~
/opt/local/libexec/openssl3/include/openssl/x509.h:868:5: note: previous
declaration of 'X509_up_ref' with type 'int(X509 *)' {aka 'int(struct
x509_st *)'}
868 | int X509_up_ref(X509 *x);
| ^~~~~~~~~~~
redwax_openssl.c: In function 'X509_up_ref':
redwax_openssl.c:773:5: error: implicit declaration of function
'CRYPTO_add' [-Wimplicit-function-declaration]
773 | CRYPTO_add(&x->references, 1, CRYPTO_LOCK_X509);
| ^~~~~~~~~~
redwax_openssl.c:773:18: error: invalid use of incomplete typedef 'X509'
{aka 'struct x509_st'}
773 | CRYPTO_add(&x->references, 1, CRYPTO_LOCK_X509);
| ^~
mv -f .deps/redwax_libical.Tpo .deps/redwax_libical.Po
/opt/local/bin/gcc-mp-14 -DHAVE_CONFIG_H -I.
-DPKGSYSCONFDIR='"/opt/local/etc/redwax-tool"'
-DPKGLIBEXECDIR='"/opt/local/libexec/redwax-tool"'
-DP11_MODULE_PATH='"/opt/local/lib/pkcs11"'
-I/opt/local/libexec/openssl3/include -isystem/opt/local/include
-pipe -I/opt/local/libexec/openssl3/include -Os -arch ppc
-I/opt/local/include/nss -I/opt/local/include/nspr
-I/opt/local/include/p11-kit-1 -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK
-DDARWIN_10 -I/opt/local/include/apr-1 -DDARWIN
-DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10 -I/opt/local/include/apr-1
-I/opt/local/include/nss -I/opt/local/include/nspr -MT redwax_util.o -MD
-MP -MF .deps/redwax_util.Tpo -c -o redwax_util.o redwax_util.c
redwax_openssl.c:773:35: error: 'CRYPTO_LOCK_X509' undeclared (first use
in this function); did you mean 'CRYPTO_LOCK'?
773 | CRYPTO_add(&x->references, 1, CRYPTO_LOCK_X509);
| ^~~~~~~~~~~~~~~~
| CRYPTO_LOCK
redwax_openssl.c:773:35: note: each undeclared identifier is reported only
once for each function it appears in
redwax_openssl.c: In function 'RSA_get0_n':
redwax_openssl.c:782:13: error: invalid use of incomplete typedef 'RSA'
{aka 'const struct rsa_st'}
782 | return r->n;
| ^~
redwax_openssl.c: In function 'RSA_get0_e':
redwax_openssl.c:789:13: error: invalid use of incomplete typedef 'RSA'
{aka 'const struct rsa_st'}
789 | return r->e;
| ^~
redwax_openssl.c: In function 'RSA_get0_d':
redwax_openssl.c:796:13: error: invalid use of incomplete typedef 'RSA'
{aka 'const struct rsa_st'}
796 | return r->d;
| ^~
redwax_openssl.c: In function 'RSA_get0_p':
redwax_openssl.c:803:13: error: invalid use of incomplete typedef 'RSA'
{aka 'const struct rsa_st'}
803 | return r->p;
| ^~
redwax_openssl.c: In function 'RSA_get0_q':
redwax_openssl.c:810:13: error: invalid use of incomplete typedef 'RSA'
{aka 'const struct rsa_st'}
810 | return r->q;
| ^~
redwax_openssl.c: In function 'RSA_get0_dmp1':
redwax_openssl.c:817:13: error: invalid use of incomplete typedef 'RSA'
{aka 'const struct rsa_st'}
817 | return r->dmp1;
| ^~
redwax_openssl.c: In function 'RSA_get0_dmq1':
redwax_openssl.c:824:13: error: invalid use of incomplete typedef 'RSA'
{aka 'const struct rsa_st'}
824 | return r->dmq1;
| ^~
redwax_openssl.c: In function 'RSA_get0_iqmp':
redwax_openssl.c:831:13: error: invalid use of incomplete typedef 'RSA'
{aka 'const struct rsa_st'}
831 | return r->iqmp;
| ^~
redwax_openssl.c: In function 'import_bag':
redwax_openssl.c:142:43: error: invalid use of incomplete typedef
'PKCS12_SAFEBAG' {aka 'const struct PKCS12_SAFEBAG_st'}
142 | #define PKCS12_SAFEBAG_get0_p8inf(bag) bag->value.keybag
| ^~
redwax_openssl.c:3361:17: note: in expansion of macro
'PKCS12_SAFEBAG_get0_p8inf'
3361 | p8inf = PKCS12_SAFEBAG_get0_p8inf(bag);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
redwax_openssl.c:3382:9: warning: 'PKCS12_get_attr' is deprecated: Since
OpenSSL 1.1.0 [-Wdeprecated-declarations]
3382 | if ((label = PKCS12_SAFEBAG_get0_attr(bag,
NID_friendlyName))) {
| ^~
In file included from redwax_openssl.c:39:
/opt/local/libexec/openssl3/include/openssl/pkcs12.h:117:36: note:
declared here
117 | OSSL_DEPRECATEDIN_1_1_0 ASN1_TYPE *PKCS12_get_attr(const
PKCS12_SAFEBAG *bag,
| ^~~~~~~~~~~~~~~
redwax_openssl.c:3455:9: warning: 'PKCS12_get_attr' is deprecated: Since
OpenSSL 1.1.0 [-Wdeprecated-declarations]
3455 | if ((label = PKCS12_SAFEBAG_get0_attr(bag,
NID_friendlyName))) {
| ^~
/opt/local/libexec/openssl3/include/openssl/pkcs12.h:117:36: note:
declared here
117 | OSSL_DEPRECATEDIN_1_1_0 ASN1_TYPE *PKCS12_get_attr(const
PKCS12_SAFEBAG *bag,
| ^~~~~~~~~~~~~~~
redwax_openssl.c:3551:9: warning: 'PKCS12_get_attr' is deprecated: Since
OpenSSL 1.1.0 [-Wdeprecated-declarations]
3551 | if ((label = PKCS12_SAFEBAG_get0_attr(bag,
NID_friendlyName))) {
| ^~
/opt/local/libexec/openssl3/include/openssl/pkcs12.h:117:36: note:
declared here
117 | OSSL_DEPRECATEDIN_1_1_0 ASN1_TYPE *PKCS12_get_attr(const
PKCS12_SAFEBAG *bag,
| ^~~~~~~~~~~~~~~
redwax_openssl.c:150:33: error: implicit declaration of function
'PKCS12_certbag2x509crl'; did you mean 'PKCS12_certbag2x509'? [-Wimplicit-
function-declaration]
150 | #define PKCS12_SAFEBAG_get1_crl PKCS12_certbag2x509crl
| ^~~~~~~~~~~~~~~~~~~~~~
redwax_openssl.c:3585:13: note: in expansion of macro
'PKCS12_SAFEBAG_get1_crl'
3585 | c = PKCS12_SAFEBAG_get1_crl((PKCS12_SAFEBAG *)bag);
| ^~~~~~~~~~~~~~~~~~~~~~~
redwax_openssl.c:3585:11: error: assignment to 'X509_CRL *' {aka 'struct
X509_crl_st *'} from 'int' makes pointer from integer without a cast
[-Wint-conversion]
3585 | c = PKCS12_SAFEBAG_get1_crl((PKCS12_SAFEBAG *)bag);
| ^
redwax_openssl.c:126:43: error: invalid use of incomplete typedef
'PKCS12_SAFEBAG' {aka 'const struct PKCS12_SAFEBAG_st'}
126 | #define PKCS12_SAFEBAG_get0_safes(bag) bag->value.safes
| ^~
redwax_openssl.c:3622:45: note: in expansion of macro
'PKCS12_SAFEBAG_get0_safes'
3622 | return import_bags(r, file, secret,
PKCS12_SAFEBAG_get0_safes(bag),
|
^~~~~~~~~~~~~~~~~~~~~~~~~
redwax_openssl.c: In function 'redwax_openssl_compare_certificate':
redwax_openssl.c:5666:35: error: passing argument 2 of 'X509_cmp_time'
from incompatible pointer type [-Wincompatible-pointer-types]
5666 | bc1 = b1 ? X509_cmp_time(b1, r->now) : -1;
| ~^~~~~
| |
| apr_time_t * {aka long long int
*}
/opt/local/libexec/openssl3/include/openssl/x509.h:695:47: note: expected
'time_t *' {aka 'long int *'} but argument is of type 'apr_time_t *' {aka
'long long int *'}
695 | int X509_cmp_time(const ASN1_TIME *s, time_t *t);
| ~~~~~~~~^
redwax_openssl.c:5667:35: error: passing argument 2 of 'X509_cmp_time'
from incompatible pointer type [-Wincompatible-pointer-types]
5667 | bc2 = b2 ? X509_cmp_time(b2, r->now) : -1;
| ~^~~~~
| |
| apr_time_t * {aka long long int
*}
/opt/local/libexec/openssl3/include/openssl/x509.h:695:47: note: expected
'time_t *' {aka 'long int *'} but argument is of type 'apr_time_t *' {aka
'long long int *'}
695 | int X509_cmp_time(const ASN1_TIME *s, time_t *t);
| ~~~~~~~~^
redwax_openssl.c:5688:35: error: passing argument 2 of 'X509_cmp_time'
from incompatible pointer type [-Wincompatible-pointer-types]
5688 | ac1 = a1 ? X509_cmp_time(a1, r->now) : 1;
| ~^~~~~
| |
| apr_time_t * {aka long long int
*}
/opt/local/libexec/openssl3/include/openssl/x509.h:695:47: note: expected
'time_t *' {aka 'long int *'} but argument is of type 'apr_time_t *' {aka
'long long int *'}
695 | int X509_cmp_time(const ASN1_TIME *s, time_t *t);
| ~~~~~~~~^
redwax_openssl.c:5689:35: error: passing argument 2 of 'X509_cmp_time'
from incompatible pointer type [-Wincompatible-pointer-types]
5689 | ac2 = a2 ? X509_cmp_time(a2, r->now) : 1;
| ~^~~~~
| |
| apr_time_t * {aka long long int
*}
/opt/local/libexec/openssl3/include/openssl/x509.h:695:47: note: expected
'time_t *' {aka 'long int *'} but argument is of type 'apr_time_t *' {aka
'long long int *'}
695 | int X509_cmp_time(const ASN1_TIME *s, time_t *t);
| ~~~~~~~~^
redwax_openssl.c: In function 'redwax_openssl_normalise_key':
redwax_openssl.c:5835:13: warning: 'EVP_PKEY_get1_RSA' is deprecated:
Since OpenSSL 3.0 [-Wdeprecated-declarations]
5835 | RSA *rsa = EVP_PKEY_get1_RSA(pkey);
| ^~~
In file included from
/opt/local/libexec/openssl3/include/openssl/pem.h:22:
/opt/local/libexec/openssl3/include/openssl/evp.h:1365:16: note: declared
here
1365 | struct rsa_st *EVP_PKEY_get1_RSA(EVP_PKEY *pkey);
| ^~~~~~~~~~~~~~~~~
redwax_openssl.c:5837:13: warning: 'RSA_get0_n' is deprecated: Since
OpenSSL 3.0 [-Wdeprecated-declarations]
5837 | const BIGNUM *n = RSA_get0_n(rsa);
| ^~~~~
redwax_openssl.c:780:15: note: declared here
780 | const BIGNUM *RSA_get0_n(const RSA *r)
| ^~~~~~~~~~
redwax_openssl.c:5838:13: warning: 'RSA_get0_e' is deprecated: Since
OpenSSL 3.0 [-Wdeprecated-declarations]
5838 | const BIGNUM *e = RSA_get0_e(rsa);
| ^~~~~
redwax_openssl.c:787:15: note: declared here
787 | const BIGNUM *RSA_get0_e(const RSA *r)
| ^~~~~~~~~~
redwax_openssl.c:5839:13: warning: 'RSA_get0_d' is deprecated: Since
OpenSSL 3.0 [-Wdeprecated-declarations]
5839 | const BIGNUM *d = RSA_get0_d(rsa);
| ^~~~~
redwax_openssl.c:794:15: note: declared here
794 | const BIGNUM *RSA_get0_d(const RSA *r)
| ^~~~~~~~~~
redwax_openssl.c:5840:13: warning: 'RSA_get0_p' is deprecated: Since
OpenSSL 3.0 [-Wdeprecated-declarations]
5840 | const BIGNUM *p = RSA_get0_p(rsa);
| ^~~~~
redwax_openssl.c:801:15: note: declared here
801 | const BIGNUM *RSA_get0_p(const RSA *r)
| ^~~~~~~~~~
redwax_openssl.c:5841:13: warning: 'RSA_get0_q' is deprecated: Since
OpenSSL 3.0 [-Wdeprecated-declarations]
5841 | const BIGNUM *q = RSA_get0_q(rsa);
| ^~~~~
redwax_openssl.c:808:15: note: declared here
808 | const BIGNUM *RSA_get0_q(const RSA *r)
| ^~~~~~~~~~
redwax_openssl.c:5842:13: warning: 'RSA_get0_dmp1' is deprecated: Since
OpenSSL 3.0 [-Wdeprecated-declarations]
5842 | const BIGNUM *dmp1 = RSA_get0_dmp1(rsa);
| ^~~~~
redwax_openssl.c:815:15: note: declared here
815 | const BIGNUM *RSA_get0_dmp1(const RSA *r)
| ^~~~~~~~~~~~~
redwax_openssl.c:5843:13: warning: 'RSA_get0_dmq1' is deprecated: Since
OpenSSL 3.0 [-Wdeprecated-declarations]
5843 | const BIGNUM *dmq1 = RSA_get0_dmq1(rsa);
| ^~~~~
redwax_openssl.c:822:15: note: declared here
822 | const BIGNUM *RSA_get0_dmq1(const RSA *r)
| ^~~~~~~~~~~~~
redwax_openssl.c:5844:13: warning: 'RSA_get0_iqmp' is deprecated: Since
OpenSSL 3.0 [-Wdeprecated-declarations]
5844 | const BIGNUM *iqmp = RSA_get0_iqmp(rsa);
| ^~~~~
redwax_openssl.c:829:15: note: declared here
829 | const BIGNUM *RSA_get0_iqmp(const RSA *r)
| ^~~~~~~~~~~~~
mv -f .deps/redwax_unbound.Tpo .deps/redwax_unbound.Po
redwax_openssl.c:5927:13: warning: 'RSA_free' is deprecated: Since OpenSSL
3.0 [-Wdeprecated-declarations]
5927 | RSA_free(rsa);
| ^~~~~~~~
In file included from
/opt/local/libexec/openssl3/include/openssl/x509.h:36:
/opt/local/libexec/openssl3/include/openssl/rsa.h:304:28: note: declared
here
304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r);
| ^~~~~~~~
mv -f .deps/redwax_ldns.Tpo .deps/redwax_ldns.Po
redwax_openssl.c:5994:9: warning: 'RSA_new' is deprecated: Since OpenSSL
3.0 [-Wdeprecated-declarations]
5994 | RSA *rsa = RSA_new();
| ^~~
/opt/local/libexec/openssl3/include/openssl/rsa.h:212:28: note: declared
here
212 | OSSL_DEPRECATEDIN_3_0 RSA *RSA_new(void);
| ^~~~~~~
redwax_openssl.c:6006:12: error: invalid use of incomplete typedef 'RSA'
{aka 'struct rsa_st'}
6006 | rsa->n = BN_bin2bn(key->rsa->modulus,
key->rsa->modulus_len,
| ^~
redwax_openssl.c:6008:12: error: invalid use of incomplete typedef 'RSA'
{aka 'struct rsa_st'}
6008 | rsa->e = BN_bin2bn(key->rsa->public_exponent,
| ^~
redwax_openssl.c:6010:12: error: invalid use of incomplete typedef 'RSA'
{aka 'struct rsa_st'}
6010 | rsa->d = BN_bin2bn(key->rsa->private_exponent,
| ^~
redwax_openssl.c:6020:12: error: invalid use of incomplete typedef 'RSA'
{aka 'struct rsa_st'}
6020 | rsa->p = BN_bin2bn(key->rsa->prime_1,
key->rsa->prime_1_len,
| ^~
redwax_openssl.c:6022:12: error: invalid use of incomplete typedef 'RSA'
{aka 'struct rsa_st'}
6022 | rsa->q = BN_bin2bn(key->rsa->prime_2,
key->rsa->prime_2_len,
| ^~
redwax_openssl.c:6034:12: error: invalid use of incomplete typedef 'RSA'
{aka 'struct rsa_st'}
6034 | rsa->dmp1 = BN_bin2bn(key->rsa->exponent_1,
key->rsa->exponent_1_len,
| ^~
redwax_openssl.c:6036:12: error: invalid use of incomplete typedef 'RSA'
{aka 'struct rsa_st'}
6036 | rsa->dmq1 = BN_bin2bn(key->rsa->exponent_2,
key->rsa->exponent_2_len,
| ^~
redwax_openssl.c:6038:12: error: invalid use of incomplete typedef 'RSA'
{aka 'struct rsa_st'}
6038 | rsa->iqmp = BN_bin2bn(key->rsa->coefficient,
key->rsa->coefficient_len,
| ^~
redwax_openssl.c:6042:9: warning: 'EVP_PKEY_set1_RSA' is deprecated: Since
OpenSSL 3.0 [-Wdeprecated-declarations]
6042 | EVP_PKEY_set1_RSA(pkey, rsa);
| ^~~~~~~~~~~~~~~~~
redwax_keychain.c: In function 'redwax_keychain_process_certificates':
/opt/local/libexec/openssl3/include/openssl/evp.h:1361:5: note: declared
here
1361 | int EVP_PKEY_set1_RSA(EVP_PKEY *pkey, struct rsa_st *key);
| ^~~~~~~~~~~~~~~~~
redwax_keychain.c:158:13: error: 'kSecClass' undeclared (first use in this
function); did you mean 'kSecAlias'?
158 | kSecClass,
| ^~~~~~~~~
| kSecAlias
redwax_keychain.c:158:13: note: each undeclared identifier is reported
only once for each function it appears in
redwax_openssl.c:6107:9: warning: 'RSA_free' is deprecated: Since OpenSSL
3.0 [-Wdeprecated-declarations]
6107 | RSA_free(rsa);
| ^~~~~~~~
/opt/local/libexec/openssl3/include/openssl/rsa.h:304:28: note: declared
here
304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r);
| ^~~~~~~~
redwax_openssl.c: In function 'redwax_openssl_normalise_certificate':
redwax_openssl.c:6262:17: warning: 'EVP_PKEY_get1_RSA' is deprecated:
Since OpenSSL 3.0 [-Wdeprecated-declarations]
6262 | RSA *rsa = EVP_PKEY_get1_RSA(pkey);
| ^~~
/opt/local/libexec/openssl3/include/openssl/evp.h:1365:16: note: declared
here
1365 | struct rsa_st *EVP_PKEY_get1_RSA(EVP_PKEY *pkey);
| ^~~~~~~~~~~~~~~~~
redwax_openssl.c:6264:17: warning: 'RSA_get0_n' is deprecated: Since
OpenSSL 3.0 [-Wdeprecated-declarations]
6264 | const BIGNUM *n = RSA_get0_n(rsa);
| ^~~~~
redwax_openssl.c:780:15: note: declared here
780 | const BIGNUM *RSA_get0_n(const RSA *r)
| ^~~~~~~~~~
redwax_openssl.c:6286:17: warning: 'RSA_free' is deprecated: Since OpenSSL
3.0 [-Wdeprecated-declarations]
6286 | RSA_free(rsa);
| ^~~~~~~~
/opt/local/libexec/openssl3/include/openssl/rsa.h:304:28: note: declared
here
304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r);
| ^~~~~~~~
redwax_keychain.c:159:13: error: 'kSecMatchLimit' undeclared (first use in
this function)
159 | kSecMatchLimit,
| ^~~~~~~~~~~~~~
redwax_keychain.c:160:13: error: 'kSecReturnRef' undeclared (first use in
this function); did you mean 'eReturnKey'?
160 | kSecReturnRef
| ^~~~~~~~~~~~~
| eReturnKey
make[1]: *** [redwax_openssl.o] Error 1
make[1]: *** Waiting for unfinished jobs....
redwax_keychain.c:164:13: error: 'kSecClassCertificate' undeclared (first
use in this function)
164 | kSecClassCertificate,
| ^~~~~~~~~~~~~~~~~~~~
redwax_keychain.c:165:13: error: 'kSecMatchLimitAll' undeclared (first use
in this function)
165 | kSecMatchLimitAll,
| ^~~~~~~~~~~~~~~~~
redwax_keychain.c:184:13: error: 'kSecUseKeychain' undeclared (first use
in this function); did you mean 'KCReleaseKeychain'?
184 | kSecUseKeychain,
| ^~~~~~~~~~~~~~~
| KCReleaseKeychain
redwax_keychain.c:210:11: error: implicit declaration of function
'SecItemCopyMatching' [-Wimplicit-function-declaration]
210 | err = SecItemCopyMatching(query, &certs);
| ^~~~~~~~~~~~~~~~~~~
redwax_keychain.c: In function 'redwax_keychain_search_key':
redwax_keychain.c:743:15: error: implicit declaration of function
'SecItemExport' [-Wimplicit-function-declaration]
743 | err = SecItemExport(keyref, kSecFormatBSAFE, 0, NULL,
&der);
| ^~~~~~~~~~~~~
make[1]: *** [redwax_keychain.o] Error 1
mv -f .deps/redwax_util.Tpo .deps/redwax_util.Po
mv -f .deps/redwax-tool.Tpo .deps/redwax-tool.Po
make[1]: Leaving directory `/opt/local/var/macports/build
/_opt_local_ppcports_security_redwax-tool/redwax-tool/work/redwax-
tool-0.9.9'
make: *** [all] Error 2
}}}
--
Ticket URL: <https://trac.macports.org/ticket/72257>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list