[MacPorts] #60976: R @4.0.2 fails to configure with Xcode 12, missing includes in bzip2 test program (was: Failed to configure R, requires bzip2 version >= 1.0.6, yet bzip2 Version 1.0.8 is installed)
MacPorts
noreply at macports.org
Tue Aug 25 09:25:28 UTC 2020
#60976: R @4.0.2 fails to configure with Xcode 12, missing includes in bzip2 test
program
-----------------------+------------------------
Reporter: raramayo | Owner: i0ntempest
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: R |
-----------------------+------------------------
Comment (by jmroot):
The correct config.log shows that this is the problem:
{{{
conftest.c:257:5: error: implicitly declaring library function 'exit' with
type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-
declaration]
exit(strcmp(ver, "1.0.6") < 0);
^
conftest.c:257:5: note: include the header <stdlib.h> or explicitly
provide a declaration for 'exit'
conftest.c:257:10: error: implicitly declaring library function 'strcmp'
with type 'int (const char *, const char *)' [-Werror,-Wimplicit-function-
declaration]
exit(strcmp(ver, "1.0.6") < 0);
^
conftest.c:257:10: note: include the header <string.h> or explicitly
provide a declaration for 'strcmp'
}}}
The reporter of the duplicate was using the Xcode 12 beta CLTs. I would
assume that's why everyone isn't seeing this.
--
Ticket URL: <https://trac.macports.org/ticket/60976#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list