From owner-freebsd-bugs@FreeBSD.ORG Mon Jun 9 17:10:06 2008 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 110CE1065686 for ; Mon, 9 Jun 2008 17:10:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E5E618FC24 for ; Mon, 9 Jun 2008 17:10:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m59HA5D8011359 for ; Mon, 9 Jun 2008 17:10:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m59HA5VI011358; Mon, 9 Jun 2008 17:10:05 GMT (envelope-from gnats) Resent-Date: Mon, 9 Jun 2008 17:10:05 GMT Resent-Message-Id: <200806091710.m59HA5VI011358@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Peter Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E44A2106566C for ; Mon, 9 Jun 2008 17:00:45 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id D61798FC12 for ; Mon, 9 Jun 2008 17:00:45 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m59H0jSl018727 for ; Mon, 9 Jun 2008 17:00:45 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m59H0jVE018726; Mon, 9 Jun 2008 17:00:45 GMT (envelope-from nobody) Message-Id: <200806091700.m59H0jVE018726@www.freebsd.org> Date: Mon, 9 Jun 2008 17:00:45 GMT From: Peter To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/124423: mplayer detection of OSS Audio is faulty X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jun 2008 17:10:06 -0000 >Number: 124423 >Category: misc >Synopsis: mplayer detection of OSS Audio is faulty >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jun 09 17:10:05 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Peter >Release: 6.2R >Organization: >Environment: FreeBSD v62 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 12 10:40:27 UTC 2007 root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: Mplayer (0.99.11) ports from Dec 12 2007 on 6.2R/i386 tries to detect OSS Audio by: /usr/ports/multimedia/mplayer/work/MPlayer-1.0rc2/configure.log ============ Checking for OSS Audio ============ #include #include int main(void) { int arg = SNDCTL_DSP_SETFRAGMENT; return 0; } cc -O2 -fno-strict-aliasing -pipe -O3 -ffast-math -fomit-frame-pointer -fno-fast-math -I/usr/local/include/freetype2 -I/usr/local/include -L/usr/local/lib -liconv -lncurses -lpng -lz -lXv -laudio -lXt -o /usr/ports/multimedia/mplayer/work/MPlayer-1.0rc2/mplayer-conf--81388 /usr/ports/multimedia/mplayer/work/MPlayer-1.0rc2/mplayer-conf--81388.c /usr/bin/ld: cannot find -lXv Result is: no ########################################## The port 'xorg-libraries6.9.0' containing /usr/X11R6/lib/libXv.a and /usr/X11R6/lib/libXv.so is installed. So because it fails to find libXv not needed for audio it fails "detect audio". This is the first catch. The second is that the argument '-L/usr/X11R6/lib' should be included, but isn't. I added this to get 'xv' support in the /usr/ports/multimedia/mplayer/Makefile: CONFIGURE_ARGS+=--enable-x11 --enable-xv >How-To-Repeat: Adding 'CONFIGURE_ARGS+=--enable-x11 --enable-xv' into Makefile. >Fix: Audio detection should involve any video libraries. Some patching of the autodetect might be needed. /usr/ports/multimedia/mplayer/work/MPlayer-1.0rc2/configure It might be fixed with at line 4958: cc_check && _ossaudio=yes Replaced with: tmp1234="$_libs_mplayer" _libs_mplayer="" cc_check && _ossaudio=yes _libs_mplayer="$tmp1234" Possible fix (untested): CONFIGURE_ARGS+=--with-extralibdir=/usr/X11R6/lib >Release-Note: >Audit-Trail: >Unformatted: