Received: from pch.mit.edu (PCH.MIT.EDU [18.7.21.90]) by krbdev.mit.edu (8.12.9) with ESMTP id l4G6UZL8010202; Wed, 16 May 2007 02:30:35 -0400 (EDT) Received: from pch.mit.edu (pch.mit.edu [127.0.0.1]) by pch.mit.edu (8.13.6/8.12.8) with ESMTP id l4G6UUK0001818; Wed, 16 May 2007 02:30:30 -0400 Received: from central-city-carrier-station.mit.edu (CENTRAL-CITY-CARRIER-STATION.MIT.EDU [18.7.7.72]) by pch.mit.edu (8.13.6/8.12.8) with ESMTP id l4G6USXV001814 for ; Wed, 16 May 2007 02:30:28 -0400 Received: from outgoing-legacy.mit.edu (OUTGOING-LEGACY.MIT.EDU [18.7.22.104]) by central-city-carrier-station.mit.edu (8.13.6/8.9.2) with ESMTP id l4G6UPpD000442; Wed, 16 May 2007 02:30:25 -0400 (EDT) Received: from all-in-one.mit.edu (ALL-IN-ONE.MIT.EDU [18.18.1.71]) ) by outgoing-legacy.mit.edu (8.13.6/8.12.4) with ESMTP id l4G6UOOx027689; Wed, 16 May 2007 02:30:24 -0400 (EDT) Received: (from raeburn@localhost) by all-in-one.mit.edu (8.12.9.20060308) id l4G6UOWJ001592; Wed, 16 May 2007 02:30:24 -0400 To: krb5-bugs@MIT.EDU Subject: threads on Solaris From: Ken Raeburn Date: Wed, 16 May 2007 02:30:23 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Scanned-BY: MIMEDefang 2.42 X-Spam-Score: -2.599 X-Spam-Flag: NO X-Beenthere: krb5-bugs-incoming@mailman.mit.edu X-Mailman-Version: 2.1.6 Precedence: list Sender: krb5-bugs-incoming-bounces@PCH.MIT.EDU Errors-To: krb5-bugs-incoming-bounces@PCH.MIT.EDU X-RT-Original-Encoding: us-ascii Content-Length: 567 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