Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 855710 - net-misc/curl-7.84.0: /var/tmp/portage/net-misc/curl-7.84.0/work/curl-7.84.0/lib/easy_lock.h:56:7: error: implicit declaration of function 'sched_yield' [-Werror=implicit-function-declaration]
Summary: net-misc/curl-7.84.0: /var/tmp/portage/net-misc/curl-7.84.0/work/curl-7.84.0/...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: Loong Linux
: Normal normal (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: 855572
  Show dependency tree
 
Reported: 2022-07-02 09:45 UTC by HougeLangley
Modified: 2022-07-02 12:41 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Build Log (curl-7.84.0-full-build-log.log,69.97 KB, text/x-log)
2022-07-02 09:45 UTC, HougeLangley
Details
emerge --info (emerge-info.log,6.11 KB, text/x-log)
2022-07-02 09:47 UTC, HougeLangley
Details

Note You need to log in before you can comment on or make changes to this bug.
Description HougeLangley 2022-07-02 09:45:48 UTC
Created attachment 789458 [details]
Build Log

/bin/sh ../libtool  --tag=CC   --mode=compile loongarch64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H   -I/var/tmp/portage/net-misc/curl-7.84.0/work/curl-7.84.0/include -I../lib -I/var/tmp/portage/net-misc/curl-7.84.0/work/curl-7.84.0/lib -DBUILDING_LIBCURL  -DCURL_HIDDEN_SYMBOLS   -fvisibility=hidden -O2 -pipe -Werror-implicit-function-declaration  -c -o libcurl_la-easyoptions.lo `test -f 'easyoptions.c' || echo '/var/tmp/portage/net-misc/curl-7.84.0/work/curl-7.84.0/lib/'`easyoptions.c
libtool: compile:  loongarch64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I/var/tmp/portage/net-misc/curl-7.84.0/work/curl-7.84.0/include -I../lib -I/var/tmp/portage/net-misc/curl-7.84.0/work/curl-7.84.0/lib -DBUILDING_LIBCURL -DCURL_HIDDEN_SYMBOLS -fvisibility=hidden -O2 -pipe -Werror-implicit-function-declaration -c /var/tmp/portage/net-misc/curl-7.84.0/work/curl-7.84.0/lib/easygetopt.c  -fPIC -DPIC -o .libs/libcurl_la-easygetopt.o
libtool: compile:  loongarch64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I/var/tmp/portage/net-misc/curl-7.84.0/work/curl-7.84.0/include -I../lib -I/var/tmp/portage/net-misc/curl-7.84.0/work/curl-7.84.0/lib -DBUILDING_LIBCURL -DCURL_HIDDEN_SYMBOLS -fvisibility=hidden -O2 -pipe -Werror-implicit-function-declaration -c /var/tmp/portage/net-misc/curl-7.84.0/work/curl-7.84.0/lib/easyoptions.c  -fPIC -DPIC -o .libs/libcurl_la-easyoptions.o
In file included from /var/tmp/portage/net-misc/curl-7.84.0/work/curl-7.84.0/lib/easy.c:89:
/var/tmp/portage/net-misc/curl-7.84.0/work/curl-7.84.0/lib/easy_lock.h: In function 'curl_simple_lock_lock':
/var/tmp/portage/net-misc/curl-7.84.0/work/curl-7.84.0/lib/easy_lock.h:56:7: error: implicit declaration of function 'sched_yield' [-Werror=implicit-function-declaration]
   56 |       sched_yield();
      |       ^~~~~~~~~~~
Comment 1 HougeLangley 2022-07-02 09:47:48 UTC
Created attachment 789461 [details]
emerge --info
Comment 2 HougeLangley 2022-07-02 09:49:13 UTC
➜  ~ emerge -pqv '=net-misc/curl-7.84.0::gentoo'
[ebuild     U ] net-misc/curl-7.84.0 [7.83.1] USE="ftp http2 imap ipv6 openssl pop3 progress-meter smtp ssl tftp -adns -alt-svc -brotli -gnutls -gopher -hsts -idn -kerberos -ldap -mbedtls (-nghttp3) -nss (-quiche) -rtmp -samba -ssh -sslv3 -static-libs -telnet -test -threads -verify-sig -zstd" CURL_SSL="openssl -gnutls -mbedtls -nss" 
➜  ~
Comment 4 HougeLangley 2022-07-02 09:55:50 UTC
(In reply to Sam James from comment #3)
> We need
> https://github.com/curl/curl/commit/e2e7f54b7bea521fa8373095d0f43261a720cda0.
> patch.

Thanks, Problem solved.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-02 10:10:59 UTC
(In reply to HougeLangley from comment #4)
> (In reply to Sam James from comment #3)
> > We need
> > https://github.com/curl/curl/commit/e2e7f54b7bea521fa8373095d0f43261a720cda0.
> > patch.
> 
> Thanks, Problem solved.

It's not fixed in Gentoo yet, but thanks for testing.
Comment 6 HougeLangley 2022-07-02 10:36:45 UTC
(In reply to Sam James from comment #5)
> (In reply to HougeLangley from comment #4)
> > (In reply to Sam James from comment #3)
> > > We need
> > > https://github.com/curl/curl/commit/e2e7f54b7bea521fa8373095d0f43261a720cda0.
> > > patch.
> > 
> > Thanks, Problem solved.
> 
> It's not fixed in Gentoo yet, but thanks for testing.

My pleasure ;)
Comment 7 Larry the Git Cow gentoo-dev 2022-07-02 12:41:13 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5faad6a505dc25262ff894805bfae514df4fba8f

commit 5faad6a505dc25262ff894805bfae514df4fba8f
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-07-02 12:41:03 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-07-02 12:41:03 +0000

    net-misc/curl: backport include fix
    
    Closes: https://bugs.gentoo.org/855710
    Signed-off-by: Sam James <sam@gentoo.org>

 net-misc/curl/curl-7.84.0.ebuild                   |  1 +
 .../curl/files/curl-7.84.0-include-sched.patch     | 24 ++++++++++++++++++++++
 2 files changed, 25 insertions(+)