From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Jul 15 00:20:25 2008 Return-Path: Delivered-To: freebsd-ports-bugs@FreeBSD.org Received: from [127.0.0.1] (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by hub.freebsd.org (Postfix) with ESMTP id BCE0E106566B; Tue, 15 Jul 2008 00:20:25 +0000 (UTC) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: Martin Laabs Date: Mon, 14 Jul 2008 20:20:07 -0400 User-Agent: KMail/1.6.2 References: <200807121600.m6CG0Hl1017996@freefall.freebsd.org> In-Reply-To: <200807121600.m6CG0Hl1017996@freefall.freebsd.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200807142020.09115.jkim@FreeBSD.org> Cc: freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/125542: audio/oss does not return propper SNDCTL_DSP_GETBLKSIZE size X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jul 2008 00:20:26 -0000 This is one of the incompatibilities between FreeBSD vs. OSS API. soundcard.h from FreeBSD: #define SNDCTL_DSP_GETBLKSIZE _IOR('P', 4, int) soundcard.h from OSS: #define SNDCTL_DSP_GETBLKSIZE __SIOWR('P', 4, int) Note FreeBSD version is read-only and OSS version is not. It seems OSS version is wrong but it is an obsolete API: http://manuals.opensound.com/developer/SNDCTL_DSP_GETBLKSIZE.html You have two choices here. Compile your appliacations with include/soundcard.h from OSS distribution or use SNDCTL_DSP_GET[IO]SPACE as recommeneded in the manual. The latter is obviously better choice and there is no incompatibility between the two versions. Jung-uk Kim