From nobody@FreeBSD.org  Mon Sep 17 19:38:08 2007
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 6D92F16A420
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 17 Sep 2007 19:38:08 +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 5A7B513C468
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 17 Sep 2007 19:38:08 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l8HJc8hh086317
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 17 Sep 2007 19:38:08 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.1/8.14.1/Submit) id l8HJc8w5086316;
	Mon, 17 Sep 2007 19:38:08 GMT
	(envelope-from nobody)
Message-Id: <200709171938.l8HJc8w5086316@www.freebsd.org>
Date: Mon, 17 Sep 2007 19:38:08 GMT
From: Julien Cigar <mage@mordor.ath.cx>
To: freebsd-gnats-submit@FreeBSD.org
Subject: postgresql82-server (8.2.5) failed to built with LDAP support (-pthread missing ?)
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         116423
>Category:       ports
>Synopsis:       databases/postgresql82-server (8.2.5) failed to built with LDAP support (-pthread missing ?)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    girgen
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 17 19:40:01 GMT 2007
>Closed-Date:    Mon Mar 17 15:06:17 UTC 2008
>Last-Modified:  Tue Mar 18 22:30:05 UTC 2008
>Originator:     Julien Cigar
>Release:        6.2-RELEASE
>Organization:
>Environment:
mordor# uname -a
FreeBSD mordor.lan 6.2-RELEASE-p7 FreeBSD 6.2-RELEASE-p7 #0: Mon Aug  6 23:18:49 CEST 2007     mage@mordor.lan:/usr/obj/usr/src/sys/MORDOR  i386

>Description:
gmake[1]: Leaving directory `/usr/ports/databases/postgresql82-server/work/postgresql-8.2.5/src/port'
cc -O2 -fno-strict-aliasing -pipe  -O3 -funroll-loops -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -DFRONTEND -I../../../src/interfaces/libpq -I../../../src/include -I/usr/local/include  -I/usr/local/include  -c -o initdb.o initdb.c
cc -O2 -fno-strict-aliasing -pipe  -O3 -funroll-loops -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing initdb.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 -Wl,-R'/usr/local/lib' -lpgport -lintl -lpam -lssl -lcrypto -lz -lreadline -lcrypt -lm  -o initdb
/usr/local/lib/libldap_r-2.3.so.2: undefined reference to `pthread_attr_destroy'
/usr/local/lib/libldap_r-2.3.so.2: undefined reference to `pthread_create'
/usr/local/lib/libldap_r-2.3.so.2: undefined reference to `pthread_attr_init'
/usr/local/lib/libldap_r-2.3.so.2: undefined reference to `pthread_exit'
/usr/local/lib/libldap_r-2.3.so.2: undefined reference to `pthread_equal'
/usr/local/lib/libldap_r-2.3.so.2: undefined reference to `pthread_setconcurrency'
/usr/local/lib/libldap_r-2.3.so.2: undefined reference to `pthread_kill'
/usr/local/lib/libldap_r-2.3.so.2: undefined reference to `pthread_attr_setstacksize'
/usr/local/lib/libldap_r-2.3.so.2: undefined reference to `pthread_attr_setdetachstate'
/usr/local/lib/libldap_r-2.3.so.2: undefined reference to `pthread_join'
/usr/local/lib/libldap_r-2.3.so.2: undefined reference to `pthread_getconcurrency'
gmake: *** [initdb] Error 1
*** Error code 2
 
Stop in /usr/ports/databases/postgresql82-server.
*** Error code 1
 
Stop in /usr/ports/databases/postgresql82-server.
 
===>>> make failed for databases/postgresql82-server
===>>> Aborting update
>How-To-Repeat:
#> portmaster -vd postgresql-server-8.2.4

The problem appears only when linking PostgreSQL to LDAP.
>Fix:
I guess a missing -pthread ... ?

ps: my openldap libraries have been compiled with thread support (the Shell backend has not been enabled)

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->girgen 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Mon Sep 17 20:32:31 UTC 2007 
Responsible-Changed-Why:  
Over to maintainer 

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

