From owner-freebsd-ports Mon Dec 30 10:10: 6 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3F5BE37B401 for ; Mon, 30 Dec 2002 10:10:03 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 512B243EE5 for ; Mon, 30 Dec 2002 10:10:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id gBUIA2NS059272 for ; Mon, 30 Dec 2002 10:10:02 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id gBUIA2Yk059271; Mon, 30 Dec 2002 10:10:02 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E0F8137B401 for ; Mon, 30 Dec 2002 10:03:56 -0800 (PST) Received: from transport.cksoft.de (transport.cksoft.de [62.111.66.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id A528743EC2 for ; Mon, 30 Dec 2002 10:03:55 -0800 (PST) (envelope-from bz@zabbadoz.net) Received: from localhost (localhost [127.0.0.1]) by transport.cksoft.de (Postfix) with ESMTP id 274F01FFF4B for ; Mon, 30 Dec 2002 19:03:49 +0100 (CET) Received: by transport.cksoft.de (Postfix, from userid 66) id 545A81FFF3D; Mon, 30 Dec 2002 19:03:48 +0100 (CET) Received: by mail.int.zabbadoz.net (Postfix, from userid 1060) id A945C15340; Mon, 30 Dec 2002 17:58:54 +0000 (UTC) Message-Id: <20021230175854.A945C15340@mail.int.zabbadoz.net> Date: Mon, 30 Dec 2002 17:58:54 +0000 (UTC) From: "Bjoern A.Zeeb" Reply-To: "Bjoern A.Zeeb" To: FreeBSD-gnats-submit@FreeBSD.org Cc: bzeeb+freebsdports@zabbadoz.net X-Send-Pr-Version: 3.113 Subject: ports/46636: Fix building on alpha,sparc64 for textproc/xerces-c2 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 46636 >Category: ports >Synopsis: Fix building on alpha,sparc64 for textproc/xerces-c2 >Confidential: no >Severity: non-critical >Priority: high >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Mon Dec 30 10:10:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Bjoern A. Zeeb >Release: FreeBSD 4.7-STABLE i386 >Organization: Zabbadoz.NeT >Environment: System: FreeBSD e0-0.zab2.int.zabbadoz.net 4.7-STABLE FreeBSD 4.7-STABLE #0: Fri Dec 27 22:08:07 UTC 2002 bz@e0-0.zab2.int.zabbadoz.net:/export/src/src/obj/export/src/src/RELENG_4/src/sys/ZAB2-2002122701 i386 >Description: Port did not build on alpha and sparc64 >How-To-Repeat: >Fix: attached patch should fix building on sparc64 and alpha. thanks to Mikko Työläjärvi for fixing and testing on sparc64. New files: textproc/xerces-c2/Makefile.alpha textproc/xerces-c2/Makefile.sparc64 textproc/xerces-c2/files/patch-aa diff -urN textproc/xerces-c2.orig/Makefile textproc/xerces-c2/Makefile --- textproc/xerces-c2.orig/Makefile Fri Nov 15 17:00:34 2002 +++ textproc/xerces-c2/Makefile Mon Dec 30 17:26:43 2002 @@ -55,10 +55,12 @@ GNU_CONFIGURE= yes CONFIGURE_ENV+= XERCESCROOT=${WRKSRC} TRANSCODER=${TRANSCODER} CONFIGURE_SCRIPT= runConfigure -CONFIGURE_ARGS?= -p freebsd -c ${CC} -x ${CXX} -n socket -P ${PREFIX} +CONFIGURE_ARGS+= -p freebsd -c ${CC} -x ${CXX} -n socket -P ${PREFIX} CONFIGURE_ARGS+= -t ${TRANSCODER} +.include + .if defined(NO_THREADS) CONFIGURE_ARGS+= -r none .endif @@ -73,7 +75,7 @@ ALL_TARGET?= all samples XERCES_BINS?= CreateDOMDocument DOMCount DOMPrint EnumVal MemParse PParse \ Redirect SAX2Count SAX2Print SAXCount SAXPrint SEnumVal StdInParse -SAMPLES_CONFIG_ARGS?= -p freebsd -x g++ +SAMPLES_CONFIG_ARGS+= -p freebsd -c ${CC} -x ${CXX} .if defined(NO_THREADS) SAMPLES_CONFIG_ARGS+= -r none .endif @@ -143,4 +145,4 @@ .endfor .endif -.include +.include diff -urN textproc/xerces-c2.orig/Makefile.alpha textproc/xerces-c2/Makefile.alpha --- textproc/xerces-c2.orig/Makefile.alpha Thu Jan 1 00:00:00 1970 +++ textproc/xerces-c2/Makefile.alpha Mon Dec 30 17:26:28 2002 @@ -0,0 +1,10 @@ +# Date created: 29 December 2002 +# Whom: "Bjoern A. Zeeb" (bzeeb+freebsdports@zabbadoz.net) +# +# $FreeBSD$ +# + +# set bitsToBuild to 64 +CONFIGURE_ARGS+= -b 64 +SAMPLES_CONFIG_ARGS+= -b 64 + diff -urN textproc/xerces-c2.orig/Makefile.sparc64 textproc/xerces-c2/Makefile.sparc64 --- textproc/xerces-c2.orig/Makefile.sparc64 Thu Jan 1 00:00:00 1970 +++ textproc/xerces-c2/Makefile.sparc64 Mon Dec 30 17:26:33 2002 @@ -0,0 +1,14 @@ +# Date created: 26 December 2002 +# Whom: "Bjoern A. Zeeb" (bzeeb+freebsdports@zabbadoz.net) +# +# $FreeBSD$ +# + +# When there are no probs with libc_r / pthreads on sparc64-freebsd we +# should remove this files or make it conditional on OSVERSION +NO_THREADS= yes + +# set bitsToBuild to 64 +CONFIGURE_ARGS+= -b 64 +SAMPLES_CONFIG_ARGS+= -b 64 + diff -urN textproc/xerces-c2.orig/files/patch-aa textproc/xerces-c2/files/patch-aa --- textproc/xerces-c2.orig/files/patch-aa Thu Jan 1 00:00:00 1970 +++ textproc/xerces-c2/files/patch-aa Fri Dec 27 21:06:44 2002 @@ -0,0 +1,12 @@ +--- ./src/xercesc/util/Transcoders/IconvFBSD/IconvFBSDTransService.cpp.orig Fri Dec 27 21:04:38 2002 ++++ ./src/xercesc/util/Transcoders/IconvFBSD/IconvFBSDTransService.cpp Fri Dec 27 21:06:26 2002 +@@ -1091,7 +1091,8 @@ + // perform conversion + wLent *= uChSize(); + char *ptr = retVal; +- size_t rc = iconvTo(wideCharBuf, &wLent, &ptr, neededLen); ++ size_t tmpwLent = wLent; ++ size_t rc = iconvTo(wideCharBuf, &tmpwLent, &ptr, neededLen); + if (rc == (size_t)-1) { + if (wBufPtr) + delete [] wBufPtr; >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message