From root@mx1.irtnog.org  Wed Jun 30 11:47:36 2004
Return-Path: <root@mx1.irtnog.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 2DC6D16A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 30 Jun 2004 11:47:36 +0000 (GMT)
Received: from mx1.irtnog.org (ns2.irtnog.org [24.123.13.52])
	by mx1.FreeBSD.org (Postfix) with ESMTP id EFC1143D39
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 30 Jun 2004 11:47:35 +0000 (GMT)
	(envelope-from root@mx1.irtnog.org)
Received: from localhost (unknown [127.0.0.1])
	by mx1.irtnog.org (Postfix) with ESMTP
	id 03CCF53B; Wed, 30 Jun 2004 07:48:09 -0400 (EDT)
Received: from mx1.irtnog.org ([127.0.0.1])
 by localhost (mx1.irtnog.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP
 id 82488-07; Wed, 30 Jun 2004 07:47:47 -0400 (EDT)
Received: by mx1.irtnog.org (Postfix, from userid 0)
	id CC60852F; Wed, 30 Jun 2004 07:47:46 -0400 (EDT)
Message-Id: <20040630114746.CC60852F@mx1.irtnog.org>
Date: Wed, 30 Jun 2004 07:47:46 -0400 (EDT)
From: "Matthew X. Economou" <xenophon@irtnog.org>
Reply-To: <xenophon@irtnog.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc: <xenophon@irtnog.org>
Subject: Incorrect library specification for mail/postfix package & SASLKRB option
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         68506
>Category:       ports
>Synopsis:       Incorrect library specification for mail/postfix package & SASLKRB option
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pav
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 30 11:50:25 GMT 2004
>Closed-Date:    Mon Jul 12 14:57:29 GMT 2004
>Last-Modified:  Mon Jul 12 14:57:29 GMT 2004
>Originator:     
>Release:        FreeBSD 5.2.1-RELEASE-p8 i386
>Organization:
IRTNOG.ORG
>Environment:
System: FreeBSD mx1.irtnog.org 5.2.1-RELEASE-p8 FreeBSD 5.2.1-RELEASE-p8 #5: Fri Jun 4 08:14:12 EDT 2004 root@mx1.irtnog.org:/usr/obj/usr/src/sys/ECOMX1 i386


>Description:

When configured to use SASL with Kerberos support (the SASLKRB option),
the mail/postfix port incorrectly specifies "-lkrb" in POSTFIX_AUXLIBS.
The correct library to use on FreeBSD 5 is "-lkrb5".

>How-To-Repeat:

Check out the current ports.  Go to the "mail/postfix" directory and
type "make".  When prompted, select the "SASL2" and "SASLKRB" options.
When make attempts to link the "master" executable, the linker fails
when it cannot find "libkrb".

>Fix:

Change mail/postfix/scripts/configure.postfix, line 104, to read:

    echo "POSTFIX_AUXLIBS+= -lkrb5 -lcrypto -lcom_err"

There may be an easy way to autodetect this, similar to how the
configure.postfix script automatically detects when SASL2 is dependent
on MySQL and transparently adds the appropriate pre-processor and
linker options.
>Release-Note:
>Audit-Trail:

From: "Matthew X. Economou" <xenophon@irtnog.org>
To: <FreeBSD-gnats-submit@FreeBSD.org>,
	<freebsd-ports-bugs@FreeBSD.org>
Cc:  
Subject: RE: ports/68506: Incorrect library specification for mail/postfix package & SASLKRB option
Date: Wed, 30 Jun 2004 08:18:59 -0400

 There are two additional libraries necessary: -lasn1 and -lroken.
 
State-Changed-From-To: open->feedback 
State-Changed-By: pav 
State-Changed-When: Thu Jul 1 22:52:33 GMT 2004 
State-Changed-Why:  
Asked maintainer for review. 


Responsible-Changed-From-To: freebsd-ports-bugs->pav 
Responsible-Changed-By: pav 
Responsible-Changed-When: Thu Jul 1 22:52:33 GMT 2004 
Responsible-Changed-Why:  
Handle. 

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

From: Pav Lucistnik <pav@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org, xenophon@irtnog.org,
	vivek@khera.org
Cc:  
Subject: Re: ports/68506: Incorrect library specification for mail/postfix
	package & SASLKRB option
Date: Fri, 02 Jul 2004 00:52:29 +0200

 Dear maintainer of FreeBSD port mail/postfix, could you please take a
 look at
 
 http://www.freebsd.org/cgi/query-pr.cgi?q=68506
 
 And review the PR, maybe cook up a patch?
 
 -- 
 Pav Lucistnik <pav@oook.cz>
               <pav@FreeBSD.org>
 
 The answer to the all-encompassing question on life, the universe
 and everything: close windows and reboot.

From: Vivek Khera <vivek@khera.org>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: ports/68506: Incorrect library specification for mail/postfix package & SASLKRB option
Date: Mon, 12 Jul 2004 10:42:41 -0400

 Hi, I just submitted an update to postfix to the latest release, and 
 included a patch for this problem.  See PR 68949.
 
State-Changed-From-To: feedback->closed 
State-Changed-By: pav 
State-Changed-When: Mon Jul 12 14:57:11 GMT 2004 
State-Changed-Why:  
Patch which fixes this problem is in ports/68949 

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