Re: [Haskell-cafe] curl package broken in Windows

Heh, I was trying to build this yesterday and it was making by eyes bleed. With the curl package on Hackage, I merely need an SSL enabled version of libcurl, and every Linux distro I've tried this on has several variations of such a package. (You have a choice of OpenSSL or GNUTLS, for example.) Apparently neither OpenSSL nor cURL wants to provide such a Windows binary package, though, so I attempted to build a version of libcurl with SSL support... Sigbjorn's instructions are definitely out of date. (I couldn't use his ZIP package, either.) Using MSYS, though, I was able to compile a version of libcurl with winssl, but then every variation of cabal install command wasn't cooperating. What should I be using instead of the following, neither of which seems to tell cabal where to find libcurl? ``` $ CPPFLAGS=-Ic:/code/curl_install/include cabal install curl --ld-options=-Lc:/code/curl_install/lib $ cabal install curl --extra-lib-dirs=c:/code/curl_install/lib --extra-include-dirs=c:/code/curl_install/include ``` Detail, showing some verbose error messages: https://gist.github.com/4056331 Kevin

Kevin Cantu wrote:
With the curl package on Hackage, I merely need an SSL enabled version of libcurl, and every Linux distro I've tried this on has several variations of such a package. (You have a choice of OpenSSL or GNUTLS, for example.)
I tried the CURL bindings on Linux some time ago and I personally found the thing pretty much un-usable. The API was incomplete, inconsistent and way too close to the C API. However, I have had much better luck with Michael Snoyman's http-conduit package, which being pure Haskell (ie no C) should be much easier to install on windows. Erik -- ---------------------------------------------------------------------- Erik de Castro Lopo http://www.mega-nerd.com/

Hi,
the curl binding certainly needs some love---if anyone has the time to fix
it up and maintain it, help would be most appreciated. There is a repo for
it over here: https://github.com/GaloisInc/curl which is the most up-to
date version I know of, but since the last commit there seems to be from 4
years ago, I'm not going to bet that there aren't any additional fixes
floating around. (cc-ing Don, who is listed as the maintainer, but I'm not
sure if he has time to deal with curl right now)
-Iavor
On Sun, Nov 11, 2012 at 3:34 PM, Erik de Castro Lopo
Kevin Cantu wrote:
With the curl package on Hackage, I merely need an SSL enabled version of libcurl, and every Linux distro I've tried this on has several variations of such a package. (You have a choice of OpenSSL or GNUTLS, for example.)
I tried the CURL bindings on Linux some time ago and I personally found the thing pretty much un-usable. The API was incomplete, inconsistent and way too close to the C API.
However, I have had much better luck with Michael Snoyman's http-conduit package, which being pure Haskell (ie no C) should be much easier to install on windows.
Erik -- ---------------------------------------------------------------------- Erik de Castro Lopo http://www.mega-nerd.com/
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

On Mon, Nov 12, 2012 at 01:48:23PM -0800, Iavor Diatchki wrote:
Hi,
the curl binding certainly needs some love---if anyone has the time to fix it up and maintain it, help would be most appreciated. There is a repo for it over here: https://github.com/GaloisInc/curl which is the most up-to date version I know of, but since the last commit there seems to be from 4 years ago, I'm not going to bet that there aren't any additional fixes floating around. (cc-ing Don, who is listed as the maintainer, but I'm not sure if he has time to deal with curl right now)
I've tried to contact Don multiple times over the past month with offers of whatever help I can give, but I heard nothing back. I didn't know about the github repo (it's not listed on the hackage page), so thanks a lot for that info, I'll try to send some merge requests and file bugs (there is a least one critical bug w.r.t. SSL usage on Linux and another small-impact bug with cookie jars usage). iustin, who uses curl and _really_ wants to see it improved

On Mon, Nov 12, 2012 at 10:57:25PM +0100, Iustin Pop wrote:
On Mon, Nov 12, 2012 at 01:48:23PM -0800, Iavor Diatchki wrote:
Hi,
the curl binding certainly needs some love---if anyone has the time to fix it up and maintain it, help would be most appreciated. There is a repo for it over here: https://github.com/GaloisInc/curl which is the most up-to date version I know of, but since the last commit there seems to be from 4 years ago, I'm not going to bet that there aren't any additional fixes floating around. (cc-ing Don, who is listed as the maintainer, but I'm not sure if he has time to deal with curl right now)
I've tried to contact Don multiple times over the past month with offers of whatever help I can give, but I heard nothing back.
I didn't know about the github repo (it's not listed on the hackage page), so thanks a lot for that info, I'll try to send some merge requests and file bugs (there is a least one critical bug w.r.t. SSL usage on Linux and another small-impact bug with cookie jars usage).
Hmm, checking again, the github repo is at version 1.3.5 (April 2009), whereas hackage is at version 1.3.7 (uploaded in May 2011). Still hunting for a correct upstream project page or tracker… regards, iustin

Hi,
Ok, there were only minor differences between the repo and the version on
hackage so I imported the changes into the repo, which should now be the
same as version 1.3.7 on hackage.
Please feel free to submit merge requests----all the folks I know who
worked on this originally are busy with other stuff, so we really need
someone who's using the library to help.
Thanks!
-Iavor
On Mon, Nov 12, 2012 at 2:06 PM, Iustin Pop
On Mon, Nov 12, 2012 at 10:57:25PM +0100, Iustin Pop wrote:
On Mon, Nov 12, 2012 at 01:48:23PM -0800, Iavor Diatchki wrote:
Hi,
the curl binding certainly needs some love---if anyone has the time to fix it up and maintain it, help would be most appreciated. There is a repo for it over here: https://github.com/GaloisInc/curl which is the most up-to date version I know of, but since the last commit there seems to be from 4 years ago, I'm not going to bet that there aren't any additional fixes floating around. (cc-ing Don, who is listed as the maintainer, but I'm not sure if he has time to deal with curl right now)
I've tried to contact Don multiple times over the past month with offers of whatever help I can give, but I heard nothing back.
I didn't know about the github repo (it's not listed on the hackage page), so thanks a lot for that info, I'll try to send some merge requests and file bugs (there is a least one critical bug w.r.t. SSL usage on Linux and another small-impact bug with cookie jars usage).
Hmm, checking again, the github repo is at version 1.3.5 (April 2009), whereas hackage is at version 1.3.7 (uploaded in May 2011).
Still hunting for a correct upstream project page or tracker…
regards, iustin

