From nobody@FreeBSD.org  Thu May 24 20:07:03 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id CD0B716A41F
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 24 May 2007 20:07:03 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id AED1B13C448
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 24 May 2007 20:07:03 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l4OK73QI018334
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 24 May 2007 20:07:03 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id l4OK73dw018333;
	Thu, 24 May 2007 20:07:03 GMT
	(envelope-from nobody)
Message-Id: <200705242007.l4OK73dw018333@www.freebsd.org>
Date: Thu, 24 May 2007 20:07:03 GMT
From: Dwayne MacKinnon<dwaynemk@hotmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: multimedia/mplayer does not compile under default settings
X-Send-Pr-Version: www-3.0

>Number:         112951
>Category:       ports
>Synopsis:       multimedia/mplayer does not compile under default settings
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 24 20:10:04 GMT 2007
>Closed-Date:    Fri May 25 14:14:53 GMT 2007
>Last-Modified:  Fri May 25 14:14:53 GMT 2007
>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:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Thu May 24 20:10:10 UTC 2007 
State-Changed-Why:  
Awaiting maintainers feedback 

http://www.freebsd.org/cgi/query-pr.cgi?pr=112951 

From: Pav Lucistnik <pav@FreeBSD.org>
To: bug-followup@FreeBSD.org, dwaynemk@hotmail.com
Cc:  
Subject: Re: ports/112951: multimedia/mplayer does not compile under
	default settings
Date: Thu, 24 May 2007 22:22:12 +0200

 Dwayne,
 
 $ pkg_info -L libdca*
 Information for libdca-0.0.5:
 
 Files:
 /usr/local/man/man1/dcadec.1.gz
 /usr/local/man/man1/extract_dca.1.gz
 /usr/local/man/man1/dtsdec.1.gz
 /usr/local/man/man1/extract_dts.1.gz
 /usr/local/bin/dcadec
 /usr/local/bin/dtsdec
 /usr/local/bin/extract_dca
 /usr/local/bin/extract_dts
 /usr/local/include/dca.h
 /usr/local/include/dts.h
 /usr/local/lib/libdca.a
 /usr/local/lib/libdca.la
 /usr/local/lib/libdca.so
 /usr/local/lib/libdca.so.0
 /usr/local/lib/libdts.a
 /usr/local/libdata/pkgconfig/libdca.pc
 /usr/local/libdata/pkgconfig/libdts.pc
 
 The libdca port, at least on my machine, installs dts.h with the
 compatibility declarations to allow apps like mplayer to compile.
 
 What does this command lists on your machine?
 
 -- 
 Pav Lucistnik <pav@oook.cz>
               <pav@FreeBSD.org>
 
 KDE is for the techies who feel they can't be productive without being
 able to control the exact amount of bevel in their window frames
 in 2% increments.
 

From: "Dwayne MacKinnon" <dwaynemk@hotmail.com>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: ports/112951: multimedia/mplayer does not compile under default settings
Date: Fri, 25 May 2007 13:57:08 +0000

 Okay,
 
 I did a pkg_info -L on libdca, and it gave me the same listing. Yet dts.h 
 was definitely not on my machine. So I did a portupgrade -f on libdca, and 
 voila... there it is.
 
 Thanks for the help on this; the bug should probably be marked closed now.
 
 _________________________________________________________________
 Upgrade to Windows Live Hotmail for free today! 
 www.newhotmail.ca?icid=WLHMENCA151
 
State-Changed-From-To: feedback->closed 
State-Changed-By: pav 
State-Changed-When: Fri May 25 14:14:39 UTC 2007 
State-Changed-Why:  
Caused by local problem 

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