Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Oct 2007 00:45:32 GMT
From:      Alexandre "Sunny" Kovalenko <alex.kovalenko@verizon.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/117386: [patch] to make lang/mit-scheme compileable by GCC 4.2
Message-ID:  <200710220045.l9M0jW5j086066@www.freebsd.org>
Resent-Message-ID: <200710220050.l9M0o1Hw045650@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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 <bsd.port.pre.mk>
 
-.if ${OSVERSION} >= 700042
-BROKEN=                Does not compile with GCC 4.2
-.endif
-
 .include <bsd.port.post.mk>



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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200710220045.l9M0jW5j086066>