pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/36557: "Invalid param" runtime error in audio/flite on OpenBSD 4.1



>Number:         36557
>Category:       pkg
>Synopsis:       "Invalid param" runtime error in audio/flite on OpenBSD 4.1
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 25 19:45:00 +0000 2007
>Originator:     Alexander Nasonov
>Release:        
>Organization:
>Environment:
OpenBSD 4.1 GENERIC i386
>Description:
audio/flite cannot say a message on OpenBSD 4.1. For example,

$ flite
Say Hello
^D
sun_audio: failed to set audio params: bla-bla-bla

(I don't remember exact message)

>How-To-Repeat:
$ flite
Say Hello
^D
>Fix:
>From 
>http://www.openbsd.org/cgi-bin/cvsweb/ports/audio/flite/patches/patch-src_audio_au_sun_c?rev=1.1.1.1&content-type=text/x-cvsweb-markup:

$OpenBSD: patch-src_audio_au_sun_c,v 1.1.1.1 2003/04/23 05:33:19 jason Exp $
--- src/audio/au_sun.c.orig     Mon Jan  7 18:25:52 2002
+++ src/audio/au_sun.c  Sun Apr 20 18:12:34 2003
@@ -45,6 +45,7 @@
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <errno.h>
+#include <sys/ioctl.h>
 #include <sys/filio.h>
 #include <sys/audioio.h>
 #include "cst_string.h"
@@ -76,7 +77,11 @@ cst_audiodev *audio_open_sun(int sps, in
            cst_error();
        }
     }
+#ifdef __OpenBSD__
+    AUDIO_INITINFO(&ainfo);
+#else
     ioctl(fd,AUDIO_GETINFO,&ainfo);
+#endif
 
     switch (fmt)
     {




Home | Main Index | Thread Index | Old Index