[cairo-bugs] [Bug 4475] New: configure checks pthread.h but not pthread library

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Sep 16 08:41:48 PDT 2005


Please do not reply to this email: if you want to comment on the bug, go to    
       
the URL shown below and enter yourcomments there.     
   
https://bugs.freedesktop.org/show_bug.cgi?id=4475          
     
           Summary: configure checks pthread.h but not pthread library
           Product: cairo
           Version: 1.0.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: general
        AssignedTo: cworth at cworth.org
        ReportedBy: enchanter at users.sourceforge.net
         QAContact: cairo-bugs at cairographics.org


cairo 1.0.0's configure checks are incomplete: it checks for pthread.h and
defines HAVE_PTHREAD if it finds it, but it never checks to see if it needs any
additional libraries for pthread_mutex_lock() and pthread_mutex_unlock().

This causes problems on several UNIX platforms that have pthread routines in a
separate library, such as libpthread.

The way to fix this is to borrow the pthread library checks from some other
package that's GPL and uses autoconf -- robust support of pthreads isn't as
simple as just adding an AC_CHECK_LIB or AC_CHECK_FUNC, because of some of the
header file chicanery used for symbol mapping on some platforms.

I can look around for a good candidate package if you like.          
     
     
--           
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email         
     
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.


More information about the cairo-bugs mailing list