From owner-freebsd-ports-bugs Wed Feb 5 18: 0:36 2003 Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5A34937B401 for ; Wed, 5 Feb 2003 18:00:32 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8243A43F93 for ; Wed, 5 Feb 2003 18:00:31 -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 h1620VNS099487 for ; Wed, 5 Feb 2003 18:00:31 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h1620VqF099485; Wed, 5 Feb 2003 18:00:31 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DF3DE37B401 for ; Wed, 5 Feb 2003 17:58:46 -0800 (PST) Received: from mail.inka.de (quechua.inka.de [193.197.184.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8C6F643FBD for ; Wed, 5 Feb 2003 17:58:45 -0800 (PST) (envelope-from naddy@mips.inka.de) Received: from kemoauc.mips.inka.de (uucp@) by mail.inka.de with gbsmtp id 18gbJL-0003iy-03; Thu, 06 Feb 2003 02:58:43 +0100 Received: from kemoauc.mips.inka.de (localhost [127.0.0.1]) by kemoauc.mips.inka.de (8.12.6/8.12.6) with ESMTP id h161dsPD041466 for ; Thu, 6 Feb 2003 02:39:54 +0100 (CET) (envelope-from naddy@localhost.mips.inka.de) Received: (from naddy@localhost) by kemoauc.mips.inka.de (8.12.6/8.12.6/Submit) id h161dsuu041465; Thu, 6 Feb 2003 02:39:54 +0100 (CET) Message-Id: <200302060139.h161dsuu041465@kemoauc.mips.inka.de> Date: Thu, 6 Feb 2003 02:39:54 +0100 (CET) From: Christian Weisgerber Reply-To: Christian Weisgerber To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/47985: textproc/sp: build fix for -CURRENT, 64-bit Sender: owner-freebsd-ports-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 47985 >Category: ports >Synopsis: textproc/sp: build fix for -CURRENT, 64-bit >Confidential: no >Severity: critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Feb 05 18:00:28 PST 2003 >Closed-Date: >Last-Modified: >Originator: Christian Weisgerber >Release: FreeBSD 5.0-CURRENT alpha >Organization: >Environment: System: FreeBSD kemoauc.mips.inka.de 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Wed Feb 5 13:01:08 CET 2003 naddy@kemoauc.mips.inka.de:/usr/obj/usr/src/sys/KEMOAUC alpha >Description: textproc/sp doesn't build on -CURRENT (with GCC 3.2) or on 64-bit platforms. The patchset below fixes these issues. (I have also moved some feature defines from config.h to Makefile. Either way, SP_MULTI_BYTE should only be defined once.) >How-To-Repeat: >Fix: Index: Makefile =================================================================== RCS file: /home/ncvs/ports/textproc/sp/Makefile,v retrieving revision 1.22 diff -u -r1.22 Makefile --- Makefile 5 Nov 2002 16:16:20 -0000 1.22 +++ Makefile 6 Feb 2003 01:29:46 -0000 @@ -15,12 +15,6 @@ USE_SUBMAKE= yes INSTALLS_SHLIB= yes -.include - -.if ${OSVERSION} >= 500035 -BROKEN= "Does not compile on 5.0" -.endif - post-install: $(MKDIR) $(PREFIX)/include/sp $(MKDIR) $(PREFIX)/share/doc/sp @@ -28,4 +22,4 @@ for file in $(WRKSRC)/include/*;do $(INSTALL_DATA) $$file $(PREFIX)/include/sp;done for file in $(WRKSRC)/doc/*;do $(INSTALL_DATA) $$file $(PREFIX)/share/doc/sp;done -.include +.include Index: files/patch-aa =================================================================== RCS file: /home/ncvs/ports/textproc/sp/files/patch-aa,v retrieving revision 1.3 diff -u -r1.3 patch-aa --- files/patch-aa 7 Sep 1997 00:20:37 -0000 1.3 +++ files/patch-aa 6 Feb 2003 01:29:46 -0000 @@ -1,17 +1,12 @@ -*** include/config.h.orig Wed Jun 12 11:56:06 1996 ---- include/config.h Tue Oct 15 17:08:09 1996 -*************** -*** 7,12 **** ---- 7,18 ---- - #define SP_INCLUDE_UNISTD_H - #define SP_POSIX_FILENAMES - -+ #if (defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)) -+ #define SP_HAVE_LOCALE -+ #define SP_HAVE_SOCKET -+ #define SP_MULTI_BYTE -+ #endif -+ - #ifdef __GNUG__ - // It's not missing, but it pulls in libg++ - #define SP_NEW_H_MISSING +--- include/config.h.orig Wed Oct 13 07:02:46 1999 ++++ include/config.h Wed Feb 5 23:27:11 2003 +@@ -29,6 +29,9 @@ + #define SP_NO_STD_NAMESPACE + #undef SP_NEW_H_MISSING + #endif ++#if __GNUC__ > 2 ++#undef SP_NO_STD_NAMESPACE ++#endif + + #endif /* __GNUG__ */ + Index: files/patch-ab =================================================================== RCS file: /home/ncvs/ports/textproc/sp/files/patch-ab,v retrieving revision 1.5 diff -u -r1.5 patch-ab --- files/patch-ab 5 Nov 2002 16:16:20 -0000 1.5 +++ files/patch-ab 6 Feb 2003 01:29:46 -0000 @@ -1,5 +1,5 @@ ---- Makefile.orig Sat Oct 10 00:15:02 1998 -+++ Makefile Sun Oct 27 01:05:00 2002 +--- Makefile.orig Sat Oct 10 06:15:02 1998 ++++ Makefile Wed Feb 5 23:25:16 2003 @@ -1,11 +1,12 @@ # Copyright (c) 1994, 1995 James Clark # See the file COPYING for copying permission. @@ -29,9 +29,10 @@ # which doesn't appropriately define sig_atomic_t). # Add -DJADE_MIF to include the Jade MIF backend -XDEFINES= -+XDEFINES=-DSGML_CATALOG_FILES_DEFAULT=\"/usr/local/share/sgml/catalog\" - DEFINES=-DSP_HAVE_BOOL -DSP_ANSI_CLASS_INST -DSP_MULTI_BYTE $(XDEFINES) +-DEFINES=-DSP_HAVE_BOOL -DSP_ANSI_CLASS_INST -DSP_MULTI_BYTE $(XDEFINES) -CXXFLAGS=-ansi $(DEBUG) $(WARN) ++XDEFINES=-DSGML_CATALOG_FILES_DEFAULT=\"/usr/local/share/sgml/catalog\" ++DEFINES=-DSP_HAVE_BOOL -DSP_ANSI_CLASS_INST -DSP_MULTI_BYTE -DSP_HAVE_LOCALE -DSP_HAVE_SOCKET $(XDEFINES) +CXXFLAGS+=-ansi $(DEBUG) $(WARN) # Flag to pass to CXX to make it output list of dependencies as a Makefile. CXXDEPGENFLAGS=-MM Index: files/patch-ah =================================================================== RCS file: files/patch-ah diff -N files/patch-ah --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/patch-ah 6 Feb 2003 01:29:46 -0000 @@ -0,0 +1,11 @@ +--- nsgmls/RastEventHandler.h.orig Thu Feb 6 00:13:48 2003 ++++ nsgmls/RastEventHandler.h Thu Feb 6 00:14:04 2003 +@@ -102,7 +102,7 @@ + + class RastEventHandler : public ErrorCountEventHandler, + private RastSubdocState, +- private Messenger { ++ protected Messenger { + public: + RastEventHandler(SgmlParser *, Messenger *); + void data(DataEvent *); Index: files/patch-ai =================================================================== RCS file: files/patch-ai diff -N files/patch-ai --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/patch-ai 6 Feb 2003 01:29:46 -0000 @@ -0,0 +1,11 @@ +--- lib/parser_inst.m4.orig Thu Feb 6 01:03:36 2003 ++++ lib/parser_inst.m4 Thu Feb 6 01:04:17 2003 +@@ -164,7 +164,7 @@ + __instantiate(Vector) + __instantiate(Vector) + __instantiate(Vector) +-#if 0 ++#if defined(__alpha__) || defined(__ia64__) || defined(__sparc64__) + __instantiate(Vector) + #endif + __instantiate(Vector) >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports-bugs" in the body of the message