Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Jun 2018 22:20:11 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 228970] security/krb5: building with libressl 2.7 results in invalid implicit declarations in C99
Message-ID:  <bug-228970-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D228970

            Bug ID: 228970
           Summary: security/krb5: building with libressl 2.7 results in
                    invalid implicit declarations in C99
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: cy@FreeBSD.org
          Reporter: ml+freebsd@vishwin.info
          Assignee: cy@FreeBSD.org
             Flags: maintainer-feedback?(cy@FreeBSD.org)

After bug 228900 was fixed in ports r472227, the following errors are emitt=
ed
when building with ssl=3Dlibressl or ssl=3Dlibressl-devel set in make.conf:

cc -fpic -DSHARED -DHAVE_CONFIG_H  -I../../../include -I../../../include=20
-DKRB5_DEPRECATED=3D1 -DKRB5_PRIVATE -I/usr/local/include -I/usr/local/incl=
ude
-isystem /usr/local/include -O2 -pipe -march=3Dbroadwell  -fstack-protector
-isystem /usr/local/include -fno-strict-aliasing -std=3Dgnu99
-Werror=3Dunknown-warning-option -Wall -Wcast-align -Wshadow -Wmissing-prot=
otypes
-pedantic -Wno-format-zero-length -Woverflow -Wstrict-overflow
-Wmissing-format-attribute -Wmissing-prototypes -Wreturn-type -Wmissing-bra=
ces
-Wparentheses -Wswitch -Wunused-function -Wunused-label -Wunused-variable
-Wunused-value -Wunknown-pragmas -Wsign-compare -Wnewline-eof
-Werror=3Duninitialized -Werror=3Dpointer-arith -Werror=3Dint-conversion
-Werror=3Dincompatible-pointer-types -Werror=3Dimplicit-int
-Werror=3Ddeclaration-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:3119:5: error: implicit declaration of function
'M_ASN1_D2I_vars' is invalid in C99 [-Werror,-Wimplicit-function-declaratio=
n]
    M_ASN1_D2I_vars(a, DH *, DH_new);
    ^
pkinit_crypto_openssl.c:3119:24: error: unexpected type name 'DH': expected
expression
    M_ASN1_D2I_vars(a, DH *, DH_new);
                       ^
pkinit_crypto_openssl.c:3119:28: error: expected expression
    M_ASN1_D2I_vars(a, DH *, DH_new);
                           ^
pkinit_crypto_openssl.c:3121:5: error: implicit declaration of function
'M_ASN1_D2I_Init' is invalid in C99 [-Werror,-Wimplicit-function-declaratio=
n]
    M_ASN1_D2I_Init();
    ^
pkinit_crypto_openssl.c:3121:5: note: did you mean 'M_ASN1_D2I_vars'?
pkinit_crypto_openssl.c:3119:5: note: 'M_ASN1_D2I_vars' declared here
    M_ASN1_D2I_vars(a, DH *, DH_new);
    ^
pkinit_crypto_openssl.c:3122:5: error: implicit declaration of function
'M_ASN1_D2I_start_sequence' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
    M_ASN1_D2I_start_sequence();
    ^
pkinit_crypto_openssl.c:3126:5: error: implicit declaration of function
'M_ASN1_D2I_get_x' is invalid in C99 [-Werror,-Wimplicit-function-declarati=
on]
    M_ASN1_D2I_get_x(ASN1_INTEGER, aip, d2i_ASN1_INTEGER);
    ^
pkinit_crypto_openssl.c:3126:22: error: unexpected type name 'ASN1_INTEGER':
expected expression
    M_ASN1_D2I_get_x(ASN1_INTEGER, aip, d2i_ASN1_INTEGER);
                     ^
pkinit_crypto_openssl.c:3130:9: error: use of undeclared identifier 'ret'
        ret->p =3D ASN1_INTEGER_to_BN(aip, NULL);
        ^
pkinit_crypto_openssl.c:3131:13: error: use of undeclared identifier 'ret'
        if (ret->p =3D=3D NULL)
            ^
pkinit_crypto_openssl.c:3139:22: error: unexpected type name 'ASN1_INTEGER':
expected expression
    M_ASN1_D2I_get_x(ASN1_INTEGER, aip, d2i_ASN1_INTEGER);
                     ^
pkinit_crypto_openssl.c:3143:9: error: use of undeclared identifier 'ret'
        ret->g =3D ASN1_INTEGER_to_BN(aip, NULL);
        ^
pkinit_crypto_openssl.c:3144:13: error: use of undeclared identifier 'ret'
        if (ret->g =3D=3D NULL)
            ^
pkinit_crypto_openssl.c:3153:5: error: implicit declaration of function
'M_ASN1_D2I_get_opt' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
    M_ASN1_D2I_get_opt(aip, d2i_ASN1_INTEGER, V_ASN1_INTEGER);
    ^
pkinit_crypto_openssl.c:3153:5: note: did you mean 'M_ASN1_D2I_get_x'?
pkinit_crypto_openssl.c:3126:5: note: 'M_ASN1_D2I_get_x' declared here
    M_ASN1_D2I_get_x(ASN1_INTEGER, aip, d2i_ASN1_INTEGER);
    ^
pkinit_crypto_openssl.c:3155:9: error: use of undeclared identifier 'ret'
        ret->q =3D NULL;
        ^
pkinit_crypto_openssl.c:3157:9: error: use of undeclared identifier 'ret'
        ret->q =3D ASN1_INTEGER_to_BN(aip, NULL);
        ^
pkinit_crypto_openssl.c:3158:13: error: use of undeclared identifier 'ret'
        if (ret->q =3D=3D NULL)
            ^
pkinit_crypto_openssl.c:3167:5: error: implicit declaration of function
'M_ASN1_D2I_end_sequence' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
    M_ASN1_D2I_end_sequence();
    ^
pkinit_crypto_openssl.c:3167:5: note: did you mean 'M_ASN1_D2I_start_sequen=
ce'?
pkinit_crypto_openssl.c:3122:5: note: 'M_ASN1_D2I_start_sequence' declared =
here
    M_ASN1_D2I_start_sequence();
    ^
pkinit_crypto_openssl.c:3168:5: error: implicit declaration of function
'M_ASN1_D2I_Finish' is invalid in C99 [-Werror,-Wimplicit-function-declarat=
ion]
    M_ASN1_D2I_Finish(a, DH_free, 0);
    ^
pkinit_crypto_openssl.c:3168:5: note: did you mean 'M_ASN1_D2I_Init'?
pkinit_crypto_openssl.c:3121:5: note: 'M_ASN1_D2I_Init' declared here
    M_ASN1_D2I_Init();
    ^
18 errors generated.
gmake[2]: *** [Makefile:823: pkinit_crypto_openssl.so] Error 1
gmake[2]: Leaving directory
'/wrkdirs/usr/ports/security/krb5/work/krb5-1.16.1/src/plugins/preauth/pkin=
it'
gmake[1]: *** [Makefile:1524: all-recurse] Error 1
gmake[1]: Leaving directory
'/wrkdirs/usr/ports/security/krb5/work/krb5-1.16.1/src'

I've produced this error on 12-CURRENT and 11.1-RELEASE, both amd64. Buildi=
ng
with any of the OpenSSL values works as intended.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-228970-7788>