NetBSD Problem Report #46882

From www@NetBSD.org  Fri Aug 31 04:44:28 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 F086763B8E6
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 31 Aug 2012 04:44:27 +0000 (UTC)
Message-Id: <20120831044426.5F2E363B86D@www.NetBSD.org>
Date: Fri, 31 Aug 2012 04:44:26 +0000 (UTC)
From: noz.tos@gmail.com
Reply-To: noz.tos@gmail.com
To: gnats-bugs@NetBSD.org
Subject: databases/postgresql91-server configure error (with quick hack patch)
X-Send-Pr-Version: www-1.0

>Number:         46882
>Category:       pkg
>Synopsis:       databases/postgresql91-server configure error (with quick hack patch)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    adam
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Aug 31 04:45:00 +0000 2012
>Last-Modified:  Fri Aug 31 07:22:50 +0000 2012
>Originator:     Toshiaki NOZAWA
>Release:        6.0_RC1
>Organization:
>Environment:
NetBSD mebinoz 6.0_RC1 NetBSD 6.0_RC1 (GENERIC) #17: Tue Aug 21 14:23:00 JST 2012  tos@mebinoz:/usr/obj/sys/arch/amd64/compile/GENERIC amd64
>Description:
It happens error at "make configure".

> make configure
(snip)
checking thread safety of required library functions... no
configure: error: thread test program failed
This platform is not thread-safe.  Check the file 'config.log' or compile
and run src/test/thread/thread_test for the exact reason.
Use --disable-thread-safety to disable thread safety.
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/databases/postgresql91-server
WARNING: Please add USE_TOOLS+=perl to the package Makefile.
*** Error code 1

Stop.



>How-To-Repeat:
cd /usr/pkgsrc/databases/postgresql91-server
make configure
>Fix:
It has "-lpthreads" option but it looks like lacking "-lpthread" for NetBSD.
It should correct original configure file perhaps, but I changed pkgsrc's Makefile for quick hack.

Following patch will complete "make && make install".

--------------------
> cvs diff databases/postgresql91-server/Makefile
Index: databases/postgresql91-server/Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/databases/postgresql91-server/Makefile,v
retrieving revision 1.3
diff -u -r1.3 Makefile
--- databases/postgresql91-server/Makefile      1 Jul 2012 19:49:25 -0000      1.3
+++ databases/postgresql91-server/Makefile      31 Aug 2012 04:42:34 -0000
@@ -22,6 +22,7 @@
 BUILD_DIRS+=   ${INSTALL_DIRS}

 LIBS.SunOS+=   -lintl
+LIBS.NetBSD+=  -lpthread

 # PostgreSQL has loadable server-side language modules.
 #
--------------------

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->adam
Responsible-Changed-By: hauke@NetBSD.org
Responsible-Changed-When: Fri, 31 Aug 2012 07:22:50 +0000
Responsible-Changed-Why:
Over to maintainer.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.