From nobody@FreeBSD.org  Thu Sep 23 09:05:15 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id B426A106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 23 Sep 2010 09:05:15 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id A3EB68FC16
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 23 Sep 2010 09:05:15 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o8N95EwG063002
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 23 Sep 2010 09:05:14 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o8N95E92063001;
	Thu, 23 Sep 2010 09:05:14 GMT
	(envelope-from nobody)
Message-Id: <201009230905.o8N95E92063001@www.freebsd.org>
Date: Thu, 23 Sep 2010 09:05:14 GMT
From: Torsten Zhlsdorff <foo@meisterderspiele.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: postgresql90-contrib not compilable
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         150878
>Category:       ports
>Synopsis:       databases/postgresql90-contrib not compilable
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    girgen
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 23 09:10:02 UTC 2010
>Closed-Date:    Tue Feb 01 13:52:40 UTC 2011
>Last-Modified:  Tue Feb 01 13:52:40 UTC 2011
>Originator:     Torsten Zhlsdorff
>Release:        FreeBSD 7.0-STABLE (GENERIC)
>Organization:
>Environment:
FreeBSD ex-domain.de 7.0-STABLE FreeBSD 7.0-STABLE #1: Fri Aug 15 19:33:13 CEST 2008     thorny@meduna:/build/obj/build/src/sys/GENERIC  amd64

>Description:
Could not build port database/postgresql90-contrib. Last messages are:

gmake[1]: Entering directory `/usr/ports/databases/postgresql90-contrib/work/postgresql-9.0.0/contrib/pgbench'
cc -O2 -fno-strict-aliasing -pipe -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -I../../src/interfaces/libpq -I. -I. -I../../src/include -I/usr/local/include -I/usr/local/include/libxml2 -I/usr/local/include  -I/usr/local/include  -c -o pgbench.o pgbench.c
cc -O2 -fno-strict-aliasing -pipe -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS pgbench.o -L../../src/port -lpgport -L../../src/interfaces/libpq -lpq  -L../../src/port -rpath=/usr/lib:/usr/local/lib -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib  -L/usr/local/lib -Wl,--as-needed -Wl,-R'/usr/local/lib'  -lpgport -lxslt -lxml2 -lssl -lcrypto -lz -lreadline -lcrypt -lm  -o pgbench
pgbench.o(.text+0x2b0a): In function `main':
: undefined reference to `pthread_create'
gmake[1]: *** [pgbench] Error 1
gmake[1]: Leaving directory `/usr/ports/databases/postgresql90-contrib/work/postgresql-9.0.0/contrib/pgbench'
gmake: *** [all] Error 2
*** Error code 2

>How-To-Repeat:
 cd /usr/ports/databases/postgresql90-contrib && make clean && make install
>Fix:


>Release-Note:
>Audit-Trail:

From: GRAND GreenX <greenx@yandex.ru>
To: bug-followup@freebsd.org,foo@meisterderspiele.de
Cc:  
Subject: Re: ports/150878: postgresql90-contrib not compilable
Date: Thu, 23 Sep 2010 16:37:50 +0400

 pgbench now use pthread
Responsible-Changed-From-To: freebsd-ports-bugs->girgen 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Thu Sep 23 18:04:56 UTC 2010 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=150878 

From: Josh Paetzel <jpaetzel@freebsd.org>
To: bug-followup@freebsd.org
Cc: foo@meisterderspiele.de
Subject: Re: ports/150878: databases/postgresql90-contrib not compilable
Date: Thu, 30 Sep 2010 18:52:07 -0500

 --Boundary-00=_nKSpMWgVzM+OjU9
 Content-Type: Text/Plain;
   charset="us-ascii"
 Content-Transfer-Encoding: 7bit
 
 Here's a patch that fixes that plus the plist issue it has.
 
 
 -- 
 Thanks,
 
 Josh Paetzel
 FreeBSD -- The power to serve
 
 --Boundary-00=_nKSpMWgVzM+OjU9
 Content-Type: text/plain;
   charset="UTF-8";
   name="postgresql.txt"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment;
 	filename="postgresql.txt"
 
 Index: Makefile
 ===================================================================
 RCS file: /home/ncvs/ports/databases/postgresql90-contrib/Makefile,v
 retrieving revision 1.1
 diff -u -r1.1 Makefile
 --- Makefile	20 Sep 2010 13:46:46 -0000	1.1
 +++ Makefile	30 Sep 2010 23:31:03 -0000
 @@ -24,6 +24,7 @@
  SLAVE_ONLY=	yes
  CONFIGURE_ARGS+=--with-libxslt --with-libxml
  LIB_DEPENDS=	xslt.2:${PORTSDIR}/textproc/libxslt xml2.5:${PORTSDIR}/textproc/libxml2
 +LDFLAGS+=	${PTHREAD_LIBS}
  
  post-install:
  	@- ${INSTALL_DATA} ${WRKSRC}/contrib/README ${DOCSDIR}/contrib/README
 Index: pkg-plist-contrib
 ===================================================================
 RCS file: /home/ncvs/ports/databases/postgresql90-server/pkg-plist-contrib,v
 retrieving revision 1.11
 diff -u -r1.11 pkg-plist-contrib
 --- pkg-plist-contrib	20 Sep 2010 13:46:46 -0000	1.11
 +++ pkg-plist-contrib	30 Sep 2010 23:35:52 -0000
 @@ -2,6 +2,7 @@
  bin/pg_archivecleanup
  bin/pg_standby
  bin/pg_upgrade
 +bin/pgbench
  bin/vacuumlo
  lib/postgresql/_int.so
  lib/postgresql/adminpack.so
 
 --Boundary-00=_nKSpMWgVzM+OjU9--
State-Changed-From-To: open->closed 
State-Changed-By: girgen 
State-Changed-When: Tue Feb 1 13:50:11 UTC 2011 
State-Changed-Why:  


http://www.freebsd.org/cgi/query-pr.cgi?pr=150878 
>Unformatted:
