NetBSD Problem Report #19921
Received: (qmail 22596 invoked by uid 605); 19 Jan 2003 03:47:52 -0000
Message-Id: <200301190349.h0J3nil01801@pinky.buzzbee.plus.com>
Date: Sun, 19 Jan 2003 03:49:44 GMT
From: chris@netbsd.org
Sender: gnats-bugs-owner@netbsd.org
Reply-To: chris@netbsd.org
To: gnats-bugs@gnats.netbsd.org
Subject: openldap doesn't work with native NetBSD pthreads
X-Send-Pr-Version: 3.95
>Number: 19921
>Category: pkg
>Synopsis: openldap fails to compile due to missing pthread function
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: skrll
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Jan 19 03:48:00 +0000 2003
>Closed-Date: Mon Jan 20 12:09:11 +0000 2003
>Last-Modified: Mon Jan 20 12:09:11 +0000 2003
>Originator:
>Release: NetBSD 1.6M
>Organization:
>Environment:
System: NetBSD pinky.buzzbee.plus.com 1.6M NetBSD 1.6M (PINKY) #12: Sun Jan 19 01:22:11 GMT 2003 chris@pinky.buzzbee.plus.com:/usr/obj/kern/current/i386/PINKY i386
Architecture: i386
Machine: i386
>Description:
While attempting a kde3 build on -current (post SA merge) I couldn't build openldap, the error is:
cc -O2 -I/extra2/obj/pkgsrc/databases/openldap/work.pinky/.buildlink/include -I../../include -I../../include -DLDAP_R_COMPILE -I./../libldap -I/extra2/obj/pkgsrc/databases/openldap/work.pinky/.buildlink/include -Wl,-R/usr/pkg/lib -o .libs/apitest apitest.o -L/extra2/obj/pkgsrc/databases/openldap/work.pinky/openldap-2.0.27/libraries -L/extra2/obj/pkgsrc/databases/openldap/work.pinky/.buildlink/lib /extra2/obj/pkgsrc/databases/openldap/work.pinky/openldap-2.0.27/libraries/libldap_r/.libs/libldap_r.so -llber -llutil -lssl -lcrypto -lcrypt -lpthread -Wl,--rpath -Wl,/usr/pkg/lib
/extra2/obj/pkgsrc/databases/openldap/work.pinky/openldap-2.0.27/libraries/libldap_r/.libs/libldap_r.so: undefined reference to `pthread_attr_setstacksize'
*** Error code 1
Note these things are to be expected in a fresh new world of threads, but I just wanted this flagged so we can see what effects this will have. This is more a note of something, as such everything else I've tried has worked 8)
>How-To-Repeat:
cd pkgsrc/databases/openldap
make
>Fix:
implement pthread_attr_setstacksize.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback
State-Changed-By: skrll
State-Changed-When: Sun Jan 19 01:18:46 PST 2003
State-Changed-Why:
I'll commit a fix that allows openldap to compile
Responsible-Changed-From-To: lib-bug-people->skrll
Responsible-Changed-By: skrll
Responsible-Changed-When: Sun Jan 19 01:18:46 PST 2003
Responsible-Changed-Why:
I'll handle this one.
From: Nick Hudson <skrll@netbsd.org>
To: gnats-bugs@gnats.netbsd.org
Cc:
Subject: pr/19921 CVS commit: pkgsrc/databases/openldap
Date: Sun, 19 Jan 2003 11:26:34 +0200 (EET)
Module Name: pkgsrc
Committed By: skrll
Date: Sun Jan 19 09:26:33 UTC 2003
Modified Files:
pkgsrc/databases/openldap: Makefile distinfo
Added Files:
pkgsrc/databases/openldap/patches: patch-ac
Log Message:
Don't use pthread_attr_setstacksize unless _POSIX_THREAD_ATTR_STACKSIZE
is defined. This lets openldap compile on -current.
Fixes PR 19921.
PKGREVISION++
To generate a diff of this commit:
cvs rdiff -r1.49 -r1.50 pkgsrc/databases/openldap/Makefile
cvs rdiff -r1.14 -r1.15 pkgsrc/databases/openldap/distinfo
cvs rdiff -r0 -r1.3 pkgsrc/databases/openldap/patches/patch-ac
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: feedback->closed
State-Changed-By: skrll
State-Changed-When: Mon Jan 20 04:08:47 PST 2003
State-Changed-Why:
I fixed this.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.