From bz@zabbadoz.net  Sat Aug 28 18:20:09 2004
Return-Path: <bz@zabbadoz.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 66E3616A4CE
	for <freebsd-gnats-submit@freebsd.org>; Sat, 28 Aug 2004 18:20:09 +0000 (GMT)
Received: from transport.cksoft.de (transport.cksoft.de [62.111.66.27])
	by mx1.FreeBSD.org (Postfix) with ESMTP id A605E43D2F
	for <freebsd-gnats-submit@freebsd.org>; Sat, 28 Aug 2004 18:20:08 +0000 (GMT)
	(envelope-from bz@zabbadoz.net)
Received: from transport.cksoft.de (localhost [127.0.0.1])
	by transport.cksoft.de (Postfix) with ESMTP
	id E11651FF90C; Sat, 28 Aug 2004 20:20:06 +0200 (CEST)
Received: by transport.cksoft.de (Postfix, from userid 66)
	id F41511FF931; Sat, 28 Aug 2004 20:20:04 +0200 (CEST)
Received: by mail.int.zabbadoz.net (Postfix, from userid 1060)
	id 2F5AB15384; Sat, 28 Aug 2004 18:16:15 +0000 (UTC)
Message-Id: <20040828181615.2F5AB15384@mail.int.zabbadoz.net>
Date: Sat, 28 Aug 2004 18:16:15 +0000 (UTC)
From: "Bjoern A. Zeeb" <bzeeb+freebsdports@zabbadoz.net>
Reply-To: "Bjoern A. Zeeb" <bzeeb+freebsdports@zabbadoz.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc: "Bjoern A. Zeeb" <bzeeb+freebsdports@zabbadoz.net>,
	Kris Kennaway <kris@obsecurity.org>
Subject: [MAINTAINER] gcc build problem patch for failed xerces-c2-2.5.0_2
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         71085
>Category:       ports
>Synopsis:       [MAINTAINER] gcc build problem patch for failed xerces-c2-2.5.0_2
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Aug 28 18:20:22 GMT 2004
>Closed-Date:    Sat Aug 28 20:30:23 GMT 2004
>Last-Modified:  Sat Aug 28 20:30:23 GMT 2004
>Originator:     Bjoern A. Zeeb
>Release:        FreeBSD 5.2-CURRENT amd64
>Organization:
Zabbadoz.NeT
>Environment:
System: FreeBSD noc.int.zabbadoz.net 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Mon Aug 16 18:27:45 UTC 2004 bz@noc.int.zabbadoz.net:/local/building/src+ports/src/obj/local/building/freebsd/i4b/src/sys/AMD64-20040816-01 amd64

>Description:
	> FYI; can you please investigate and/or report to the developers?  Many
	> of the recent port failures on 5.x are caused by the import of gcc
	> 3.4.2, which is much stricter about the code it accepts.
	..
	> building xerces-c2-2.5.0_2 on gohan29.freebsd.org
	> in directory /x/tmp/5/chroot/46643
	> port directory: /usr/ports/textproc/xerces-c2

>How-To-Repeat:
	try to build the port with up-to-date gcc

>Fix:

following patch makes it compile with newer gcc (at least on my amd64).
I directly got the patch from xerces-c CVS.

You can find a copy of the patch at
http://sources.zabbadoz.net/freebsd/ports/xerces-c2-2.5.0_2.patch-ac

I did not change the PORTREVISION as there is no functional change.

please add the file to textproc/xerces-c2/files/ as patch-ac


--- cut ---
!
! http://cvs.apache.org/viewcvs.cgi/xml-xerces/c/src/xercesc/util/RefArrayOf.hpp?r1=1.6&r2=1.7
!
--- src/xercesc/util/RefArrayOf.hpp	2004/01/29 11:48:46	1.6
+++ src/xercesc/util/RefArrayOf.hpp	2004/06/23 22:19:35	1.7
@@ -56,6 +56,9 @@
 
 /*
  * $Log: RefArrayOf.hpp,v $
+ * Revision 1.7  2004/06/23 22:19:35  neilg
+ * fix for compilation under gcc 3.5
+ *
  * Revision 1.6  2004/01/29 11:48:46  cargilld
  * Code cleanup changes to get rid of various compiler diagnostic messages.
  *
@@ -101,6 +104,7 @@
 #include <xercesc/util/ArrayIndexOutOfBoundsException.hpp>
 #include <xercesc/util/IllegalArgumentException.hpp>
 #include <xercesc/util/XMLEnumerator.hpp>
+#include <xercesc/framework/MemoryManager.hpp>
 
 XERCES_CPP_NAMESPACE_BEGIN
 
--- cut ---
>Release-Note:
>Audit-Trail:

From: Sergey Matveychuk <sem@FreeBSD.org>
To: "Bjoern A. Zeeb" <bzeeb+freebsdports@zabbadoz.net>
Cc: FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: ports/71085: [MAINTAINER] gcc build problem patch for failed
 xerces-c2-2.5.0_2
Date: Sun, 29 Aug 2004 00:07:58 +0400

 It does not found libdar on my clean 5.3-BETA2 box:
 checking size of time_t... 4
 checking for off_t... (cached) yes
 checking for off_t... (cached) yes
 checking size of off_t... 8
 checking for libdar... configure: error: required library not found. 
 Please install libdar.
 ===>  Script "configure" failed unexpectedly.
 Please report the problem to kay_lehmann@web.de [maintainer] and attach the
 "/usr/ports/sysutils/kdar/work/kdar-1.2.0/config.log" including the output
 of the failure of your make command. Also, it might be a good idea to 
 provide
 an overview of all packages installed on your system (e.g. an `ls
 /var/db/pkg`).
 *** Error code 1
 
 Stop in /usr/ports/sysutils/kdar.
 
 
 Check it please.
 
 ---
 Sem.

From: Sergey Matveychuk <sem@FreeBSD.org>
To: Sergey Matveychuk <sem@FreeBSD.org>
Cc: "Bjoern A. Zeeb" <bzeeb+freebsdports@zabbadoz.net>,
	FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: ports/71085: [MAINTAINER] gcc build problem patch for failed
 xerces-c2-2.5.0_2
Date: Sun, 29 Aug 2004 00:09:49 +0400

 Sergey Matveychuk wrote:
 > It does not found libdar on my clean 5.3-BETA2 box:
 
 Oh, sorry. I've sent it to wrong PR.
 Too tired today...
 
 ---
 Sem.
State-Changed-From-To: open->closed 
State-Changed-By: sem 
State-Changed-When: Sat Aug 28 20:30:13 GMT 2004 
State-Changed-Why:  
Committed, thanks! 

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