Skip Menu |
 

To: krb5-bugs@MIT.EDU
Subject: threads on Solaris
From: Ken Raeburn <raeburn@MIT.EDU>
Date: Wed, 16 May 2007 02:30:23 -0400
The k5-thread.h header has some comments about problems with figuring
out if the thread support was linked in. I think that was for Solaris
9 or some earlier version, but the comment doesn't say.

In Solaris 10, the thread support is in libc, with the symbols weakly
defined. (And libpthread is just a filter object that re-exports
those symbols, non-weakly I think, from libc. It has no code in it at
all.) So we should not be using weak references and tests to see if
the functions are there; instead we should just directly use the
native thread support.

Ken
From: raeburn@mit.edu
Subject: SVN Commit
On Solaris 10, define NO_WEAK_PTHREADS for the build. When that symbol is
defined, skip the weak and conditional references in k5-thread.h and always
use the real pthread functions.

Commit By: raeburn



Revision: 19556
Changed Files:
U trunk/src/aclocal.m4
U trunk/src/include/k5-thread.h