NetBSD Problem Report #46254

From www@NetBSD.org  Sat Mar 24 21:41:44 2012
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id 121E963E199
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 24 Mar 2012 21:41:44 +0000 (UTC)
Message-Id: <20120324214143.86F1563B946@www.NetBSD.org>
Date: Sat, 24 Mar 2012 21:41:43 +0000 (UTC)
From: filip@hajny.net
Reply-To: filip@hajny.net
To: gnats-bugs@NetBSD.org
Subject: libxml2 fails to avoid getting linked against libpthread on SunOS
X-Send-Pr-Version: www-1.0

>Number:         46254
>Category:       pkg
>Synopsis:       libxml2 fails to avoid getting linked against libpthread on SunOS
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Mar 24 21:45:00 +0000 2012
>Closed-Date:    Fri Apr 20 07:32:51 +0000 2012
>Last-Modified:  Fri Apr 20 07:32:51 +0000 2012
>Originator:     Filip Hajny
>Release:        
>Organization:
Joyent
>Environment:
SunOS af9b008b-434d-4d53-af5c-bb9ee6ea4746 5.11 joyent_20111206T013343Z i86pc i386 i86pc
>Description:
The change implemented by drochner that tries to avoid linking against libpthread - without disabling it altogether - doesn't work on SunOS, where libpthread always gets linked, and the package fails the crude post-install test.
>How-To-Repeat:
Try to build libxml2-2.7.8nb8 or later on SunOS.
>Fix:

>Release-Note:

>Audit-Trail:
From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/46254: libxml2 fails to avoid getting linked against
 libpthread on SunOS
Date: Sun, 25 Mar 2012 20:17:54 +0900

 How about changes to treat same as Linux in configure.in and threads.c?
 At least, NetBSD-4 dose not have pthread_equal() stub in libc,
 but after changed, databases/shard-mime-info build fine and
 update-mime-info command works as expected.

 -- 
 OBATA Akio / obache@NetBSD.org

From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/46254 CVS commit: pkgsrc/textproc/libxml2
Date: Tue, 3 Apr 2012 09:08:33 +0000

 Module Name:	pkgsrc
 Committed By:	obache
 Date:		Tue Apr  3 09:08:33 UTC 2012

 Modified Files:
 	pkgsrc/textproc/libxml2: Makefile distinfo
 	pkgsrc/textproc/libxml2/patches: patch-aa patch-ab
 Added Files:
 	pkgsrc/textproc/libxml2/patches: patch-threads.c

 Log Message:
 Change behavior of libpthread handling
 * Disable linkage with pthread for FreeBSD/DragonFly/NetBSD, they have
   pthread_* () stubs in libc (it result in same as the previous behavior).
   * but NetBSD<4.99.36 does not have pthread_equal() stub in libc,
     so define weak reference to it.
 * Treat OpenBSD and MirBSD same as Linux to avoid linkage with libpthread.
 * Others will be linked with pthread, fixes PR 46254.

 tested NetBSD-5.1.2, and confirmed fixed on NetBSD-4.0.1 and OpenBSD-5.0.

 Bump PKGREVISION.


 To generate a diff of this commit:
 cvs rdiff -u -r1.114 -r1.115 pkgsrc/textproc/libxml2/Makefile
 cvs rdiff -u -r1.89 -r1.90 pkgsrc/textproc/libxml2/distinfo
 cvs rdiff -u -r1.24 -r1.25 pkgsrc/textproc/libxml2/patches/patch-aa
 cvs rdiff -u -r1.22 -r1.23 pkgsrc/textproc/libxml2/patches/patch-ab
 cvs rdiff -u -r0 -r1.1 pkgsrc/textproc/libxml2/patches/patch-threads.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->feedback
State-Changed-By: obache@NetBSD.org
State-Changed-When: Tue, 03 Apr 2012 09:12:45 +0000
State-Changed-Why:
Comitted proposed patch.  Please confirm it.


State-Changed-From-To: feedback->closed
State-Changed-By: fhajny@NetBSD.org
State-Changed-When: Fri, 20 Apr 2012 07:32:51 +0000
State-Changed-Why:
The problem was fixed.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(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.