Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 637252 - net-misc/curl: fails to build on macOS High Sierra because of -Werror=partial-availability
Summary: net-misc/curl: fails to build on macOS High Sierra because of -Werror=partial...
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
Depends on:
Blocks: 632500
  Show dependency tree
Reported: 2017-11-12 18:11 UTC by Fabian Groffen
Modified: 2021-07-22 03:23 UTC (History)
0 users

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


Note You need to log in before you can comment on or make changes to this bug.
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):

commit f7d7fb78e3689b5a56f384d9e0eca42ac36b23c7
Author:     Sam James <>
AuthorDate: 2021-07-22 02:52:33 +0000
Commit:     Sam James <>
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
    Signed-off-by: Sam James <>

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