Subject: pkg/5894: Maelstrom fixes
To: None <gnats-bugs@gnats.netbsd.org>
From: Brad Salai <bsalai@law.roc.servtech.com>
List: netbsd-bugs
Date: 08/01/1998 08:44:23
>Number:         5894
>Category:       pkg
>Synopsis:       tries to include sparc sound files
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Aug  1 05:50:01 1998
>Last-Modified:
>Originator:     Brad Salai
>Organization:
Brad Salai			bsalai@tmonline.com
Cumpston & Shaw                 (716) 325-5553
Two State St.
Rochester, NY 14526
>Release:        current
>Environment:
sun4c
System: NetBSD law.roc.servtech.com 1.3F NetBSD 1.3F (APOLLO) #66: Thu Jul 23 03:33:59 EDT 1998 bsalai@law.roc.servtech.com:/usr/src/sys/arch/sparc/compile/APOLLO sparc


>Description:
tries to include /sun/audioio.h which isn't available
>How-To-Repeat:
keep trying

>Fix:
Here are two patches that helped. Sound still isn't working well, but I have reached the limit of what I can do, at least for now.

Brad
--- mixer.cpp.orig      Sat Aug  1 07:57:22 1998
+++ mixer.cpp   Sat Aug  1 07:58:31 1998
@@ -541,3 +541,3 @@
 #else  /* Normal device write */
 -ifde.## sparc
 rig      Sat Aug  1 07:57:22 1998
 +++ mixer.cpp   Sat Aug  1 07:58:31 1998
 @@ -541,3 +541,3 @@
  #else  /* Normal device write */
  -#ifdef sparc
  +#if defined(sparc) && !defined(__NetBSD__)
	  drain_it:

--- mixer.h.orig        Sun May 25 17:18:10 1997
+++ mixer.h     Sat Aug  1 07:55:27 1998
@@ -24,3 +24,3 @@
 #else
 -#ifdef sparc
 +#if defined(sparc) && !defined(__NetBSD__)
  #ifdef __SVR4   /* Solaris */
  @@ -40,2 +40,5 @@
   #endif /* linux */
   +#ifdef __NetBSD__
   +#include <soundcard.h>
   +#endif
    };



>Audit-Trail:
>Unformatted: