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

"Misty De Meo via RT" <[email protected]>
Newsgroups gmane.comp.encryption.kerberos.bugs
Message-ID <[email protected]>
<URL: https://krbdev.mit.edu/rt/Ticket/Display.html?id=8928 >

On Mon, Jul 27, 2020 at 9:51 AM Greg Hudson via RT <[email protected]> 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.)
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.