Subject: Re: Anyone successfully compile NAS?
To: Zach Fine <czyz@u.washington.edu>
From: Greg A. Woods <woods@most.weird.com>
List: netbsd-users
Date: 05/07/1998 00:58:12
[ On Wed, May 6, 1998 at 19:47:01 (-0700), Zach Fine wrote: ]
> Subject: Anyone successfully compile NAS?
>
> Has anyone out there successfully compiled the Network Audio System
> under netbsd? 

I've got the clients (and thus the library) compiled and working on my
sparc after a wee bit of hacking -- mostly involving manual work-arounds
to the horrid imake build process.  I also helped build the whole works
on NetBSD a few months ago.

I've had to apply the following two simple changes (though there would
be a much better way to fix these if it weren't for imake):

Index: clients/audio/auedit/Graph.c
===================================================================
RCS file: /cvs/misc/nas/clients/audio/auedit/Graph.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 Graph.c
--- Graph.c     1997/10/07 01:41:29     1.1.1.1
+++ Graph.c     1998/05/03 06:05:49
@@ -27,7 +27,7 @@
  * $NCDId: @(#)Graph.c,v 1.11 1995/12/06 01:11:03 greg Exp $
  */
 
-#ifndef WIN32
+#if !defined(WIN32) && !defined(__NetBSD__)
 #include <values.h>
 #else /* WIN32 */
 #define MAXSHORT 0x7fff

Index: lib/audio/Alibint.c
===================================================================
RCS file: /cvs/misc/nas/lib/audio/Alibint.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 Alibint.c
--- Alibint.c   1997/10/07 01:42:33     1.1.1.1
+++ Alibint.c   1998/05/03 04:31:26
@@ -1324,7 +1324,7 @@
 static char *_SysErrorMsg (n)
     int n;
 {
-#if !defined(__FreeBSD__)
+#if !defined(__FreeBSD__) && !defined(__NetBSD__)
     extern char *sys_errlist[];
 #endif
     extern int sys_nerr;



-- 
							Greg A. Woods

+1 416 443-1734      VE3TCP      <gwoods@acm.org>      <robohack!woods>
Planix, Inc. <woods@planix.com>; Secrets of the Weird <woods@weird.com>