Comments (2)
There's another issue building Net::Curl on WIndows (and perhaps other systems, too).
In the Makefile.PL, WriteMakefile's CCFLAGS doesn't specify $Config{ccflags} and consequently there's a mismatch between the loadable library and the perl binaries.
With 5.20 and earlier, this mismatch was not detected (so there was no problem) - but 5.22 checks for the mismatch, finds it, and then refuses to load the loadable library, thereby making the module unusable.
To fix this, I changed the Makefile.PL so that WriteMakefile's CCFLAGS became:
CCFLAGS => "$Config::Config{ccflags} " . $devel_cflags . $curl{cflags} . $bits,
But then there were problems with PerlSIO_fread and PerlSIO_fwrite that necessitated the following patch to Curl.xs.
(The occurrence of "MINGW32" in the line "#ifdef MINGW32" needs to be prefixed and suffixed by a double underscore. Sorry, I don't know how to defeat git's behaviour in this regard.)
--- Curl.xs_orig 2015-06-22 19:33:33 +1000
+++ Curl.xs 2015-06-22 19:51:00 +1000
@@ -17,6 +17,15 @@
#include "perl.h"
#include "XSUB.h"
+#ifdef MINGW32
+#ifdef fread
+#undef fread
+#endif
+#ifdef fwrite
+#undef fwrite
+#endif
+#endif
+
#include <curl/curl.h>
#include <curl/easy.h>
#include <curl/multi.h>
Net-Curl-0.37 then built fine on both 5.22 and earlier perls.
The same test failures as already reported in this thread still ensued.
Cheers,
Rob
from perl-net-curl.
Sorry I do not have Windows and I do not know how to use it anymore. Pull requests are very welcome, tho! (hint hint @YenForYang ;)
from perl-net-curl.
Related Issues (20)
- Net::Curl blackholes exceptions from callbacks HOT 1
- Net::Curl fails compilation under Linux 5.4.12
- macOS: cookie sharing seems not to work HOT 3
- cannot build against libcurl 7.69.0 HOT 5
- t/01-constants.t fails on Mac (if ExtUtils::PkgConfig is installed?) HOT 4
- multi object lacks CURLMOPT_SOCKETFUNCTION callback! HOT 5
- Double-free if easy is freed at global destruction HOT 4
- t/compat-10errbuf.t is flaky under darwin19.0 HOT 1
- Feature Request: get() and set() Easy methods HOT 3
- setopt() uses SvPV(), doesn’t document whether it’s for bytes or characters
- Occasional segfault at global destruction HOT 1
- Can’t install w/ FreeBSD 13’s pkg perl 5.32.1 HOT 3
- 70-escape-unescape.t fails on CloudLinux HOT 5
- CPAN install error on OS X HOT 1
- http2 partial defect with a proxy HOT 6
- curl 7.87.0 build breakage HOT 5
- curl_slist_append using HOT 4
- old-10errbuf.t failed with curl 8.2.0 HOT 2
- t/old-10errbuf.t may fail (curl 7.64.0) HOT 2
- old-10errbuf.t fails with curl 8.6.0 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from perl-net-curl.