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

can't pass the compile #55

Closed
haichaoji1234 opened this issue Jun 14, 2022 · 3 comments · Fixed by #57
Closed

can't pass the compile #55

haichaoji1234 opened this issue Jun 14, 2022 · 3 comments · Fixed by #57
Labels
bug Something isn't working

Comments

@haichaoji1234
Copy link

when try to compile the 4.2 example, it report error:
#14 44.55 CC libcurl_la-easy.lo
#14 44.63 In file included from easy.c:87:
#14 44.63 easy_lock.h: In function 'curl_simple_lock_lock':
#14 44.63 easy_lock.h:54:7: error: implicit declaration of function 'sched_yield' [-Werror=implicit-function-declaration]
#14 44.63 54 | sched_yield();
#14 44.63 | ^~~~~~~~~~~
#14 44.77 cc1: some warnings being treated as errors
#14 44.77 make[2]: *** [Makefile:2218: libcurl_la-easy.lo] Error 1
#14 44.77 make[2]: Leaving directory '/opt/build/curl/lib'
#14 44.77 make[1]: *** [Makefile:1355: all] Error 2
#14 44.77 make[1]: Leaving directory '/opt/build/curl/lib'
#14 44.77 make: *** [Makefile:1229: all-recursive] Error 1

I remembered that work with 4.0, but the example code keep unchanged. so it seems the curl version has some update, it can't work now.

i also try to upload a local old curl version, and it can pass compile

@haichaoji1234 haichaoji1234 added the bug Something isn't working label Jun 14, 2022
@haichaoji1234
Copy link
Author

this also happens to acap3 example, so it seems curl new version involve this error.

@pataxis
Copy link
Contributor

pataxis commented Jun 14, 2022

@haichaoji1234 Thanks for the report, we will have a look at this issue and get back to you.

@pataxis
Copy link
Contributor

pataxis commented Jun 17, 2022

@haichaoji1234 We have replaced the curl_example with openssl_curl_example where the curl version is locked. I hope that example can get you through the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
2 participants