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

 
 

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: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 13 May 2013 02:09:50 AM UTC, 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 Administrator
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>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

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 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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 13 May 2013 02:09:50 AM UTCuenoStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    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-cleanup