develooper Front page | perl.perl5.porters | Postings from September 2016

Re: [perl #128972] Build failure on OS X 10.12 Sierra

From:
Craig A. Berry
Date:
September 15, 2016 21:10
Subject:
Re: [perl #128972] Build failure on OS X 10.12 Sierra
Message ID:
CA+vYcVxEH7GmxQ3WMhTjZ6AN8xRGfvzw36AYXXi97fjQKy=2Jw@mail.gmail.com
On Thu, Aug 18, 2016 at 1:51 AM, Mojca Miklavec <mojca@macports.org> wrote:
> On 18 August 2016 at 02:39, Tony Cook via RT wrote:
>>
>> This is fixed in blead, it may need a backport to 5.24/5.22.
>
> Thank you, I didn't check the git sources.
>
> Correction: 5.22 doesn't need that patch. It's only relevant for 5.24.

So does Time::HiRes now use the system clock_gettime() on Sierra?

Has anyone tried building on 10.12 with MACOSX_DEPLOYMENT_TARGET set
to some lower version in the environment, and then actually run Perl
(including Time::HiRes) in that older environment?  According to some
folks on the libcurl list:

<https://curl.haxx.se/mail/lib-2016-09/0051.html>

the new clock_gettime() functionality in Sierra is implemented as a
weak reference so it will always show up at compile time even if you
explicitly specify an older deployment target.  The current suggestion
is to add -Werror=partial-availability to the compiler flags with the
expectation that it will make configuration checks correctly fail.  I
don't have Sierra yet so I can't try it.



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About