From j@uriah.heep.sax.de  Thu Jan 11 06:30:37 2007
Return-Path: <j@uriah.heep.sax.de>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id BDFAB16A40F
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 11 Jan 2007 06:30:37 +0000 (UTC)
	(envelope-from j@uriah.heep.sax.de)
Received: from uriah.heep.sax.de (uriah.heep.sax.de [213.240.137.9])
	by mx1.freebsd.org (Postfix) with ESMTP id 4396913C428
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 11 Jan 2007 06:30:37 +0000 (UTC)
	(envelope-from j@uriah.heep.sax.de)
Received: by uriah.heep.sax.de (Postfix, from userid 107)
	id 136EA298; Thu, 11 Jan 2007 07:03:12 +0100 (MET)
Message-Id: <20070111060312.136EA298@uriah.heep.sax.de>
Date: Thu, 11 Jan 2007 07:03:12 +0100 (MET)
From: Joerg Wunsch <joerg@FreeBSD.org>
Reply-To: Joerg Wunsch <joerg_wunsch@uriah.heep.sax.de>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: mail/postfix uses wrong order of -I options
X-Send-Pr-Version: 3.113
X-GNATS-Notify: vivek@khera.org

>Number:         107814
>Category:       ports
>Synopsis:       mail/postfix uses wrong order of -I options
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    joerg
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 11 06:40:15 GMT 2007
>Closed-Date:    Thu Feb 11 15:19:34 MET 2010
>Last-Modified:  Thu Feb 11 15:19:34 MET 2010
>Originator:     Joerg Wunsch
>Release:        FreeBSD 6.1-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD uriah.heep.sax.de 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #2: Mon Mar 13 23:03:11 MET 2006 r@uriah.heep.sax.de:/usr/obj/usr/src/sys/URIAH i386


	Machine running FreeBSD 6.x, science/hdf port is installed.

>Description:

	When compiling the postfix port, the wrong order of the -I
	options is applied.  This leads to compilation errors:

cc -DHAS_PCRE -I/usr/local/include -DUSE_TLS -I/usr/include  -O -pipe -march=athlon -I. -I../../include -DFREEBSD6 -c trace.c
trace.c: In function `trace_append':
trace.c:118: error: `NO_RELAY_AGENT' undeclared (first use in this function)
trace.c:118: error: (Each undeclared identifier is reported only once
trace.c:118: error: for each function it appears in.)
trace.c:124: error: `BOUNCE_CMD_APPEND' undeclared (first use in this function)
trace.c:133: error: `DEL_REQ_FLAG_USR_VRFY' undeclared (first use in this function)
trace.c: In function `trace_flush':
trace.c:148: error: `BOUNCE_CMD_TRACE' undeclared (first use in this function)
*** Error code 1

Stop in /usr/ports/mail/postfix/work/postfix-2.3.5/src/global.
*** Error code 1

Stop in /usr/ports/mail/postfix/work/postfix-2.3.5.
*** Error code 1

Stop in /usr/ports/mail/postfix.
*** Error code 1

Stop in /usr/ports/mail/postfix.

...
cc -DHAS_PCRE -I/usr/local/include -DUSE_TLS -I/usr/include  -O -pipe -march=athlon -I. -I../../include -DFREEBSD6 -c cleanup_out_recipient.c
cleanup_out_recipient.c: In function `cleanup_trace_append':
cleanup_out_recipient.c:99: error: `BOUNCE_FLAG_CLEAN' undeclared (first use in this function)
cleanup_out_recipient.c:99: error: (Each undeclared identifier is reported only once
cleanup_out_recipient.c:99: error: for each function it appears in.)
*** Error code 1

Stop in /usr/ports/mail/postfix/work/postfix-2.3.5/src/cleanup.
*** Error code 1

Stop in /usr/ports/mail/postfix/work/postfix-2.3.5.
*** Error code 1

Stop in /usr/ports/mail/postfix.
*** Error code 1

Stop in /usr/ports/mail/postfix.

	The reason is that header files in /usr/local/include and
	/usr/include take precedence over the header files from
	Postfix's own library (../../include).  As the science/hdf
	port has installed a file named /usr/local/include/trace.h,
	Postfix's trace.h is not included, leading to the error
	messages shown above.

>How-To-Repeat:

	Install science/hdf, and try to compile mail/postfix.

>Fix:

	


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->joerg 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Thu Jan 11 06:40:28 UTC 2007 
Responsible-Changed-Why:  
Submitter has GNATS access 

http://www.freebsd.org/cgi/query-pr.cgi?pr=107814 
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Thu Jan 11 06:40:35 UTC 2007 
State-Changed-Why:  
Awaiting maintainers feedback 

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

From: Vivek Khera <vivek@khera.org>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/107814: mail/postfix uses wrong order of -I options
Date: Thu, 8 Feb 2007 10:10:27 -0500

 Feel free to provide a patch that doesn't break everything else that  
 postfix can build with.  I'll be happy to include it.
 
State-Changed-From-To: feedback->suspended 
State-Changed-By: linimon 
State-Changed-When: Sun Mar 2 06:32:16 UTC 2008 
State-Changed-Why:  
Mark suspended awaiting patches. 

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

From: Pav Lucistnik <pav@FreeBSD.org>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/107814: mail/postfix uses wrong order of -I options
Date: Tue, 12 May 2009 13:44:25 +0200

 As far as I can see, hdf port never installed trace.h file...
 
 -- 
 Pav Lucistnik <pav@oook.cz>
               <pav@FreeBSD.org>
 
 As I understand it the M25 marks the border between culture and agriculture.
 
State-Changed-From-To: suspended->closed 
State-Changed-By: joerg 
State-Changed-When: Thu Feb 11 15:17:44 MET 2010 
State-Changed-Why:  
Withdrawing this.  It timed out anyway, and it's unlikely to 
find an include directory order that will work in every 
situation. 

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