Re: ./configure bugs on OS X

Christian Ebert <[email protected]> Wed, 15 Dec 2021 10:45:53 +0000
Newsgroups gmane.network.slrn.user
Organization Phloxic Productions https://phloxic.productions
Message-ID <[email protected]>
* Daniel Macks on Thursday, June 10, 2021 at 07:05:24 -0400:
> Building slrn-1.0.3a fails on recent OS X because the compiler treats implicit function declarations as errors, which causes some ./configure tests to fail to detect features that actually exist on this platform:
> 
> : checking for an implementation of va_copy()... no
> : checking for an implementation of __va_copy()... no
> : checking whether va_lists can be copied by value... no
> 
> Those first two should be "yes". According to config.log, the problems look like:
> 
> : conftest.c:93:4: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))'
> :           exit (1);
> :           ^
> : conftest.c:93:4: note: include the header <stdlib.h> or explicitly provide a declaration for 'exit'
> 
> Putting '#include <stdlib.h>' (not just stdarg.h) in the AC_ VA_COPY function fixes it.

I can confirm that this fixes the problem.

-- 
https://instagram.com/christianebertphotos