Skip Menu |

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

Report information
The Basics
Id: 62609
Status: open
Priority: 0/
Queue: WWW-Curl

People
Owner: Nobody in particular
Requestors: larry_lau [...] 163.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 4.14
Fixed in: (no value)



Subject: a compiling error occured on install into strawberryperl
Curl.xs: In function 'XS_WWW__Curl__Easy_init': D:\strawberry-perl\perl\lib\CORE/XSUB.h:518: error: 'PerlSIO_fread' undeclared ( first use in this function) D:\strawberry-perl\perl\lib\CORE/XSUB.h:518: error: (Each undeclared identifier is reported only once D:\strawberry-perl\perl\lib\CORE/XSUB.h:518: error: for each function it appears in.) D:\strawberry-perl\perl\lib\CORE/XSUB.h:519: error: 'PerlSIO_fwrite' undeclared (first use in this function) Curl.xs: In function 'XS_WWW__Curl__Easy_duphandle': D:\strawberry-perl\perl\lib\CORE/XSUB.h:518: error: 'PerlSIO_fread' undeclared ( first use in this function) D:\strawberry-perl\perl\lib\CORE/XSUB.h:519: error: 'PerlSIO_fwrite' undeclared (first use in this function) Curl.xs: In function 'XS_WWW__Curl__Easy_setopt': D:\strawberry-perl\perl\lib\CORE/XSUB.h:518: error: 'PerlSIO_fread' undeclared ( first use in this function) D:\strawberry-perl\perl\lib\CORE/XSUB.h:519: error: 'PerlSIO_fwrite' undeclared (first use in this function) Curl.xs: In function 'XS_WWW__Curl__Multi_info_read': D:\strawberry-perl\perl\lib\CORE/XSUB.h:518: error: 'PerlSIO_fread' undeclared ( first use in this function) D:\strawberry-perl\perl\lib\CORE/XSUB.h:519: error: 'PerlSIO_fwrite' undeclared (first use in this function) dmake: Error code 129, while making 'Curl.o'
On Mon Nov 01 07:16:38 2010, larrylau wrote: Show quoted text
> Curl.xs: In function 'XS_WWW__Curl__Multi_info_read': > D:\strawberry-perl\perl\lib\CORE/XSUB.h:518: error: 'PerlSIO_fread' > undeclared ( > first use in this function) > D:\strawberry-perl\perl\lib\CORE/XSUB.h:519: error: 'PerlSIO_fwrite' > undeclared
I worked around this problem with the following small patch to Curl.xs: --- Curl.xs_orig 2013-07-24 21:30:14 +1000 +++ Curl.xs 2013-07-24 21:28:18 +1000 @@ -15,6 +15,13 @@ #include "perl.h" #include "XSUB.h" +#ifdef fread +#undef fread +#endif +#ifdef fwrite +#undef fwrite +#endif + #include <curl/curl.h> #include <curl/easy.h> #include <curl/multi.h> Cheers, Rob