• Version 1.19.1 compilation issue - RedHat Linux

    From Vipul Mehta@21:1/5 to All on Wed May 12 17:47:26 2021
    Hi,

    I am trying to compiler MIT Kerberos version 1.19.1 in RedHat linux with following gcc:
    gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-4)

    Getting following error:
    gic_keytab.c:185: error: ‘etype_list’ may be used uninitialized in this function
    At top level:
    cc1: warning: unrecognized command line option "-Wno-maybe-uninitialized"

    In config.log, i can see that configure script is not able to identify that
    the option is not supported as gcc gives warning instead of error: configure:4708: gcc -c -g -O2 -Wno-maybe-uninitialized conftest.c >&5 configure:4708: $? = 0
    configure:4721: result: yes

    It compiles fine if i remove "error=uninitialized" to allow uninitialized variables.
    Is it safe to compile without it ?
    What is the version of gcc used to build and test MIT Kerberos in dev environment ?

    --
    Regards,
    Vipul

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Greg Hudson@21:1/5 to Vipul Mehta on Wed May 12 13:06:06 2021
    To: kerberos@mit.edu

    On 5/12/21 8:17 AM, Vipul Mehta wrote:
    Getting following error:
    gic_keytab.c:185: error: ‘etype_list’ may be used uninitialized in this function

    This is a false positive (etype_list can only be used uninitialized if k5_canonprinc() returns zero candidates without erroring out, and it
    doesn't do that). But I will likely add an initializer for etype_list
    as I think the function is clearer that way.

    In general I found that maybe-uninitialized warnings are almost always
    false positives and depend a lot on the compiler version, which is why I attempted to turn them off. Apparently that's not possible in that
    particular version of gcc, without also turning off errors for
    -Wuninitialized (which are much less likely to be false positives).

    At top level:
    cc1: warning: unrecognized command line option "-Wno-maybe-uninitialized"

    In config.log, i can see that configure script is not able to identify that the option is not supported as gcc gives warning instead of error:

    Interesting. More recent versions of gcc seem to silently ignore
    unrecognized -Wno- flags, while clang continues to print a warning
    rather than error.

    This is a minor problem, but having a working test for -Wno- options
    would be an improvement.

    It compiles fine if i remove "error=uninitialized" to allow uninitialized variables.
    Is it safe to compile without it ?

    Yes.

    What is the version of gcc used to build and test MIT Kerberos in dev environment ?

    At the moment, gcc 7.5.0 in my dev environment, plus whatever version of
    gcc is on the Github Actions runners.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Robbie Harwood@21:1/5 to Vipul Mehta on Thu May 13 11:45:11 2021
    To: kerberos@mit.edu

    Vipul Mehta <vipulmehta.1989@gmail.com> writes:

    I am trying to compiler MIT Kerberos version 1.19.1 in RedHat linux with following gcc:
    gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-4)

    What is the version of gcc used to build and test MIT Kerberos in dev environment ?

    For what it's worth: I make the RHEL krb5 builds with gcc at whatever
    version is in that specific RHEL, and do the same for Fedora. I don't
    usually test older RHEL (i.e., older gcc) with newer krb5.

    Thanks,
    --Robbie

    -----BEGIN PGP SIGNATURE-----

    iQJIBAEBCgAyFiEEA5qc6hnelQjDaHWqJTL5F2qVpEIFAmCdSYcUHHJoYXJ3b29k QHJlZGhhdC5jb20ACgkQJTL5F2qVpEKA3g//Wwf3WgPmFFerlnEDRKxMlgDigAfO +a7EDQvqtq3EtwE1iat1jUlQtolt6fyC4eG1QM13Gg2I06Zyyyj7ChkydCHAjbg2 5JtJR7csYYp3WzrzPaHN4vEELFcvYQ3AvYL9/q/CUyAXxiZPUNU3QlVog19mex3O SzBRlIIWL51nk0WA2UeqsFkMfYpixCC1y33QwGF8dOuuWGAYwjvanqzvKbxFzU05 BRQbfmGn1jfUeIBHZY9Pb2uuvIO7ojr9uHut5/arJYu1IFBcAVri/Bu6W47sD/fA 3urA8D5185uPIyfTOekHsv72YVlk7RwAvX/FoITGAItTNfcOQkth3YvgCIoGo4zb w60WOParfb0s5T9lyHUUZFnafVyYX0ABOmJEY+GyIzqLbUC8dymYWg5TqR8CZQH8 58ypBKPOyYBoM4wE8J8WFpUcsaxkmnmSd2sK39qOWuv75Kd0rOOcCinGgsS6qYNb NkcyKn0vYWJUWrB70q56ZCXDwsBPlxwavqWmgiO11ujSNl+ZVYuEwX1euRMF2ulR nNouPvat7Qf62gH2AhnNR3vp8G9+v/AZrh7iVYG3HKMEutXiEaPglpUi/8+sonnz 24lj9FwNEgX0ogx9r1lAVIYw6jpg7KsRX4kHYvRlFWr+Hl55YNbBdVH8FYCJAXjT 2mNxU2vxabV1+Ps=
    =K6uE
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Vipul Mehta@21:1/5 to Robbie Harwood on Mon May 17 17:00:11 2021
    To: kerberos@mit.edu

    Workaround of removing "error=uninitialized" is working fine.
    Will report if I find any issue during runtime.

    I believe not many have migrated to the 1.19.x version and we might be
    early consumers. We are looking specifically for resourced based
    constrained delegation support added in version 1.19.


    On Thu, May 13, 2021 at 9:15 PM Robbie Harwood <rharwood@redhat.com> wrote:

    Vipul Mehta <vipulmehta.1989@gmail.com> writes:

    I am trying to compiler MIT Kerberos version 1.19.1 in RedHat linux with following gcc:
    gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-4)

    What is the version of gcc used to build and test MIT Kerberos in dev environment ?

    For what it's worth: I make the RHEL krb5 builds with gcc at whatever
    version is in that specific RHEL, and do the same for Fedora. I don't usually test older RHEL (i.e., older gcc) with newer krb5.

    Thanks,
    --Robbie



    --
    Regards,
    Vipul

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)