From nobody@FreeBSD.org  Mon Feb  3 20:53:34 2014
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id 25C062B5
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  3 Feb 2014 20:53:34 +0000 (UTC)
Received: from oldred.freebsd.org (oldred.freebsd.org [IPv6:2001:1900:2254:206a::50:4])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id EBBC81331
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  3 Feb 2014 20:53:33 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id s13KrX1x021371
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 3 Feb 2014 20:53:33 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id s13KrX53021370;
	Mon, 3 Feb 2014 20:53:33 GMT
	(envelope-from nobody)
Message-Id: <201402032053.s13KrX53021370@oldred.freebsd.org>
Date: Mon, 3 Feb 2014 20:53:33 GMT
From: Carlos Jacobo Puga Medina <cjpugmed@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: multimedia/mplayer2 fails to build with "libavresample" flag
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         186427
>Category:       ports
>Synopsis:       multimedia/mplayer2 fails to build with "libavresample" flag
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gblach
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 03 21:00:00 UTC 2014
>Closed-Date:    Sat Mar 22 17:48:15 UTC 2014
>Last-Modified:  Sat Mar 22 17:48:15 UTC 2014
>Originator:     Carlos Jacobo Puga Medina
>Release:        FreeBSD 9.2-RELEASE
>Organization:
>Environment:
FreeBSD freebsd 9.2-RELEASE-p3 FreeBSD 9.2-RELEASE-p3 #5: Tue Jan 14 23:02:12 CET 2014     charly@freebsd:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
mplayer2 fails to build properly with --enable-libavresample flag and shows the following errors:

libaf/af_lavcac3enc.o: In function `af_open':
af_lavcac3enc.c:(.text+0xff): undefined reference to `avresample_alloc_context'
libaf/af_lavcac3enc.o: In function `encode_data':
af_lavcac3enc.c:(.text+0x2aa): undefined reference to `avresample_convert'
libaf/af_lavcac3enc.o: In function `uninit':
af_lavcac3enc.c:(.text+0x480): undefined reference to `avresample_free'
libaf/af_lavcac3enc.o: In function `control':
af_lavcac3enc.c:(.text+0x783): undefined reference to `avresample_close'
af_lavcac3enc.c:(.text+0x8e0): undefined reference to `avresample_open'
libmpcodecs/ad_ffmpeg.o: In function `decode_audio':
ad_ffmpeg.c:(.text+0x2c4): undefined reference to `avresample_free'
ad_ffmpeg.c:(.text+0x407): undefined reference to `avresample_convert'
ad_ffmpeg.c:(.text+0x5ab): undefined reference to `avresample_free'
ad_ffmpeg.c:(.text+0x73d): undefined reference to `avresample_alloc_context'
ad_ffmpeg.c:(.text+0x878): undefined reference to `avresample_open'
ad_ffmpeg.c:(.text+0x98c): undefined reference to `avresample_free'
libmpcodecs/ad_ffmpeg.o: In function `uninit':
ad_ffmpeg.c:(.text+0xad3): undefined reference to `avresample_free'
gmake: *** [mplayer] Error 1
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** [do-build] Error code 1

Stop in /usr/ports/multimedia/mplayer2.
*** [build] Error code 1

Stop in /usr/ports/multimedia/mplayer2.

>How-To-Repeat:
cd /usr/ports/multimedia/mplayer2 && make install clean
>Fix:
Just remove --enable-libavresample and let autodetection handle the flags.

--- Makefile.orig	2014-02-03 21:51:23.000000000 +0100
+++ Makefile	2014-02-03 21:51:35.000000000 +0100
@@ -30,7 +30,6 @@
 		--extra-libs='-lavresample' \
 		--extra-ldflags='-L${LOCALBASE}/lib/portaudio2' \
 		--mandir=${PREFIX}/man \
-		--enable-libavresample \
 		--disable-alsa \
 		--disable-liba52 \
 		--disable-directfb \


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->gblach 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Mon Feb 3 21:00:13 UTC 2014 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

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

From: Grzegorz Blach <grzegorz@blach.pl>
To: bug-followup@FreeBSD.org, cjpugmed@gmail.com
Cc:  
Subject: Re: ports/186427: multimedia/mplayer2 fails to build with &quot;libavresample&quot;
 flag
Date: Mon, 10 Feb 2014 00:05:06 +0100

 Hi,
 
 I can't repeat the issue that you report.
 Please check if you have installed recent version of ports on which
 mplayer2 depends,
 especially please pay attention on ffmpeg.
 
 Cheers

From: Carlos Jacobo Puga Medina <cjpugmed@gmail.com>
To: bug-followup@FreeBSD.org, grzegorz@blach.pl
Cc:  
Subject: ports/186427: multimedia/mplayer2 fails to build with "libavresample" flag
Date: Mon, 10 Feb 2014 18:45:26 +0100

 --047d7b66f00faacfaa04f210e723
 Content-Type: text/plain; charset=ISO-8859-1
 
 For me, MPlayer builds fine without this flag. Also, see this problem
 reported [1].
 
 Regards,
 
 [1] http://devel.mplayer2.org/ticket/236
 
 --047d7b66f00faacfaa04f210e723
 Content-Type: text/html; charset=ISO-8859-1
 Content-Transfer-Encoding: quoted-printable
 
 <div dir=3D"ltr"><div>For me, MPlayer builds fine without this flag. Also, =
 see this problem reported [1].</div><div><br></div><div>Regards,</div><div>=
 <br></div><div>[1]=A0<a href=3D"http://devel.mplayer2.org/ticket/236">http:=
 //devel.mplayer2.org/ticket/236</a></div>
 </div>
 
 --047d7b66f00faacfaa04f210e723--

From: Carlos Jacobo Puga Medina <cjpugmed@gmail.com>
To: bug-followup@FreeBSD.org, grzegorz@blach.pl
Cc:  
Subject: ports/186427: multimedia/mplayer2 fails to build with "libavresample" flag
Date: Sun, 2 Mar 2014 19:31:14 +0100

 --001a1133c9aa40da1204f3a3e044
 Content-Type: text/plain; charset=ISO-8859-1
 
 This PR can be closed.
 
 --001a1133c9aa40da1204f3a3e044
 Content-Type: text/html; charset=ISO-8859-1
 
 <div dir="ltr">This PR can be closed.</div>
 
 --001a1133c9aa40da1204f3a3e044--
State-Changed-From-To: open->closed 
State-Changed-By: gblach 
State-Changed-When: Sat Mar 22 17:48:14 UTC 2014 
State-Changed-Why:  
Close on submitter request 

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