> On 30 Sep 2017, at 06:19, Ray Satiro via curl-library 
> <[email protected]> wrote:
> 
> On 9/29/2017 10:09 AM, Stefan Eissing wrote:
>> Any advice on how to best avoid this?
>> 
>> building curl...connect.c:1069:12: error: 'connectx' is only available on 
>> macOS 10.11 or newer
>>      [-Werror,-Wunguarded-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,
>>    ^
>> 
>> acinclude.m4 and configure itself default the min macos version to 10.8, 
>> which is not enough for connectx. If I edit that to 10.11, it works.
> 
> Might be related: https://github.com/curl/curl/pull/1336 
> <https://github.com/curl/curl/pull/1336>

That's my pull request that has not been accepted because of lack of interest.
Basically the problem was caused by creating fragile workarounds around bug in 
apple connectx header declaration/library implementation and not using 
weak-linking checks for other routines properly.
Now https://github.com/curl/curl/pull/1788 
<https://github.com/curl/curl/pull/1788> added another workaround which 
unfortunately works only with Xcode 9.

I've now updated the pull request to be up-to-date with latest curl sources to 
fix the problem again across macOS systems and Xcode environments.
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html

Reply via email to