Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Mar 2017 11:54:03 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 218000] sysutils/msktutil: compilation fails if security/krb5 is selected
Message-ID:  <bug-218000-13@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 218000
           Summary: sysutils/msktutil: compilation fails if security/krb5
                    is selected
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs@FreeBSD.org
          Reporter: 1983-01-06@gmx.net
                CC: cy@FreeBSD.org, zi@FreeBSD.org
                CC: cy@FreeBSD.org, zi@FreeBSD.org

Created attachment 181050
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D181050&action=
=3Dedit
Patch for GSS-API flavor

Do "make config" and select MIT Kerberos from ports, run "make":

> DEPRECATED  -Wall -Wextra -Wno-write-strings -c msktutil.cpp -o msktutil.o
> In file included from In file included from krb5wrap.cppmsktkrb5.cppIn fi=
le included from msktldap.cpp:In file included from 32:msktutil.cpp31::32:
> :
> 32In file included from :
> In file included from :
> In file included from ./msktutil.h./msktutil.hIn file included from :./ms=
ktutil.h:341341./msktutil.h:
> ::
> 341:./krb5wrap.h:./krb5wrap.h341198::
> :19850:./krb5wrap.h:50: 198::
>  :./krb5wrap.h50:: error: errorerror: : no nomember  membernamed no  name=
dmember'keyblock' 198 'keyblock':in50  :in 'krb5_keytab_entry_st'named   'k=
rb5_keytab_entry_st'
>=20
> error: no member named 'keyblock' in 'krb5_keytab_entry_st'
>         return static_cast<krb5_enctype>(m_entry.keyblock.keytype);'keybl=
ock'
>          return static_cast<krb5_enctype>(m_entry.keyblock.keytype);in
>                                          ~~~~~~~ ^ 'krb5_keytab_entry_st'
>         return static_cast<krb5_enctype>(m_entry.keyblock.keytype);
>=20
>                                          ~~~~~~~ ^
>         return static_cast<krb5_enctype>(m_entry.keyblock.keytype);
>                                          ~~~~~~~ ^
>                                          ~~~~~~~ ^
> krb5wrap.cpp:38:20: error: no member named 'keyblock' in 'krb5_keytab_ent=
ry_st'
>         if (entry->keyblock.keyvalue.data) {
>             ~~~~~  ^
> krb5wrap.cpp:39:27: error: no member named 'keyblock' in 'krb5_keytab_ent=
ry_st'
>             memset(entry->keyblock.keyvalue.data, 0, entry->keyblock.keyv=
alue.length);
>                    ~~~~~  ^
> krb5wrap.cpp:40:25: error: no member named 'keyblock' in 'krb5_keytab_ent=
ry_st'
>             free(entry->keyblock.keyvalue.data);
>                  ~~~~~  ^
> krb5wrap.cpp:81:5: error: unknown type namemsktutil.cpp:162:9: error: use=
 of undeclared identifier 'krb5_xfree'
>         krb5_xfree(temp_realm);
>         ^
>  'krb5_salt'
>     krb5_salt salt_data;
>     ^
> msktkrb5.cpp:61:15: error: use of undeclared identifier 'krb5_kt_default_=
modify_name'; did you mean
>       'krb5_kt_default_name'?
>         ret =3D krb5_kt_default_modify_name(g_context.get(), keytab_name,=
 MAX_KEYTAB_NAME_LEN);
>               ^~~~~~~~~~~~~~~~~~~~~~~~~~~
>               krb5_kt_default_name
> /usr/local/include/krb5/krb5.h:4274:1: note: 'krb5_kt_default_name' decla=
red here
> krb5_kt_default_name(krb5_context context, char *name, int name_size);
> ^
> krb5wrap.cpp:83:26: error: use of undeclared identifier 'KRB5_PW_SALT'
>     salt_data.salttype =3D KRB5_PW_SALT;
>                          ^
> krb5wrap.cpp:163:5: error: use of undeclared identifier 'krb5_xfree'
>     krb5_xfree(principal_string);
>     ^
> krb5wrap.cpp:179:11: error: no member named 'keyblock' in 'krb5_keytab_en=
try_st'
>     entry.keyblock =3D keyblock.get();
>     ~~~~~ ^
> krb5wrap.cpp:197:11: error: no member named 'keyblock' in 'krb5_keytab_en=
try_st'
>     entry.keyblock.keytype =3D enctype;
>     ~~~~~ ^
> 9 errors generated.
> gmake[2]: *** [Makefile:34: krb5wrap.o] Error 1
> gmake[2]: *** Waiting for unfinished jobs....
> 2 errors generated.
> gmake[2]: *** [Makefile:34: msktutil.o] Error 1
> 2 errors generated.
> gmake[2]: *** [Makefile:34: msktkrb5.o] Error 1
> 1 error generated.
> gmake[2]: *** [Makefile:34: msktldap.o] Error 1
> gmake[2]: Leaving directory '/usr/ports/sysutils/msktutil/work/msktutil-1=
.0'
> =3D=3D=3D> Compilation failed unexpectedly.
> Try to set MAKE_JOBS_UNSAFE=3Dyes and rebuild before reporting the failur=
e to
> the maintainer.
> *** Error code 1
>=20
> Stop.
> make[1]: stopped in /usr/ports/sysutils/msktutil
> *** Error code 1
>=20
> Stop.
> make: stopped in /usr/ports/sysutils/msktutil

This is due to https://sourceforge.net/p/msktutil/tickets/59/ which has been
resolved in 1.0, but requires some configure args.

Patch attached to help configure to find the right GSS-API flavor.

--=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-218000-13>