Skip Menu |
Report information
Id: 128972
Status: open
Priority: 0/
Queue: perl5

Owner: Nobody
Requestors: mojca [at] macports.org
Cc:
AdminCc:

Operating System: (no value)
PatchStatus: (no value)
Severity: low
Type: unknown
Perl Version: (no value)
Fixed In: (no value)



Subject: Build failure on OS X 10.12 Sierra
Download (untitled) / with headers
text/plain 558b
Perl fails to build on OS X 10.12 (both 5.22 and 5.24 are affected, earlier and later versions were not tested yet): HiRes.xs:945:15: error: use of undeclared identifier 'darwin_time_mutex' MUTEX_INIT(&darwin_time_mutex); ^ 1 error generated. See the following links (patch included): * https://trac.macports.org/ticket/52012 * https://github.com/Homebrew/homebrew-core/issues/1957#issuecomment-226848462 * https://raw.githubusercontent.com/Homebrew/formula-patches/4455ab37423c123b2e4bd334ad48812ecf2f9109/perl/clock_gettime.patch
RT-Send-CC: perl5-porters [...] perl.org
Download (untitled) / with headers
text/plain 729b
On Wed Aug 17 05:46:44 2016, mojca.miklavec.lists@gmail.com wrote: Show quoted text
> Perl fails to build on OS X 10.12 (both 5.22 and 5.24 are affected, > earlier and later versions were not tested yet): > > > HiRes.xs:945:15: error: use of undeclared identifier > 'darwin_time_mutex' > MUTEX_INIT(&darwin_time_mutex); > ^ > 1 error generated. > > > See the following links (patch included): > * https://trac.macports.org/ticket/52012 > * https://github.com/Homebrew/homebrew- > core/issues/1957#issuecomment-226848462 > * https://raw.githubusercontent.com/Homebrew/formula- > patches/4455ab37423c123b2e4bd334ad48812ecf2f9109/perl/clock_gettime.patch
This is fixed in blead, it may need a backport to 5.24/5.22. Tony
To: perlbug-followup [...] perl.org
Subject: Re: [perl #128972] Build failure on OS X 10.12 Sierra
From: Mojca Miklavec <mojca [...] macports.org>
Date: Thu, 18 Aug 2016 08:51:46 +0200
Download (untitled) / with headers
text/plain 241b
On 18 August 2016 at 02:39, Tony Cook via RT wrote: Show quoted text
> > 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. Mojca
To: Mojca Miklavec <mojca [...] macports.org>
Date: Thu, 15 Sep 2016 16:10:35 -0500
Subject: Re: [perl #128972] Build failure on OS X 10.12 Sierra
From: "Craig A. Berry" <craig.a.berry [...] gmail.com>
CC: Craig Berry via RT <perlbug-followup [...] perl.org>
On Thu, Aug 18, 2016 at 1:51 AM, Mojca Miklavec <mojca@macports.org> wrote: Show quoted text
> 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.
RT-Send-CC: perl5-porters [...] perl.org
Download (untitled) / with headers
text/plain 122b
Note: Backporting a newer Time::HiRes for 5.24.3 is under discussion in https://rt.perl.org/Ticket/Display.html?id=128427.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org