Subject: pkg/23244: devel/pccts fails to build on macppc-current
To: None <>
From: None <>
List: netbsd-bugs
Date: 10/23/2003 21:50:28
>Number:         23244
>Category:       pkg
>Synopsis:       devel/pccts fails to build on macppc-current
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 23 11:51:00 UTC 2003
>Originator:     matthew green
>Release:        NetBSD 1.6ZD
people's front against (bozotic) www (softwar foundation)
System: NetBSD 1.6ZD NetBSD 1.6ZD (_what_) #141: Sun Oct 19 21:03:51 EST 2003 macppc
Architecture: powerpc
Machine: macppc

	building devel/pccts on macppc with GCC3 fails due to attempting
	to use <varargs.h> (i assume it will fail on all -current.)  it
	has code to use <stdarg.h> but it fails to enable it in two files
	and ends up trying to include <varargs.h> instead.


	build something that wants to install devel/pccts in -current.


	this patch fixes sorlist.c, and a similar patch is also necessary
	for sorcerer/lib/sintstack.c.

--- pccts/sorcerer/lib/sorlist.c.orig	1999-06-30 11:15:56.000000000 +1000
+++ pccts/sorcerer/lib/sorlist.c	2003-10-23 21:47:33.000000000 +1000
@@ -29,15 +29,15 @@
 #include <stdio.h>
 #include <setjmp.h>
+#include "CASTBase.h"
+#include "sorlist.h"
 #include <stdarg.h>
 #include <varargs.h>
-#include "CASTBase.h"
-#include "sorlist.h"
 /* Iterate over a list of elements; returns ptr to a new element
  * in list upon every call and NULL when no more are left.
  * Very useful like this: