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

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Greg Hudson via RT-3

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

> 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?

(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.)


_______________________________________________
krb5-bugs mailing list
[hidden email]
https://mailman.mit.edu/mailman/listinfo/krb5-bugs
Reply | Threaded
Open this post in threaded view
|

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

Greg Hudson via RT-3

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

On Mon, Jul 27, 2020 at 9:51 AM Greg Hudson via RT <[hidden email]> 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.)
>
>

_______________________________________________
krb5-bugs mailing list
[hidden email]
https://mailman.mit.edu/mailman/listinfo/krb5-bugs