Giter Club home page Giter Club logo

Comments (2)

sisyphus avatar sisyphus commented on August 23, 2024 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.

creaktive avatar creaktive commented on August 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.