Open Laeri opened 1 year ago
This impacts me as well, and I solved it in a different way:
In compat.h, I changed the version TOO low check to:
#if (LIBCURL_VERSION_MAJOR == 7 && LIBCURL_VERSION_MINOR == 10 && LIBCURL_VERSION_PATCH < 1) || (LIBCURL_VERSION_MAJOR == 7 && LIBCURL_VERSION_MINOR < 10)
#error your version is TOOOOOOOO low
I'll also comment this on the PR. My fix is not going to be sufficient (likely that LIBCURL_VERSION_MAJOR needs to be added to every line in the file, especially given that compat.h pre-dates curl 8, but I don't want to make changes I can not test)
I get following error when trying to compile with the go-curl library:
I have curl version
8.0.1
see output of thecurl --version
The problem seems to be, that the file
compat.h
only supports version with major version7.10
or higher. As for as I have seen the8.0.0
and8.0.1
release should not break anything present in the7.X+
release as the changelog is rather small. In addition, curl does not follow semver semantics so the upgrade to 8 is not necessarily breaking in this case.I have a change in my fork right now on the
compatgen.py
file which I am testing right now. I had to modify it as rerunning it does not create a correctcompat.h
file as there is a fixed reference within it to curl versions 7.