View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007830CMakeCMakepublic2008-10-19 07:242012-01-02 15:56
ReporterTnlnmq3(ln 
Assigned ToDavid Cole 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake-2-6 
Target VersionCMake 2.8.6Fixed in VersionCMake 2.8.6 
Summary0007830: CMake 2.6.2 doesn't find pthread_* function in libc on OpenSolaris
DescriptionOn "SunOS 5.11 snv_99 x86" CMake can not find pthread_create (and others pthread function) though these function are in /lib/libc.so.1

For me, the following fix works fine:
$ diff cmake-2.6.2/Modules/FindThreads.cmake /usr/local/share/cmake-2.6/Modules/FindThreads.cmake
28a29,37
>
> # In OpenSolaris pthread_* in libc
> CHECK_FUNCTION_EXISTS(pthread_create CMAKE_HAVE_PTHREAD_CREATE)
> IF(CMAKE_HAVE_PTHREAD_CREATE)
> SET(CMAKE_THREAD_LIBS_INIT "")
> SET(CMAKE_HAVE_THREADS_LIBRARY 1)
> SET(Threads_FOUND TRUE)
> ELSEIF(CMAKE_HAVE_PTHREAD_CREATE)
>
51a61,63
>
> ENDIF(CMAKE_HAVE_PTHREAD_CREATE)
>

TagsNo tags attached.
Attached Files

 Relationships
related to 0011333closedRolf Eike Beer FindThreads incorrectly adds -pthread to linker options 

  Notes
(0014720)
Bill Hoffman (manager)
2009-01-29 14:23

Can you provide a patch file, or give more context for this patch?
(0026204)
Rolf Eike Beer (developer)
2011-04-17 05:25

Solution may be in the patch to bug 11333.
(0027257)
David Cole (manager)
2011-08-20 14:59

Assuming this is fixed by the same commit that fixed 0011333 :

  http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=fd61be71401ef9e0a241562fc31539273084deff [^]

Please re-open and attach more information, or another proposed patch on top of current CMake sources if this is not actually the case...
(0028133)
David Cole (manager)
2012-01-02 15:56

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2008-10-19 07:24 Tnlnmq3(ln New Issue
2009-01-29 14:23 Bill Hoffman Note Added: 0014720
2009-01-29 14:23 Bill Hoffman Status new => assigned
2009-01-29 14:23 Bill Hoffman Assigned To => Bill Hoffman
2011-04-17 05:25 Rolf Eike Beer Note Added: 0026204
2011-04-18 16:17 Brad King Relationship added related to 0011333
2011-08-01 10:51 David Cole Assigned To Bill Hoffman => David Cole
2011-08-01 10:51 David Cole Target Version => CMake 2.8.6
2011-08-20 14:59 David Cole Note Added: 0027257
2011-08-20 14:59 David Cole Status assigned => resolved
2011-08-20 14:59 David Cole Fixed in Version => CMake 2.8.6
2011-08-20 14:59 David Cole Resolution open => fixed
2012-01-02 15:56 David Cole Note Added: 0028133
2012-01-02 15:56 David Cole Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team