From: "Dan Langille" <dan@langille.org>
To: bug-followup@FreeBSD.org,
              mage@mordor.ath.cx
Cc:  
Subject: Re: ports/116423: dtabases/postgresql82-server (8.2.5) failed to built with LDAP support (-pthread missing ?)
Date: Mon, 17 Sep 2007 17:24:34 -0400

 If I select the LIBC_R option, it compiles cleanly.
 
 

From: Julien <jcigar@ulb.ac.be>
To: Edwin Groothuis <edwin@mavetju.org>
Cc: Julien Cigar <mage@mordor.ath.cx>
Subject: Re: ports/116423: postgresql82-server (8.2.5) failed to built with
	LDAP support (-pthread missing ?)
Date: Mon, 17 Sep 2007 23:46:19 +0200

 Yes, openldap-client-2.3.38 compiled with the following OPTIONS :
 
 mordor% cat /var/db/ports/openldap23/options 
 # This file is auto-generated by 'make config'.
 # No user-servicable parts inside!
 # Options for openldap-server-2.3.37
 _OPTIONS_READ=openldap-server-2.3.37
 WITHOUT_SASL=true
 WITHOUT_PERL=true
 WITHOUT_SHELL=true
 WITHOUT_ODBC=true
 WITHOUT_SLP=true
 WITHOUT_SLAPI=true
 WITH_TCP_WRAPPERS=true
 WITH_BDB=true
 WITHOUT_ACCESSLOG=true
 WITHOUT_AUDITLOG=true
 WITHOUT_DENYOP=true
 WITHOUT_DYNGROUP=true
 WITHOUT_DYNLIST=true
 WITHOUT_LASTMOD=true
 WITHOUT_PPOLICY=true
 WITHOUT_PROXYCACHE=true
 WITHOUT_REFINT=true
 WITHOUT_RETCODE=true
 WITHOUT_RWM=true
 WITHOUT_SYNCPROV=true
 WITHOUT_TRANSLUCENT=true
 WITHOUT_UNIQUE=true
 WITHOUT_VALSORT=true
 WITHOUT_ACI=true
 WITH_DYNAMIC_BACKENDS=true
 WITH_SLURPD=true
 
 Kind regards,
 Julien
 
 
 On Tue, 2007-09-18 at 07:37 +1000, Edwin Groothuis wrote:
 > On Mon, Sep 17, 2007 at 07:38:08PM +0000, Julien Cigar wrote:
 > > >Synopsis:       databases/postgresql82-server (8.2.5) failed to built with LDAP support (-pthread missing ?)
 > 
 > Do you have openldap server or client on your machine?
 > 
 > Edwin
 
 
State-Changed-From-To: open->closed 
State-Changed-By: girgen 
State-Changed-When: Mon Mar 17 15:05:08 UTC 2008 
State-Changed-Why:  
This was fixed by add "WITH_LIBC_R" config option. 
This option is now always true to avoid confusion, effective 
from today. 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/116423: commit references a PR
Date: Tue, 18 Mar 2008 22:27:24 +0000 (UTC)

 girgen      2008-03-18 22:27:20 UTC
 
   FreeBSD ports repository
 
   Modified files:
     databases/postgresql82-client Makefile 
     databases/postgresql82-server Makefile distinfo 
   Log:
   Update to 8.2.7
   
   Release notes:
   http://developer.postgresql.org/pgdocs/postgres/release-8-2-7.html
   
   Remove HIER patch option, since it is not available anymore. The site
   is down and original author responses that he does not maintain it
   anymore.
   
   PR:     ports/116423
   Remove option to build and link with thread safety, and always build
   thread safe instead. Decided after a discussion with postgresql
   hackers, and tested for a while in postgresql83. This helps when
   for example linking with openldap, or for using certain programming
   languages as postgresql functions.
   
   Revision  Changes    Path
   1.5       +1 -1      ports/databases/postgresql82-client/Makefile
   1.175     +5 -20     ports/databases/postgresql82-server/Makefile
   1.58      +3 -3      ports/databases/postgresql82-server/distinfo
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
