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

 
 

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

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

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

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

Fixed in Gnulib master:
https://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00040.html

The next gettext release will include this.

Daiki Ueno <ueno>
Project AdministratorIn charge of this item.
Fri Nov 30 21:54:52 2012, 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 (3kB - 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 Nov 27 01:30:38 2016haibleCategoryNone=>Build
      Assigned toNone=>ueno
    Mon May 13 02:09:50 2013uenoStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Fri Nov 30 21:54:52 2012parafinAttached File-=>Added gettext-mutex-fix.patch, #27000

    Back to the top


    Powered by Savane 3.1-cleanup