You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get following error when trying to compile with the go-curl library:
# github.com/andelf/go-curl
In file included from ../../../go/pkg/mod/github.com/andelf/[email protected]/const.go:5:
./compat.h:423:2: error: #error your version is TOOOOOOOO low
423 | #error your version is TOOOOOOOO low
| ^~~~~
exit status 1
I have curl version 8.0.1 see output of the curl --version
The problem seems to be, that the file compat.h only supports version with major version 7.10 or higher.
As for as I have seen the 8.0.0 and 8.0.1 release should not break anything present in the 7.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 correct compat.h file as there is a fixed reference within it to curl versions 7.
The text was updated successfully, but these errors were encountered:
Laeri
added a commit
to Laeri/go-curl
that referenced
this issue
Mar 22, 2023
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 the
8.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.The text was updated successfully, but these errors were encountered: