Date: Mon, 9 Jun 2008 17:00:45 GMT From: Peter <pb@ludd.luth.se> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/124423: mplayer detection of OSS Audio is faulty Message-ID: <200806091700.m59H0jVE018726@www.freebsd.org> Resent-Message-ID: <200806091710.m59HA5VI011358@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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 <sys/ioctl.h> #include <sys/soundcard.h> 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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200806091700.m59H0jVE018726>