Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG install from go (compile) #331

Closed
gianfelicevincenzo opened this issue Sep 27, 2023 · 3 comments
Closed

BUG install from go (compile) #331

gianfelicevincenzo opened this issue Sep 27, 2023 · 3 comments
Assignees
Labels

Comments

@gianfelicevincenzo
Copy link

Debian 12 (x64) (kernel 6.1)
Curl lib: 7.88.1-10+deb12u1

Run command go install github.com/Ullaakut/cameradar/v5/cmd/cameradar@lates

/opt/go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/easy.go: In function ‘curl_formadd_name_content_length’:
/opt/go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/easy.go:40:5: warning: ‘curl_formadd’ is deprecated: since 7.56.0. Use curl_mime_init() [-Wdeprecated-declarations]
   40 |     return curl_formadd(httppost, last_post,
      |     ^~~~~~
In file included from /opt/go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/easy.go:5:
/usr/include/x86_64-linux-gnu/curl/curl.h:2575:1: note: declared here
 2575 | curl_formadd(struct curl_httppost **httppost,
      | ^~~~~~~~~~~~
/opt/go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/easy.go:41:25: warning: ‘CURLFORM_COPYNAME’ is deprecated: since 7.56.0. Use curl_mime_name() [-Wdeprecated-declarations]
   41 |                         CURLFORM_COPYNAME, name,
      |                         ^~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/curl/curl.h:2500:3: note: declared here
 2500 |   CURLFORM_COPYNAME        CURL_DEPRECATED(7.56.0, "Use curl_mime_name()"),
      |   ^~~~~~~~~~~~~~~~~
/opt/go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/easy.go:42:25: warning: ‘CURLFORM_COPYCONTENTS’ is deprecated: since 7.56.0. Use curl_mime_data() [-Wdeprecated-declarations]
   42 |                         CURLFORM_COPYCONTENTS, content,
      |                         ^~~~~~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/curl/curl.h:2503:3: note: declared here
 2503 |   CURLFORM_COPYCONTENTS    CURL_DEPRECATED(7.56.0, "Use curl_mime_data()"),
      |   ^~~~~~~~~~~~~~~~~~~~~
/opt/go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/easy.go:43:25: warning: ‘CURLFORM_CONTENTSLENGTH’ is deprecated: since 7.56.0. Use curl_mime_data() [-Wdeprecated-declarations]
   43 |                         CURLFORM_CONTENTSLENGTH, length, CURLFORM_END);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/curl/curl.h:2505:3: note: declared here
 2505 |   CURLFORM_CONTENTSLENGTH  CURL_DEPRECATED(7.56.0, "Use curl_mime_data()"),
      |   ^~~~~~~~~~~~~~~~~~~~~~~
/opt/go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/easy.go: In function ‘curl_formadd_name_content_length_type’:
/opt/go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/easy.go:47:5: warning: ‘curl_formadd’ is deprecated: since 7.56.0. Use curl_mime_init() [-Wdeprecated-declarations]
   47 |     return curl_formadd(httppost, last_post,
      |     ^~~~~~
/usr/include/x86_64-linux-gnu/curl/curl.h:2575:1: note: declared here
 2575 | curl_formadd(struct curl_httppost **httppost,
      | ^~~~~~~~~~~~
/opt/go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/easy.go:48:25: warning: ‘CURLFORM_COPYNAME’ is deprecated: since 7.56.0. Use curl_mime_name() [-Wdeprecated-declarations]
   48 |                         CURLFORM_COPYNAME, name,
      |                         ^~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/curl/curl.h:2500:3: note: declared here
 2500 |   CURLFORM_COPYNAME        CURL_DEPRECATED(7.56.0, "Use curl_mime_name()"),
      |   ^~~~~~~~~~~~~~~~~
/opt/go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/easy.go:49:25: warning: ‘CURLFORM_COPYCONTENTS’ is deprecated: since 7.56.0. Use curl_mime_data() [-Wdeprecated-declarations]
   49 |                         CURLFORM_COPYCONTENTS, content,
      |                         ^~~~~~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/curl/curl.h:2503:3: note: declared here
 2503 |   CURLFORM_COPYCONTENTS    CURL_DEPRECATED(7.56.0, "Use curl_mime_data()"),
      |   ^~~~~~~~~~~~~~~~~~~~~
/opt/go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/easy.go:50:25: warning: ‘CURLFORM_CONTENTSLENGTH’ is deprecated: since 7.56.0. Use curl_mime_data() [-Wdeprecated-declarations]
   50 |                         CURLFORM_CONTENTSLENGTH, length,
      |                         ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/curl/curl.h:2505:3: note: declared here
 2505 |   CURLFORM_CONTENTSLENGTH  CURL_DEPRECATED(7.56.0, "Use curl_mime_data()"),
      |   ^~~~~~~~~~~~~~~~~~~~~~~
/opt/go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/easy.go:51:25: warning: ‘CURLFORM_CONTENTTYPE’ is deprecated: since 7.56.0. Use curl_mime_type() [-Wdeprecated-declarations]
   51 |                         CURLFORM_CONTENTTYPE, type, CURLFORM_END);
      |                         ^~~~~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/curl/curl.h:2515:3: note: declared here
 2515 |   CURLFORM_CONTENTTYPE     CURL_DEPRECATED(7.56.0, "Use curl_mime_type()"),
      |   ^~~~~~~~~~~~~~~~~~~~
/opt/go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/easy.go: In function ‘curl_formadd_name_file_type’:
/opt/go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/easy.go:55:5: warning: ‘curl_formadd’ is deprecated: since 7.56.0. Use curl_mime_init() [-Wdeprecated-declarations]
   55 |     return curl_formadd(httppost, last_post,
      |     ^~~~~~
/usr/include/x86_64-linux-gnu/curl/curl.h:2575:1: note: declared here
 2575 | curl_formadd(struct curl_httppost **httppost,
      | ^~~~~~~~~~~~
/opt/go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/easy.go:56:25: warning: ‘CURLFORM_COPYNAME’ is deprecated: since 7.56.0. Use curl_mime_name() [-Wdeprecated-declarations]
   56 |                         CURLFORM_COPYNAME, name,
      |                         ^~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/curl/curl.h:2500:3: note: declared here
 2500 |   CURLFORM_COPYNAME        CURL_DEPRECATED(7.56.0, "Use curl_mime_name()"),
      |   ^~~~~~~~~~~~~~~~~
/opt/go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/easy.go:57:25: warning: ‘CURLFORM_FILE’ is deprecated: since 7.56.0. Use curl_mime_filedata() [-Wdeprecated-declarations]
   57 |                         CURLFORM_FILE, filename,
      |                         ^~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/curl/curl.h:2509:3: note: declared here
 2509 |   CURLFORM_FILE            CURL_DEPRECATED(7.56.0, "Use curl_mime_filedata()"),
      |   ^~~~~~~~~~~~~
/opt/go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/easy.go:58:25: warning: ‘CURLFORM_CONTENTTYPE’ is deprecated: since 7.56.0. Use curl_mime_type() [-Wdeprecated-declarations]
   58 |                         CURLFORM_CONTENTTYPE, type, CURLFORM_END);
      |                         ^~~~~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/curl/curl.h:2515:3: note: declared here
 2515 |   CURLFORM_CONTENTTYPE     CURL_DEPRECATED(7.56.0, "Use curl_mime_type()"),
      |   ^~~~~~~~~~~~~~~~~~~~

@gianfelicevincenzo gianfelicevincenzo changed the title BUG build compile BUG install from go (compile) Sep 27, 2023
@Ullaakut
Copy link
Owner

Hi @vincenzogianfelice !

As specified in the README, the curllib version has to be strictly <7.66 because of this issue. Essentially an RTSP support feature was dropped in later versions, which means it can't be used to access cameras anymore if they run digest authentication.

@Ullaakut Ullaakut self-assigned this Sep 28, 2023
@gianfelicevincenzo
Copy link
Author

@Ullaakut I've seen that this problem has been around for quite some time. I ask you a question: if the new versions of libcurl are not fully compatible, why not insert the compatible libcurl library into your project?

@Ullaakut
Copy link
Owner

Ullaakut commented Oct 2, 2023

What do you mean? My project depends on an external libcurl version, and it's a go project. I don't want to add the thousands of lines of C code from the libcurl to my repository, or even an archive of the library, because then it also means I need to have it for every OS.

Since the repository is mainly used through Docker, I don't think it'd be worth the hassle. WDYT?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants