[krbdev.mit.edu #8928] [PATCH] Constructor/destructor configure check fails on certain compilers

Misty De Meo via RT rt at krbdev.mit.edu
Fri Jul 31 12:51:26 EDT 2020


<URL: https://krbdev.mit.edu/rt/Ticket/Display.html?id=8928 >

On Mon, Jul 27, 2020 at 9:51 AM Greg Hudson via RT <rt at krbdev.mit.edu> wrote:
>
> > conftest.c:25:15: error: implicit declaration of function 'unlink' is
> invalid in C99 [-Werror,-Wimplicit-function-declaration]
>
> Was this configure run done with CPPFLAGS=-Werror or similar?
>
> If not, what version of clang was this?

This is Apple's clang 12, which now sets this by default. I didn't
explicitly pass these flags; they are now set implicitly.
You can find information about that in the Xcode beta release notes:
https://developer.apple.com/documentation/xcode-release-notes/xcode-12-beta-release-notes/

>
> (There seem to be other, more immediate problems with configuring with -Werror
> in the compiler flags, such as TRY_WARN_CC_FLAG_1 failing in AC_TRY_COMPILE([],
> 1;, ...) because "1;" generates an unused value warning. So probably something
> else is going on.)
>
>



More information about the krb5-bugs mailing list