[MacPorts] #61622: p5-www-curl @4.17: error: use of undeclared identifier 'CURL_WIN32' 'CURLOPT'
MacPorts
noreply at macports.org
Tue Nov 23 16:05:44 UTC 2021
#61622: p5-www-curl @4.17: error: use of undeclared identifier 'CURL_WIN32'
'CURLOPT'
--------------------------+----------------------
Reporter: ryandesign | Owner: fracai
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.6.4
Resolution: | Keywords:
Port: p5-www-curl |
--------------------------+----------------------
Comment (by ryandesign):
Replying to [ticket:61622 ryandesign]:
> {{{
>
/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk/usr/include/AvailabilityInternal.h:142:2:
error: #endif without #if
> }}}
This is discussed here:
https://rt.cpan.org/Public/Bug/Display.html?id=131089 \\
https://github.com/szbalint/WWW--Curl/issues/16#issuecomment-558645508 \\
https://stackoverflow.com/questions/42031921/unterminated-unconditional-
directive-error-when-preprocessing-c-code
It seems to happen because WWW::Curl's Makefile.PL invokes `cpp` and `cpp`
has a bug that makes it unable to parse these system headers. The fix is
apparently to use `$CC -E` instead of `cpp`, if we can figure out how to
get the value of `$CC` in Makefile.PL.
--
Ticket URL: <https://trac.macports.org/ticket/61622#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list