Skip Menu |

This queue is for tickets about the WWW-Curl CPAN distribution.

Report information
The Basics
Id: 130591
Status: new
Priority: 0/
Queue: WWW-Curl

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 4.17
Fixed in: (no value)



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
On 2019-09-29 12:26:11, SREZIC wrote: Show quoted text
> 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
A possible patch may be found in http://cpan.cpantesters.org/authors/id/S/SR/SREZIC/patches/WWW-Curl-4.17-RT130591.patch CPAN.pm users may use the following distropref file for automatic patching: https://github.com/eserte/srezic-cpan-distroprefs/blob/master/WWW-Curl.yml