Subject: Re: lib/29952: How about adding pthread_equal() stub to libc? (MIT krb5-1.4 fails)
To: None <lib-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Christos Zoulas <christos@zoulas.com>
List: netbsd-bugs
Date: 04/12/2005 02:44:02
The following reply was made to PR lib/29952; it has been noted by GNATS.

From: christos@zoulas.com (Christos Zoulas)
To: gnats-bugs@netbsd.org, lib-bug-people@netbsd.org,
	gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Cc: 
Subject: Re: lib/29952: How about adding pthread_equal() stub to libc?  (MIT krb5-1.4 fails)
Date: Mon, 11 Apr 2005 22:43:47 -0400

 On Apr 12,  2:33am, kamada@nanohz.org (kamada@nanohz.org) wrote:
 -- Subject: lib/29952: How about adding pthread_equal() stub to libc?  (MIT k
 
 | >Number:         29952
 | >Category:       lib
 | >Synopsis:       How about adding pthread_equal() stub to libc?  (MIT krb5-1.4 fails)
 | >Confidential:   no
 | >Severity:       non-critical
 | >Priority:       medium
 | >Responsible:    lib-bug-people
 | >State:          open
 | >Class:          change-request
 | >Submitter-Id:   net
 | >Arrival-Date:   Tue Apr 12 02:33:00 +0000 2005
 | >Originator:     KAMADA Ken'ichi
 | >Release:        NetBSD 3.99.2
 | >Organization:
 | >Environment:
 | System: NetBSD mitana.nanohz.org 3.99.2 NetBSD 3.99.2 (MITANA) #41: Mon Mar 28 11:04:24 JST 2005 ken@mitana.nanohz.org:/usr/src/sys/arch/i386/compile/MITANA i386
 | Architecture: i386
 | Machine: i386
 | >Description:
 | MIT krb5-1.4 uses pthread_equal(), so could you consider
 | adding pthread_equal() stub to libc (and pthread.h)?  I think that
 | unconditionally returning 1 is enough for non-threaded applications.
 | 
 | NetBSD's libc doesn't have a stub for pthread_equal(), but
 | MIT krb5 is weak-referencing pthread_equal().
 | Therefore the absense of pthread_equal() is not detected on the
 | link-time, and programs using krb5 mysteriously dies at run-time.
 | (unless the application is linked with libpthread)
 | 
 | >How-To-Repeat:
 | Install MIT krb5-1.4 (or pkgsrc/security/mit-krb5 1.4 or later) and
 | run kinit from it.
 
 It is easy enough to add....
 
 http://www.opengroup.org/onlinepubs/007908799/xsh/pthread_equal.html
 
 christos