ports/117386: [patch] to make lang/mit-scheme compileable by GCC 4.2
Alexandre Sunny Kovalenko
alex.kovalenko at verizon.net
Mon Oct 22 00:50:02 UTC 2007
>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 at 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:
More information about the freebsd-ports-bugs
mailing list