Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Feb 2014 20:53:33 GMT
From:      Carlos Jacobo Puga Medina <cjpugmed@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/186427: multimedia/mplayer2 fails to build with "libavresample" flag
Message-ID:  <201402032053.s13KrX53021370@oldred.freebsd.org>
Resent-Message-ID: <201402032100.s13L00ou067775@freefall.freebsd.org>

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

>Number:         186427
>Category:       ports
>Synopsis:       multimedia/mplayer2 fails to build with "libavresample" flag
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 03 21:00:00 UTC 2014
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



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