From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Oct 22 00:50:02 2007 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2719516A420 for ; Mon, 22 Oct 2007 00:50:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 1553413C480 for ; Mon, 22 Oct 2007 00:50:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l9M0o1g5045651 for ; Mon, 22 Oct 2007 00:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l9M0o1Hw045650; Mon, 22 Oct 2007 00:50:01 GMT (envelope-from gnats) Resent-Date: Mon, 22 Oct 2007 00:50:01 GMT Resent-Message-Id: <200710220050.l9M0o1Hw045650@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Alexandre "Sunny" Kovalenko Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7FF0B16A417 for ; Mon, 22 Oct 2007 00:45:53 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 811B913C481 for ; Mon, 22 Oct 2007 00:45:53 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l9M0jWcO086067 for ; Mon, 22 Oct 2007 00:45:32 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.1/8.14.1/Submit) id l9M0jW5j086066; Mon, 22 Oct 2007 00:45:32 GMT (envelope-from nobody) Message-Id: <200710220045.l9M0jW5j086066@www.freebsd.org> Date: Mon, 22 Oct 2007 00:45:32 GMT From: Alexandre "Sunny" Kovalenko To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/117386: [patch] to make lang/mit-scheme compileable by GCC 4.2 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Oct 2007 00:50:02 -0000 >Number: 117386 >Category: ports >Synopsis: [patch] to make lang/mit-scheme compileable by GCC 4.2 >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Oct 22 00:50:01 UTC 2007 >Closed-Date: >Last-Modified: >Originator: Alexandre "Sunny" Kovalenko >Release: FreeBSD 7.0-BETA1 >Organization: Home >Environment: FreeBSD RabbitsDen.RabbitsLawn.verizon.net 7.0-BETA1 FreeBSD 7.0-BETA1 #0: Sat Oct 20 10:50:18 EDT 2007 root@RabbitsDen.RabbitsLawn.verizon.net:/usr/obj/usr/src/sys/TPX60 i386 >Description: Placing attached (trivial) patch into files/patch-obstack.h and changing the Makefile (see the "Fix" section below) are sufficient to compile lang/mit-scheme with GCC 4.2. Resulting executable is capable of interpreting some test Scheme programs. No advanced features were tested as of yet. >How-To-Repeat: >Fix: --- Makefile.ORIG 2007-10-21 14:54:22.000000000 -0400 +++ Makefile 2007-10-21 20:35:29.000000000 -0400 @@ -33,8 +33,4 @@ .include -.if ${OSVERSION} >= 700042 -BROKEN= Does not compile with GCC 4.2 -.endif - .include Patch attached with submission follows: --- obstack.h.orig 2007-10-21 20:23:56.000000000 -0400 +++ obstack.h 2007-10-21 20:25:36.000000000 -0400 @@ -231,7 +231,7 @@ #define obstack_blank_fast(h,n) ((h)->next_free += (n)) -#if defined (__GNUC__) && defined (__STDC__) +#if defined (USE_OBSTACK_MACROS) && defined (__GNUC__) && defined (__STDC__) /* For GNU C, if not -traditional, we can define these macros to compute all args only once >Release-Note: >Audit-Trail: >Unformatted: