Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 May 2007 20:07:03 GMT
From:      Dwayne MacKinnon<dwaynemk@hotmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/112951: multimedia/mplayer does not compile under default settings
Message-ID:  <200705242007.l4OK73dw018333@www.freebsd.org>
Resent-Message-ID: <200705242010.l4OKA40i016477@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         112951
>Category:       ports
>Synopsis:       multimedia/mplayer does not compile under default settings
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 24 20:10:04 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Dwayne MacKinnon
>Release:        6.2-RELEASE
>Organization:
>Environment:
FreeBSD adminpc2 6.2-RELEASE FreeBSD 6.2-RELEASE #3: Thu Jan 18 17:35:52 EST 2007     root@adminpc2:/usr/obj/usr/src/sys/ADMINPC2  i386
>Description:
The mplayer port refuses to compile on my system using the default settings. The problem appears to be the DTS option (defaulting to on). This causes the program to go looking for dts.h, which does not exist.

The libdts port (multimedia/libdts) was renamed to multimedia/libdca during the first week of May. Although the libdepends of the mplayer port has been changed to libdca, code in dtsdec.c apparently expects the old header file, with the old constants.

cc -Wdeclaration-after-statement -fno-PIC -O2 -fno-strict-aliasing -pipe  -O3 -ffast-math -fomit-frame-pointer -I/usr/local/include  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/local/include/freetype2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include -D_THREAD_SAFE -I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include -I/usr/local/include/atk-1.0 -I/usr/local/include/cairo -I/usr/local/include/pango-1.0 -I/usr/local/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/freetype2   -I.  -I./libavutil -I./libavcodec   -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -I.. -I.. -I../libavutil -Wdeclaration-after-statement -fno-PIC -O2 -fno-strict-aliasing -pipe  -O3 -ffast-math -fomit-frame-pointer -I/usr/local/include  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/local/include/freetype2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/
 freetype2 -I/usr/local/include -D_THREAD_SAFE -I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include -I/usr/local/include/atk-1.0 -I/usr/local/include/cairo -I/usr/local/include/pango-1.0 -I/usr/local/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/freetype2    -c -o dtsdec.o dtsdec.c
dtsdec.c:27:17: dts.h: No such file or directory
dtsdec.c:59: error: syntax error before '*' token
dtsdec.c: In function `convert2s16_2':
dtsdec.c:62: error: `_f' undeclared (first use in this function)
dtsdec.c:62: error: (Each undeclared identifier is reported only once
dtsdec.c:62: error: for each function it appears in.)
dtsdec.c:66: error: `s16' undeclared (first use in this function)
dtsdec.c: At top level:
dtsdec.c:72: error: syntax error before '*' token
dtsdec.c: In function `convert2s16_4':
dtsdec.c:75: error: `_f' undeclared (first use in this function)
dtsdec.c:79: error: `s16' undeclared (first use in this function)
dtsdec.c: At top level:
dtsdec.c:87: error: syntax error before '*' token
dtsdec.c: In function `convert2s16_5':
dtsdec.c:90: error: `_f' undeclared (first use in this function)
dtsdec.c:94: error: `s16' undeclared (first use in this function)
dtsdec.c: At top level:
dtsdec.c:103: error: syntax error before '*' token
dtsdec.c: In function `convert2s16_multi':
dtsdec.c:106: error: `_f' undeclared (first use in this function)
dtsdec.c:108: error: `flags' undeclared (first use in this function)
dtsdec.c:110: error: `DTS_MONO' undeclared (first use in this function)
dtsdec.c:113: error: `s16' undeclared (first use in this function)
dtsdec.c:117: error: `DTS_CHANNEL' undeclared (first use in this function)
dtsdec.c:118: error: `DTS_STEREO' undeclared (first use in this function)
dtsdec.c:119: error: `DTS_DOLBY' undeclared (first use in this function)
dtsdec.c:122: error: `DTS_3F' undeclared (first use in this function)
dtsdec.c:131: error: `DTS_2F2R' undeclared (first use in this function)
dtsdec.c:134: error: `DTS_3F2R' undeclared (first use in this function)
dtsdec.c:137: error: `DTS_LFE' undeclared (first use in this function)
dtsdec.c: In function `channels_multi':
dtsdec.c:194: error: `DTS_LFE' undeclared (first use in this function)
dtsdec.c:198: error: `DTS_CHANNEL_MASK' undeclared (first use in this function)
dtsdec.c:198: error: `DTS_2F2R' undeclared (first use in this function)
dtsdec.c: In function `dts_decode_frame':
dtsdec.c:219: error: `dts_state_t' undeclared (first use in this function)
dtsdec.c:219: error: `state' undeclared (first use in this function)
dtsdec.c:255: error: syntax error before "level"
dtsdec.c:260: error: `level' undeclared (first use in this function)
dtsdec.c:261: error: `bias' undeclared (first use in this function)
dtsdec.c:263: error: `DTS_ADJUST_LEVEL' undeclared (first use in this function)
dtsdec.c:277: error: `DTS_CHANNEL_MASK' undeclared (first use in this function)
dtsdec.c:277: error: `DTS_LFE' undeclared (first use in this function)
dtsdec.c: In function `dts_decode_init':
dtsdec.c:298: warning: assignment makes pointer from integer without a cast
dtsdec.c: At top level:
dtsdec.c:315: error: `dts_state_t' undeclared here (not in a function)
dtsdec.c:315: error: syntax error before ')' token
gmake[1]: *** [dtsdec.o] Error 1
gmake[1]: Leaving directory `/usr/ports/multimedia/mplayer/work/MPlayer-1.0rc1/libavcodec'
gmake: *** [libavcodec/libavcodec.a] Error 2
*** Error code 2

Stop in /usr/ports/multimedia/mplayer.

>How-To-Repeat:
Build mplayer with libdca installed.
>Fix:
This is just a workaround: Turn off DTS support in the multimedia/mplayer Makefile.

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200705242007.l4OK73dw018333>