Bug 71085

Summary: [MAINTAINER] gcc build problem patch for failed xerces-c2-2.5.0_2
Product: Ports & Packages Reporter: Bjoern A. Zeeb <bzeeb+freebsdports>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed FIXED    
Severity: Affects Only Me CC: bzeeb+freebsdports
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Bjoern A. Zeeb 2004-08-28 19:20:22 UTC
	> 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

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 ---
How-To-Repeat: 	try to build the port with up-to-date gcc
Comment 1 Sergey Matveychuk freebsd_committer freebsd_triage 2004-08-28 21:07:58 UTC
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.
Comment 2 Sergey Matveychuk freebsd_committer freebsd_triage 2004-08-28 21:09:49 UTC
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.
Comment 3 Sergey Matveychuk freebsd_committer freebsd_triage 2004-08-28 21:30:13 UTC
State Changed
From-To: open->closed

Committed, thanks!