From: Takashi Iwai Subject: Re: [PATCH 2/3] Check for and include libavutil.h to avoid unresolved symbols. Date: Thu, 16 May 2013 10:37:18 +0200 Message-ID: References: <1368637908-29042-1-git-send-email-jordi@debian.org> <1368637908-29042-3-git-send-email-jordi@debian.org> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 06D172619E1 for ; Thu, 16 May 2013 10:37:27 +0200 (CEST) In-Reply-To: <1368637908-29042-3-git-send-email-jordi@debian.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Jordi Mallach Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Wed, 15 May 2013 19:11:47 +0200, Jordi Mallach wrote: > > The a52 plugin uses av_free(), but does not check for libavutil > availability. Patch configure.in to check for the module, and include > libavutil.h. > > Signed-off-by: Jordi Mallach Well, the unconditional inclusion of libavutil/avutil.h is not 100% correct fix, but it should be OK for 99% of systems right now, so I took it as is. thanks, Takashi > --- > a52/pcm_a52.c | 1 + > configure.in | 2 +- > 2 files changed, 2 insertions(+), 1 deletion(-) > > diff --git a/a52/pcm_a52.c b/a52/pcm_a52.c > index c40aadc..75c68bd 100644 > --- a/a52/pcm_a52.c > +++ b/a52/pcm_a52.c > @@ -26,6 +26,7 @@ > #include > #include > #include AVCODEC_HEADER > +#include > > #if LIBAVCODEC_VERSION_MAJOR >= 53 && LIBAVCODEC_VERSION_MINOR >= 34 > #include > diff --git a/configure.in b/configure.in > index 6f345f5..bf8676b 100644 > --- a/configure.in > +++ b/configure.in > @@ -67,7 +67,7 @@ AC_ARG_ENABLE([avcodec], > AS_HELP_STRING([--disable-avcodec], [Don't build plugins depending on avcodec (a52)])) > > if test "x$enable_avcodec" != "xno"; then > - PKG_CHECK_MODULES(AVCODEC, [libavcodec], [HAVE_AVCODEC=yes], [HAVE_AVCODEC=no]) > + PKG_CHECK_MODULES(AVCODEC, [libavcodec libavutil], [HAVE_AVCODEC=yes], [HAVE_AVCODEC=no]) > fi > > if test "x$HAVE_AVCODEC" = "xno"; then > -- > 1.7.10.4 > > _______________________________________________ > Alsa-devel mailing list > Alsa-devel@alsa-project.org > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel >