[MacPorts] #61622: p5-www-curl @4.17: error: use of undeclared identifier 'CURL_WIN32' 'CURLOPT' (was: p5-www-curl @4.17: error: #endif without #if)

MacPorts noreply at macports.org
Tue Nov 23 15:49:34 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  |
--------------------------+----------------------
Changes (by ryandesign):

 * keywords:  bigsur =>


Comment:

 The above errors occur during the configuration phase but don't actually
 stop the build. I don't know how detrimental those errors are—maybe not at
 all since I guess they've been occurring since at least 2015 yet we've had
 successful builds of the port up to 2019.

 The fatal errors don't occur until the build phase in which we have:
 {{{
 In file included from Curl.xs:578:
 ./curlopt-constants.c:188:46: error: use of undeclared identifier
 'CURL_WIN32'
             if (strEQ(name, "WIN32")) return CURL_WIN32;
                                              ^
 ./curlopt-constants.c:2660:48: error: use of undeclared identifier
 'CURLOPT'
             if (strEQ(name, "CURLOPT")) return CURLOPT;
                                                ^
 }}}
 This was reported upstream in March 2020 here:

 https://rt.cpan.org/Public/Bug/Display.html?id=132197

 There is a patch provided there.

-- 
Ticket URL: <https://trac.macports.org/ticket/61622#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list