[vlc-devel] [3.0 PATCH v2 09/20] tools: cmake: fix building CURL in older OS X
Steve Lhomme
robux4 at ycbcr.xyz
Thu Apr 2 14:55:53 CEST 2020
On 2020-04-02 14:35, Hugo Beauzée-Luyssen wrote:
> Hi,
>
> On Thu, Apr 2, 2020, at 1:38 PM, Steve Lhomme wrote:
>> Avoid this issue in the built-in CURL:
>>
>> Undefined symbols for architecture x86_64:
>> "_SSLCopyALPNProtocols", referenced from:
>> _sectransp_connect_step2 in libcmcurl.a(sectransp.c.o)
>> "_SSLSetALPNProtocols", referenced from:
>> _sectransp_connect_common in libcmcurl.a(sectransp.c.o)
>> ld: symbol(s) not found for architecture x86_64
>> ---
>> extras/tools/cmake-oldmac.patch | 20 ++++++++++++++++++++
>> extras/tools/tools.mak | 1 +
>> 2 files changed, 21 insertions(+)
>> create mode 100644 extras/tools/cmake-oldmac.patch
>>
>> diff --git a/extras/tools/cmake-oldmac.patch
>> b/extras/tools/cmake-oldmac.patch
>> new file mode 100644
>> index 00000000000..231a9051586
>> --- /dev/null
>> +++ b/extras/tools/cmake-oldmac.patch
>> @@ -0,0 +1,20 @@
>> +--- cmake/Utilities/cmcurl/lib/vtls/sectransp.c.oldmac 2020-03-20
>> 11:26:14.000000000 +0100
>> ++++ cmake/Utilities/cmcurl/lib/vtls/sectransp.c 2020-04-01
>> 09:41:13.005951700 +0200
>> +@@ -1576,7 +1576,7 @@ static CURLcode sectransp_connect_step1(
>> + }
>> + #endif /* CURL_BUILD_MAC_10_8 || CURL_BUILD_IOS */
>> +
>> +-#if (CURL_BUILD_MAC_10_13 || CURL_BUILD_IOS_11) &&
>> HAVE_BUILTIN_AVAILABLE == 1
>> ++#if (CURL_BUILD_MAC_10_13 || CURL_BUILD_IOS_11) &&
>> HAVE_BUILTIN_AVAILABLE == 1 && 0
>
> Shouldn't the first CURL_BUILD_MAC_xxx be updated to match the version on which the functions are available?
> Though I doubt that any of our contribs are using cmake to download stuff anyway, but a cleaner patch could be upstreamed
Given some older CMake built fine on the oldmacmini I suppose at some
point they stop supporting that version of OS X. And I have no idea on
which version it would work or not. So I can't really make a patch that
can be upstreamed. All I can do is report the bug and hope they will fix
it eventually.
BTW what OS does the oldmacmini machine run (via Gitlab) ?
More information about the vlc-devel
mailing list