On 11/12/12 17:43, Iavor Diatchki wrote:
Hi,
Ok, there were only minor differences between the repo and the version on hackage so I imported the changes into the repo, which should now be the same as version 1.3.7 on hackage. Please feel free to submit merge requests----all the folks I know who worked on this originally are busy with other stuff, so we really need someone who's using the library to help.
I reported this a while ago, and Iustin gave an awesome explanation of the problem: http://haskell.1045720.n5.nabble.com/Network-Curl-cookie-jar-madness-td57163... I've since switched to http-conduit for that project but it would be nice to have curl working anyway because it requires less thinking. If someone's going to maintain it, then consider this a bug report!

On Mon, Nov 12, 2012 at 08:23:21PM -0500, Michael Orlitzky wrote:
On 11/12/12 17:43, Iavor Diatchki wrote:
Hi,
Ok, there were only minor differences between the repo and the version on hackage so I imported the changes into the repo, which should now be the same as version 1.3.7 on hackage. Please feel free to submit merge requests----all the folks I know who worked on this originally are busy with other stuff, so we really need someone who's using the library to help.
I reported this a while ago, and Iustin gave an awesome explanation of the problem:
http://haskell.1045720.n5.nabble.com/Network-Curl-cookie-jar-madness-td57163...
I've since switched to http-conduit for that project but it would be nice to have curl working anyway because it requires less thinking. If someone's going to maintain it, then consider this a bug report!
I will file that as a bug report, thanks for the reminder! iustin

On Mon, Nov 12, 2012 at 02:43:32PM -0800, Iavor Diatchki wrote:
Hi,
Ok, there were only minor differences between the repo and the version on hackage so I imported the changes into the repo, which should now be the same as version 1.3.7 on hackage. Please feel free to submit merge requests----all the folks I know who worked on this originally are busy with other stuff, so we really need someone who's using the library to help.
Hi, So I started by filling a couple of bug reports (yay for a bugtracker, finally). However, it seems that I can't set labels on the issues (bugs vs. enhancements), probably github rights. Will try to send merge requests as well, time/skills permitting. thanks, iustin
participants (5)
-
Erik de Castro Lopo
-
Iavor Diatchki
-
Iustin Pop
-
Kevin Cantu
-
Michael Orlitzky