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

Submitter:  parafin <parafin>
Submitted:  Fri 30 Nov 2012 09:54:52 PM UTC
   
 
Category:  Build Severity:  3 - Normal
Item Group:  None Status:  Fix Released
Privacy:  Public Assigned to:  ueno
Open/Closed:  Closed

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>
Group 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.)

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
  • -email is unavailable- added by haible (Updated the item)
  • -email is unavailable- added by ueno (Posted a comment)
  • -email is unavailable- added by parafin (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-01-04 haible StatusFixed Fix Released
    2016-11-27 haible CategoryNone Build
        Assigned toNone ueno
    2013-05-13 ueno StatusNone Fixed
        Open/ClosedOpen Closed
    2012-11-30 parafin Attached File- Added gettext-mutex-fix.patch, #27000

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code