From kubito@gmail.com  Mon Oct 31 00:43:52 2011
Return-Path: <kubito@gmail.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id DCF601065687
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 31 Oct 2011 00:43:51 +0000 (UTC)
	(envelope-from kubito@gmail.com)
Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182])
	by mx1.freebsd.org (Postfix) with ESMTP id 9CC078FC0C
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 31 Oct 2011 00:43:51 +0000 (UTC)
Received: by gyb11 with SMTP id 11so1081749gyb.13
        for <FreeBSD-gnats-submit@freebsd.org>; Sun, 30 Oct 2011 17:43:51 -0700 (PDT)
Received: by 10.236.190.40 with SMTP id d28mr5721066yhn.92.1320021831031;
        Sun, 30 Oct 2011 17:43:51 -0700 (PDT)
Received: from localhost ([189.61.210.138])
        by mx.google.com with ESMTPS id d5sm23389755yhl.19.2011.10.30.17.43.48
        (version=TLSv1/SSLv3 cipher=OTHER);
        Sun, 30 Oct 2011 17:43:49 -0700 (PDT)
Message-Id: <4eadef45.05a5ec0a.4f57.5932@mx.google.com>
Date: Sun, 30 Oct 2011 17:43:49 -0700 (PDT)
From: Raphael Kubo da Costa <rakuco@FreeBSD.org>
Sender: Raphael Kubo da Costa <kubito@gmail.com>
Reply-To: Raphael Kubo da Costa <rakuco@FreeBSD.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: databases/postgresql84-client's libpq.so does not depend on libgssapi.so when built with GSSAPI=on
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         162179
>Category:       ports
>Synopsis:       databases/postgresql84-client's libpq.so does not depend on libgssapi.so when built with GSSAPI=on
>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 Oct 31 00:50:01 UTC 2011
>Closed-Date:    Thu Dec 01 03:41:26 UTC 2011
>Last-Modified:  Thu Dec 01 03:41:26 UTC 2011
>Originator:     Raphael Kubo da Costa
>Release:        FreeBSD 8.2-STABLE amd64
>Organization:
>Environment:
System: FreeBSD gibbon 8.2-STABLE FreeBSD 8.2-STABLE #35: Sat Oct 22 16:49:14 BRST 2011 root@gibbon:/usr/obj/usr/src/sys/GIBBON amd64


	
>Description:
    Some time ago I tried updating mail/dovecot2 with PGSQL=on (see ports/162134). However, the configuration failed, as the test program failed to link with libpq.so:

configure:22904: cc -o conftest -std=gnu99 -O2 -pipe -march=core2 -fno-strict-aliasing -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -Wstrict-aliasing=2 -I/usr/local/include -I/usr/local/include  -L/usr/local/lib -L/usr/local/lib conftest.c -lpq   -lrt -L/usr/local/lib >&5
/usr/local/lib/libpq.so: undefined reference to `gss_import_name'
/usr/local/lib/libpq.so: undefined reference to `gss_release_name'
/usr/local/lib/libpq.so: undefined reference to `gss_delete_sec_context'
/usr/local/lib/libpq.so: undefined reference to `gss_display_status'
/usr/local/lib/libpq.so: undefined reference to `gss_release_buffer'
/usr/local/lib/libpq.so: undefined reference to `gss_init_sec_context'
/usr/local/lib/libpq.so: undefined reference to `GSS_C_NT_HOSTBASED_SERVICE'

    ldd shows libpq.so does not depend on libgssapi.so even though support for it was activated:

===> The following configuration options are available for postgresql-client-8.4.9:
     NLS=on "Use internationalized messages"
     PAM=off "Build with PAM support (server only)"
     LDAP=off "Build with LDAP authentication support"
     MIT_KRB5=off "Build with MIT's kerberos support"
     HEIMDAL_KRB5=off "Builds with Heimdal kerberos support"
     OPTIMIZED_CFLAGS=on "Builds with compiler optimizations (-O3)"
     XML=on "Build with XML data type (server)"
     TZDATA=on "Use internal timezone database (server)"
     DEBUG=off "Builds with debugging symbols"
     GSSAPI=on "BUild with GSSAPI support"
     ICU=on "Use ICU for unicode collation (server)"
     INTDATE=on "Builds with 64-bit date/time type (server)"
     SSL=on "Build with OpenSSL support"
>How-To-Repeat:
    Build databases/postgresql84-{client,server} with GSSAPI=on and then try to link a program against libpq.so.
>Fix:

	


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->girgen 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Mon Oct 31 00:52:48 UTC 2011 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=162179 
State-Changed-From-To: open->closed 
State-Changed-By: rakuco 
State-Changed-When: Thu Dec 1 03:41:25 UTC 2011 
State-Changed-Why:  
Duplicate of ports/161786. 

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