NetBSD Problem Report #7759

Received: (qmail 3452 invoked from network); 11 Jun 1999 12:39:08 -0000
Message-Id: <199412312345.AAA18408@rfhpc8002.fh-regensburg.de>
Date: Sun, 1 Jan 1995 00:45:58 +0100 (MET)
From: Hubert Feyrer <feyrer@rfhs8012.fh-regensburg.de>
Reply-To: hubert.feyrer@rz.uni-regensburg.de
To: gnats-bugs@gnats.netbsd.org
Subject: BSD/OS binaries fail for audio
X-Send-Pr-Version: 3.95

>Number:         7759
>Category:       port-i386
>Synopsis:       BSD/OS binaries fail for audio
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-i386-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 11 05:50:00 +0000 1999
>Closed-Date:    Thu Apr 05 10:58:44 +0000 2007
>Last-Modified:  Thu Apr 05 10:58:44 +0000 2007
>Originator:     Hubert Feyrer
>Release:        1.4
>Organization:
Hubert Feyrer <hubertf@channel.regensburg.org>
>Environment:

System: NetBSD yui 1.4 NetBSD 1.4 (YUI) #23: Wed Jun 9 03:07:36 MEST 1999 feyrer@yui:/disk1/cvs/src-1.4/sys/arch/i386/compile/YUI i386


>Description:
	mtv (from ftp://ftp.mpegtv.com/pub/mpeg/mpegtv/player/x86-bsdi-bsdos/mtv-1.0.6.0.tgz)
	has problems with the audio interface on NetBSD 1.4 (i386):

There's a popup window that says:
	Warning!
	Audio device busy or sampl. rate unsup. (muting)
	Invalid Argument


yui% file /tmp/mtv/mtv
/tmp/mtv/mtv: 386 compact demand paged pure executable
yui% file /tmp/mtv/mtvp
/tmp/mtv/mtvp: 386 compact demand paged pure executable not stripped

ktrace says:

...
 17810 mtvp     CALL  open(0x13780,0,0xfb000)
 17810 mtvp     NAMI  "/dev/mixer"
 17809 mtvp     CALL  break(0xfbffc)
 17809 mtvp     RET   break 0 
 17809 mtvp     CALL  break(0xfcffc)
 17809 mtvp     RET   break 0 
 17809 mtvp     CALL  break(0xfdffc)
 17809 mtvp     RET   break 0
 17809 mtvp     CALL  break(0xfeffc)
 17809 mtvp     RET   break 0 
 17809 mtvp     CALL  break(0xffffc)
 17809 mtvp     RET   break 0 
 17809 mtvp     CALL  break(0x100ffc)
 17809 mtvp     RET   break 0
 17810 mtvp     RET   open 4
 17810 mtvp     CALL  ioctl(0x4,_IOR('M',0,0x4),0xefbb7330)
 17810 mtvp     RET   ioctl -1 errno 22 Invalid argument
 17810 mtvp     CALL  write(0x5,0xefbb9370,0x8)
 17810 mtvp     GIO   fd 5 wrote 8 bytes
 17810 mtvp     RET   write 8 
 17810 mtvp     CALL  ioctl(0x4,_IOR('M',0x4,0x4),0xefbb6304)
 17810 mtvp     RET   ioctl -1 errno 22 Invalid argument
 17810 mtvp     CALL  ioctl(0x4,_IOR('M',0x4,0x4),0xefbb6304)
 17810 mtvp     RET   ioctl -1 errno 22 Invalid argument
...
 17810 mtvp     CALL  ioctl(0x4,_IOR('M',0x4,0x4),0xefbb22a8)
 17810 mtvp     RET   ioctl -1 errno 22 Invalid argument
 17810 mtvp     CALL  ioctl(0x4,_IOR('M',0x4,0x4),0xefbb22a8)
 17810 mtvp     RET   ioctl -1 errno 22 Invalid argument
...
 17810 mtvp     CALL  ioctl(0x4,_IOR('M',0x4,0x4),0xefbb22a8)
 17810 mtvp     RET   ioctl -1 errno 22 Invalid argument
 17810 mtvp     CALL  ioctl(0x4,_IOR('M',0x4,0x4),0xefbb22a8)
 17810 mtvp     RET   ioctl -1 errno 22 Invalid argument
...
 17810 mtvp     CALL  ioctl(0x4,_IOR('M',0x4,0x4),0xefbb22a8)
 17810 mtvp     RET   ioctl -1 errno 22 Invalid argument
 17810 mtvp     CALL  ioctl(0x4,_IOR('M',0x4,0x4),0xefbb22a8)
 17810 mtvp     RET   ioctl -1 errno 22 Invalid argument
...
 17810 mtvp     CALL  ioctl(0x4,_IOR('M',0x4,0x4),0xefbb6300)
 17810 mtvp     RET   ioctl -1 errno 22 Invalid argument
 17810 mtvp     CALL  ioctl(0x4,_IOR('M',0x4,0x4),0xefbb6300)
 17810 mtvp     RET   ioctl -1 errno 22 Invalid argument
...



>How-To-Repeat:
	run mtv (see URL above) on a 1.4/i386 box, see the above in ktrace.

>Fix:
	no idea. 
>Release-Note:
>Audit-Trail:

From: Hubert Feyrer <feyrer@rfhs8012.fh-regensburg.de>
To: hubert.feyrer@rz.uni-regensburg.de
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: port-i386/7759: BSD/OS binaries fail for audio
Date: Fri, 11 Jun 1999 14:53:37 +0200 (MET DST)

 On Sun, 1 Jan 1995, Hubert Feyrer wrote:
 > >Environment:
 > System: NetBSD yui 1.4 NetBSD 1.4 (YUI) #23: Wed Jun 9 03:07:36 MEST 1999 feyrer@yui:/disk1/cvs/src-1.4/sys/arch/i386/compile/YUI i386

 I forgot, this is what dmesg says about audio:

 sb1 at isapnp0 port 0x220/16,0x330/2,0x388/4 irq 5 drq 1,5
 sb1: Creative SB AWE32 PnP Audio: dsp v4.13
 midi1 at sb1: <MPU-401 MIDI UART>
 audio0 at sb1: full duplex
 opl0 at sb1: model OPL3


  - Hubert

 -- 
 NetBSD - Better for your uptime than Viagra


From: Sergey Svishchev <svs@ropnet.ru>
To: gnats-bugs@gnats.netbsd.org
Cc: hubertf@netbsd.org
Subject: Re: port-i386/7759: BSD/OS binaries fail for audio
Date: Thu, 16 Aug 2001 16:38:04 +0400

 BSD/OS mtvp executable runs just fine if you make it into a FreeBSD executable:

 objcopy -I a.out-i386-bsd -O a.out-i386-freebsd mtvp mtvp.freebsd

 This requires COMPAT_FREEBSD, of course.

 -- 
 Sergey Svishchev
State-Changed-From-To: open->feedback 
State-Changed-By: fair 
State-Changed-When: Sun Jan 20 02:57:19 PST 2002 
State-Changed-Why:  
It's been over two years since this PR was filed, and at least one major 
release ago. Has this problem been resolved? 

From: Hubert Feyrer <hubert.feyrer@informatik.fh-regensburg.de>
To: gnats-bugs@gnats.netbsd.org
Cc:  
Subject: Re: port-i386/7759: BSD/OS binaries fail for audio
Date: Sun, 20 Jan 2002 14:40:10 +0100 (MET)

 The problem still exists in 1.5.3_ALPHA/i386. 


  - Hubert

 -- 
 Want to get a clue on IPv6 but don't know where to start? Try this:
 * Basics -> http://www.onlamp.com/pub/a/onlamp/2001/05/24/ipv6_tutorial.html
 * Setup  -> http://www.onlamp.com/pub/a/onlamp/2001/06/01/ipv6_tutorial.html 
 Of course with your #1 IPv6 ready operating system -> http://www.NetBSD.org/

State-Changed-From-To: feedback->open 
State-Changed-By: fair 
State-Changed-When: Thu May 29 05:51:07 UTC 2003 
State-Changed-Why:  
Feedback was given about 1.5.3_ALPHA over a year ago. 
However, a work-around was also given. 
This should probably be looked at by our emulation guru. 

From: Hubert Feyrer <hubert.feyrer@informatik.fh-regensburg.de>
To: gnats-bugs@netbsd.org
Cc:  
Subject: Re: port-i386/7759
Date: Fri, 30 May 2003 03:35:10 +0200 (MEST)

 I re-tried this with 1.6T, and it's still broken.
 By now, the bsdi binary of mtv is unsupported, but still available.

 The workaround doesn't work:

 	miyu%  objcopy -I a.out-i386-bsd -O a.out-i386-freebsd mtvp mtvp.freebsd
 	objcopy: mtvp.freebsd: Invalid bfd target


  - Hubert

 -- 
 Want to get a clue on IPv6 but don't know where to start? Try this:
 * Basics -> http://www.onlamp.com/pub/a/onlamp/2001/05/24/ipv6_tutorial.html
 * Setup  -> http://www.onlamp.com/pub/a/onlamp/2001/06/01/ipv6_tutorial.html
 Of course with your #1 IPv6 ready operating system -> http://www.NetBSD.org/

From: Sergey Svishchev <svs+pr@grep.ru>
To: gnats-bugs@gnats.netbsd.org
Cc: hubertf@netbsd.org
Subject: Re: port-i386/7759: BSD/OS binaries fail for audio
Date: Thu, 16 Oct 2003 02:09:34 +0400

 BSD/OS uses OSS audio, as does FreeBSD, that's why objcopy hack
 worked.  Someone should write COMPAT_BSDOS code to fix this problem
 properly ...

 -- 
 Sergey Svishchev
State-Changed-From-To: open->suspended 
State-Changed-By: mycroft 
State-Changed-When: Sat Jul 3 21:08:17 UTC 2004 
State-Changed-Why:  
BSD/OS emulation hasn't been supported for years. 
State-Changed-From-To: suspended->closed
State-Changed-By: ad@netbsd.org
State-Changed-When: Thu, 05 Apr 2007 10:58:44 +0000
State-Changed-Why:
Suspended for ~3 years, and will never be fixed.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.