Subject: | No more __CURL_MULTI_H (libcurl 7.66.0) |
On FreeBSD 12 and 13 (which have libcurl 7.66.0 in the packages repository) WWW::Curl does not compile anymore even with the patch provided in https://rt.cpan.org/Ticket/Display.html?id=117793 :
...
cc -c -I/usr/local/include -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_FORTIFY_SOURCE=2 -O2 -pipe -DVERSION=\"4.17\" -DXS_VERSION=\"4.17\" -DPIC -fPIC "-I/usr/perl5.28.0p/lib/5.28.0/amd64-freebsd/CORE" Curl.c
Curl.xs:76:5: error: declaration of anonymous struct must be a definition
struct void *curlm;
^
Curl.xs:76:23: error: type name requires a specifier or qualifier
struct void *curlm;
^
Curl.xs:236:5: warning: division by zero is undefined [-Wdivision-by-zero]
Newz(1, self, 1, perl_curl_multi);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/perl5.28.0p/lib/5.28.0/amd64-freebsd/CORE/handy.h:2383:23: note: expanded from macro 'Newz'
#define Newz(x,v,n,t) Newxz(v,n,t)
^~~~~~~~~~~~
... etc ...
On first look it seems that the "header file reload protection macros" like __CURL_MULTI_H are now named CURLINC_MULTI_H