Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 637252

Summary: net-misc/curl: fails to build on macOS High Sierra because of -Werror=partial-availability
Product: Gentoo/Alt Reporter: Fabian Groffen <grobian>
Component: Prefix SupportAssignee: Gentoo Prefix <prefix>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/curl/curl/issues/1333
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 632500    

Description Fabian Groffen gentoo-dev 2017-11-12 18:11:36 UTC
/Volumes/Scratch/Gentoo/bootstrap64-20171112/bin/bash ../libtool  --tag=CC   --mode=compile x86_64-apple-darwin17-clang -DHAVE_CONFIG_H   -I/Volumes/Scratch/Gentoo/bootstrap64-20171112/var/tmp/portage/net-misc/curl-7.56.1/work/curl-7.56.1/include -I../lib -I/Volumes/Scratch/Gentoo/bootstrap64-20171112/var/tmp/portage/net-misc/curl-7.56.1/work/curl-7.56.1/lib  -DBUILDING_LIBCURL  -DCURL_HIDDEN_SYMBOLS    -fvisibility=hidden -march=native -O2 -pipe -Qunused-arguments -mmacosx-version-min=10.8 -Werror=partial-availability  -c -o libcurl_la-content_encoding.lo `test -f 'content_encoding.c' || echo '/Volumes/Scratch/Gentoo/bootstrap64-20171112/var/tmp/portage/net-misc/curl-7.56.1/work/curl-7.56.1/lib/'`content_encoding.c
/Volumes/Scratch/Gentoo/bootstrap64-20171112/var/tmp/portage/net-misc/curl-7.56.1/work/curl-7.56.1/lib/connect.c:1072:14: error: 'connectx' is partial: introduced in macOS 10.11 [-Werror,-Wpartial-availability]
        rc = connectx(sockfd, &endpoints, SAE_ASSOCID_ANY,
             ^
/usr/include/sys/socket.h:713:5: note: 'connectx' has been explicitly marked partial here
int connectx(int, const sa_endpoints_t *, sae_associd_t, unsigned int,
    ^
/Volumes/Scratch/Gentoo/bootstrap64-20171112/var/tmp/portage/net-misc/curl-7.56.1/work/curl-7.56.1/lib/connect.c:1072:14: note: explicitly redeclare 'connectx' to silence this warning
        rc = connectx(sockfd, &endpoints, SAE_ASSOCID_ANY,
             ^
1 error generated.
make[2]: *** [Makefile:1473: libcurl_la-connect.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
Comment 1 Fabian Groffen gentoo-dev 2017-11-13 12:26:30 UTC
Disabled the error for High Sierra, this will still fail with an old (Sierra, Capitan etc.) Prefix on High Sierra (mismatch unsupported).
Comment 2 Larry the Git Cow gentoo-dev 2021-07-22 03:23:28 UTC
The bug has been referenced in the following commit(s):

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

commit f7d7fb78e3689b5a56f384d9e0eca42ac36b23c7
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-07-22 02:52:33 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-07-22 03:20:27 +0000

    net-misc/curl: add 7.78.0
    
    * Security bump to 7.78.0
    * Drops metalink support (gone upstream entirely)
    * Drops two obsolete seds
    
    Bug: https://bugs.gentoo.org/382241
    Bug: https://bugs.gentoo.org/637252
    Bug: https://bugs.gentoo.org/803308
    Signed-off-by: Sam James <sam@gentoo.org>

 net-misc/curl/Manifest           |   1 +
 net-misc/curl/curl-7.78.0.ebuild | 289 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 290 insertions(+)