bugGNU gettext - Bugs: bug #37844, ...


You are not allowed to post comments on this tracker with your current authentication level.

bug #37844: PTHREAD_RECURSIVE_MUTEX_INITIALIZER doesn't work on Mac OS X 10.6

Submitted by:  parafin <parafin>
Submitted on:  Fri 30 Nov 2012 09:54:52 PM UTC  
Category: BuildSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Daiki Ueno <ueno>
Open/Closed: Closed

Mon 13 May 2013 02:09:50 AM UTC, comment #1:

Fixed in Gnulib master:

The next gettext release will include this.

Daiki Ueno <ueno>
Project AdministratorIn charge of this item.
Fri 30 Nov 2012 09:54:52 PM UTC, original submission:

On OS X versions 10.7 and 10.8 PTHREAD_RECURSIVE_MUTEX_INITIALIZER is defined in pthread.h and works fine. In older OS X versions it's unavailable and most likely is undefined in corresponding SDKs, though I haven't checked. The problem arise when trying to build libintl.dylib which should work on Mac OS X 10.6 by setting MACOSX_DEPLOYMENT_TARGET to 10.6 and using OS X 10.8 as build system - pthread.h has no guard macroses around PTHREAD_RECURSIVE_MUTEX_INITIALIZER definition that would check deployment target setting. Admittedly it's Apple's bug, but what you gonna do.
Here's an example of this bug manifestation: http://darktable.org/redmine/issues/8879
I attached a patch that just disables usage of PTHREAD_RECURSIVE_MUTEX_INITIALIZER on OS X, independent of MACOSX_DEPLOYMENT_TARGET.

parafin <parafin>


Attached Files
file #27000:  gettext-mutex-fix.patch added by parafin (3KiB - text/x-patch - proposed patch)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by haible (Updated the item)
  • -unavailable- added by ueno (Posted a comment)
  • -unavailable- added by parafin (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 27 Nov 2016 01:30:38 AM UTChaibleCategoryNone=>Build
      Assigned toNone=>ueno
    Mon 13 May 2013 02:09:50 AM UTCuenoStatusNone=>Fixed
    Fri 30 Nov 2012 09:54:52 PM UTCparafinAttached File-=>Added gettext-mutex-fix.patch, #27000

    Back to the top

    Powered by Savane 3.1-cleanup1