Subject: pkg/21333: openoffice thread problem
To: None <gnats-bugs@gnats.netbsd.org>
From: None <prlw1@cam.ac.uk>
List: netbsd-bugs
Date: 04/27/2003 00:50:13
>Number:         21333
>Category:       pkg
>Synopsis:       libpthread uncovers openoffice error
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Apr 26 23:51:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Patrick Welche
>Release:        NetBSD 1.6R
>Organization:
	
>Environment:
i386 kernel and world of Apr 25 19:32 GMT
pkgsrc of Apr 26 16:36 GMT
>Description:
New error checking in libpthread reveals an error in openoffice:

=============
Building project udkapi
=============
/usr/pkgsrc/misc/openoffice/work.i386/oo_641_src/udkapi/com/sun/star/lang
mkout -- version: 1.3
idlc @/var/tmp/mk00006445ab
idlc: compile 'ArrayIndexOutOfBoundsException.idl' ... 
Error detected, file "/usr/src/lib/libpthread/pthread_mutex.c", line 312, function "pthread_mutex_unlock": Invalid mutex.
Abort (core dumped)
dmake:  Error code 134, while making '../../../../unxbsdi.pro/misc/urd_csslang.don'

Result is misc/openoffice can't be built. There was another oddity in
the attempt: openoffice includes pthread.buildlink2.mk, which is meant
to favour native libpthread over pkg threads. I had pth-1.4.0nb1, and
found that some of the helper programs eg svtools/unxbsdi.pro/bin/bmp
were still linked to /usr/pkg/lib/libpthread. I had to pkg_delete
pth-1.4.0nb1 to avoid it..
>How-To-Repeat:
cd pkgsrc/misc/openoffice
make
>Fix:
See if it is fixed in newer releases of openoffice?
>Release-Note:
>Audit-Trail:
>Unformatted: