From nobody@FreeBSD.org  Sun May 20 12:07:46 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id C848637B424
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 20 May 2001 12:07:46 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.1/8.11.1) id f4KJ7k324434;
	Sun, 20 May 2001 12:07:46 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200105201907.f4KJ7k324434@freefall.freebsd.org>
Date: Sun, 20 May 2001 12:07:46 -0700 (PDT)
From: gavin@ury.york.ac.uk
To: freebsd-gnats-submit@FreeBSD.org
Subject: Linux emulation is missing code needed to run Linux Realproducer
X-Send-Pr-Version: www-1.0

>Number:         27471
>Category:       kern
>Synopsis:       Linux emulation is missing code needed to run Linux Realproducer
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bms
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 20 12:10:00 PDT 2001
>Closed-Date:    Tue Nov 02 07:02:20 GMT 2004
>Last-Modified:  Sat Jun 07 06:11:29 UTC 2008
>Originator:     Gavin Atkinson
>Release:        4.3-RELEASE
>Organization:
University Radio York
>Environment:
FreeBSD streamer.ury 4.3-RELEASE FreeBSD 4.3-RELEASE #3: Mon May 14 14:36:31 BST 2001     root@streamer.ury:/usr/src/sys/compile/STREAMER  i386
>Description:
Linux Realproducer requires emulation of the SOUND_MIXER_WRITE_RECSRC call, which is missing. Also included in the patch are a couple of other call patches for other linux audio programs (eg Debian aumix).
>How-To-Repeat:
Try to run RealProducer Basic (from http://www.realnetworks.com/products/producer/ ) under Linux emulation. it fails, with kernel log message 
"May 14 01:17:13 streamer /kernel: linux: 'ioctl' fd=4, cmd=4dff ('M',255) not implemented"
>Fix:
begin 644 linux_ioctl.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M,#0@,C`P,0HJ*BHJ*BHJ*BHJ*BHJ*BH**BHJ(#$P-C4L,3`W,B`J*BHJ"BTM
M+2`Q,#8U+#$P.#0@+2TM+0H@(`D)<F5T=7)N("AC;W!Y;W5T*"9V97)S:6]N
M+"`H8V%D9')?="EA<F=S+3YA<F<L('-I>F5O9BAI;G0I*2D["B`@"7T*("`*
M*R`)8V%S92!,24Y56%]33U5.1%]-25A%4E]214%$7U-415)%3T1%5E,Z"BL@
M"0EA<F=S+3YC;60@/2!33U5.1%]-25A%4E]214%$7U-415)%3T1%5E,["BL@
M"0ER971U<FX@*&EO8W1L*'`L("AS=')U8W0@:6]C=&Q?87)G<R`J*6%R9W,I
M*3L**R`**R`)8V%S92!,24Y56%]33U5.1%]-25A%4E]214%$7U)%0TU!4TLZ
M"BL@"0EA<F=S+3YC;60@/2!33U5.1%]-25A%4E]214%$7U)%0TU!4TL["BL@
M"0ER971U<FX@*&EO8W1L*'`L("AS=')U8W0@:6]C=&Q?87)G<R`J*6%R9W,I
M*3L**R`*("`)8V%S92!,24Y56%]33U5.1%]-25A%4E]214%$7T1%5DU!4TLZ
M"B`@"0EA<F=S+3YC;60@/2!33U5.1%]-25A%4E]214%$7T1%5DU!4TL["BL@
M"0ER971U<FX@*&EO8W1L*'`L("AS=')U8W0@:6]C=&Q?87)G<R`J*6%R9W,I
M*3L**R`**R`)8V%S92!,24Y56%]33U5.1%]-25A%4E]74DE415]214-34D,Z
M"BL@"0EA<F=S+3YC;60@/2!3151$25(H4T]53D1?34E815)?5U))5$5?4D5#
M4U)#*3L*("`)"7)E='5R;B`H:6]C=&PH<"P@*'-T<G5C="!I;V-T;%]A<F=S
M("HI87)G<RDI.PH@(`H@(`EC87-E($Q)3E587U-.1$-43%]$4U!?4D53150Z
!"BHI
`
end

>Release-Note:
>Audit-Trail:

From: "Vladimir B. Grebenschikov" <vova@express.ru>
To: gavin@ury.york.ac.uk
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: misc/27471: Linux emulation is missing code needed to run Linux Realproducer
Date: Mon, 21 May 2001 19:09:20 +0400 (MSD)

 I have applied your patch, so no more ioctl error message, but still
 not working:
 
 # /usr/local/realproducer-8.0/realproducer -l 2:1,0:0 -s server.express.ru:4040/test.rm -u live -p live1 -h "Some Author" -b "Some Title" -c Copyright -q Description -n "Key Words" -y 1 -z 0 -a 2 -v 0 -t 5 -in 1 -k 1 -nf 1 -r 1 -di 1 -lp 1
 
 Source:
         Audio:  Linux/OSS audio capture plug-in (/dev/dsp) [Line In]
 Output:         server.express.ru:4040/test.rm
 Title:          Some Title
 Author:         Some Author
 Copyright:              Copyright
 Keywords:               Key Words
 Description:            Description
 Target Audience: Corporate LAN
 Audio Format:   Music
 No Video
 Allow Recording:Enabled
 Allow Download: Enabled
 Server Type:    SureStream
 
 Encoding...
 ERROR: encoding failed, A General Error occurred.
 
 ------> Ending Run: Mon May 21 20:06:01 2001
 # truss /usr/local/realproducer-8.0/realproducer -l 2:1,0:0 -s server.express.ru:4040/test.rm -u live -p live1 -h "Some Author" -b "Some Title" -c Copyright -q Description -n "Key Words" -y 1 -z 0 -a 2 -v 0 -t 5 -in 1 -k 1 -nf 1 -r 1 -di 1 -lp 1 | & fgrep \'
 ...
 linux_newlstat(0xbfbfc2d8,0xbfbfa220)            ERR#2 'No such file or directory'
 linux_newlstat(0xbfbfc238,0xbfbfa180)            ERR#2 'No such file or directory'
 linux_newlstat(0xbfbfc238,0xbfbfa180)            ERR#2 'No such file or directory'
 read(0x3,0xbfbfe334,0x8)                         ERR#35 'Resource temporarily unavailable'
 linux_kill(0x32c,0x9)                            ERR#3 'No such process'
 linux_open("/tmp/fileuldiZt.rm",0,0600)          ERR#2 'No such file or directory'
 linux_open("",0,0600)                            ERR#2 'No such file or directory'
 linux_open("",0,0600)                            ERR#2 'No such file or directory'
 linux_open("",0,0600)                            ERR#2 'No such file or directory'
 linux_open("",0,0600)                            ERR#2 'No such file or directory'
 # 
 
 
 Any Ideas ?
 
 --
 TSB Russian Express, Moscow
 Vladimir B. Grebenschikov, vova@express.ru
Responsible-Changed-From-To: freebsd-bugs->bms 
Responsible-Changed-By: bms 
Responsible-Changed-When: Fri Jun 18 12:12:31 GMT 2004 
Responsible-Changed-Why:  
I'll field this 

http://www.freebsd.org/cgi/query-pr.cgi?pr=27471 
State-Changed-From-To: open->patched 
State-Changed-By: bms 
State-Changed-When: Fri Jun 18 14:30:03 GMT 2004 
State-Changed-Why:  
Committed to HEAD (with cleanups), thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=27471 
State-Changed-From-To: patched->closed 
State-Changed-By: bms 
State-Changed-When: Tue Nov 2 07:02:09 GMT 2004 
State-Changed-Why:  
RELENG_5 has now been branched as -STABLE 


http://www.freebsd.org/cgi/query-pr.cgi?pr=27471 
>Unformatted:
