Date: Thu, 07 Aug 2008 16:48:56 +0300 From: Andriy Gapon <avg@icyb.net.ua> To: Rainer Hurling <rhurlin@gwdg.de> Cc: multimedia@FreeBSD.org, ml@bettercom.de Subject: Re: transcode: 1.0.5_3 => 1.0.6_1 fails at configure (gnome-config) Message-ID: <489AFD48.5070004@icyb.net.ua> In-Reply-To: <489AF8A0.9030005@icyb.net.ua> References: <48998402.4000900@icyb.net.ua> <489ADB7E.8010604@icyb.net.ua> <489AE661.6070005@gwdg.de> <489AF8A0.9030005@icyb.net.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
on 07/08/2008 16:29 Andriy Gapon said the following: > on 07/08/2008 15:11 Rainer Hurling said the following: >> Hi Andriy, >> >> Martin Lesser reported a patch to this a few days ago on multimedia@. It >> works well for me. >> >> Obviously it did not found the right way in the ports tree until now. > > I don't think that this is the same problem - in my case configure stage > fails, not the compilation. Looks like the issue I reported before might have been a red herring. >From config.log: configure:27697: checking for avcodec_thread_init in -lavcodec configure:27732: cc -o conftest -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -fno-strict-aliasing -pipe -O2 -fno-strict-aliasing -pipe -march=athlon64 -I/compat/linux/usr/include/divx -isystem /usr/include -isystem /usr/local/include -L/usr/local/lib -L/usr/local/lib conftest.c -lavcodec -L/usr/local/lib -lavcodec -lm -lz >&5 /usr/local/lib/libavcodec.so: undefined reference to `pthread_create' /usr/local/lib/libgpac.so.1: undefined reference to `pthread_attr_init' ... So, hmm, -pthread is needed but is not given by configure. I added '-pthread' to LDFLAGS in CONFIGURE_ENV and after that configure script succeeded. But this is probably a too big hummer for this nail. Also, I still believe that incorrect pkg-config package names (e.g. FFmpeg vs libavcodec, mpeg2dec vs libmpeg2) should be fixed in the configure script. But that is probably for upstream to do. >> Am 07.08.2008 13:24 (UTC+1) schrieb Andriy Gapon: >>> on 06/08/2008 13:59 Andriy Gapon said the following: >>>> $ make configure >>>> ... >>>> ... >>>> checking ffmpeg/avcodec.h usability... yes >>>> checking ffmpeg/avcodec.h presence... yes >>>> checking for ffmpeg/avcodec.h... yes >>>> checking libavcodec/avcodec.h usability... yes >>>> checking libavcodec/avcodec.h presence... yes >>>> checking for libavcodec/avcodec.h... yes >>>> checking for pkgconfig support for libavcodec... gnome-config: not found >>>> no >>>> checking how to determine LIBAVCODEC_CFLAGS... user >>>> checking how to determine LIBAVCODEC_LIBS... user >>>> checking for avcodec_thread_init in -lavcodec... no >>>> checking for pkgconfig support for libmpeg2... gnome-config: not found >>>> no >>>> ... >>>> ERROR: requirement failed: cannot link against libavcodec >>>> libavcodec can be found in the following packages: >>>> FFmpeg http://www.ffmpeg.org/ >>> [snip] >>> >>> I see the following block in the configure script: >>> pkg_config_libavcodec="no" >>> { echo "$as_me:$LINENO: checking for pkgconfig support for >>> libavcodec" >&5 >>> echo $ECHO_N "checking for pkgconfig support for libavcodec... $ECHO_C" >>>> &6; } >>> if test x"$PKG_CONFIG" != x"no" ; then >>> if $PKG_CONFIG FFmpeg --exists ; then >>> pkg_config_libavcodec="yes" >>> fi >>> fi >>> >>> And this is what happens on my system: >>> $ pkg-config FFmpeg --exists >>> gnome-config: not found >>> Exit 1 >>> >>> Is this a problem with configure or with my system? >>> > > -- Andriy Gapon
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?489AFD48.5070004>