From owner-freebsd-multimedia@FreeBSD.ORG Thu Aug 7 13:49:01 2008 Return-Path: Delivered-To: multimedia@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4160B106567F for ; Thu, 7 Aug 2008 13:49:01 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from falcon.cybervisiontech.com (falcon.cybervisiontech.com [217.20.163.9]) by mx1.freebsd.org (Postfix) with ESMTP id B65C78FC16 for ; Thu, 7 Aug 2008 13:49:00 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from localhost (localhost [127.0.0.1]) by falcon.cybervisiontech.com (Postfix) with ESMTP id 7FD1474417F; Thu, 7 Aug 2008 16:48:59 +0300 (EEST) X-Virus-Scanned: Debian amavisd-new at falcon.cybervisiontech.com Received: from falcon.cybervisiontech.com ([127.0.0.1]) by localhost (falcon.cybervisiontech.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id goR+ZeoeiD-E; Thu, 7 Aug 2008 16:48:59 +0300 (EEST) Received: from [10.2.1.87] (gateway.cybervisiontech.com.ua [91.198.50.114]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by falcon.cybervisiontech.com (Postfix) with ESMTP id DB1EB744174; Thu, 7 Aug 2008 16:48:58 +0300 (EEST) Message-ID: <489AFD48.5070004@icyb.net.ua> Date: Thu, 07 Aug 2008 16:48:56 +0300 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.16 (X11/20080805) MIME-Version: 1.0 To: Rainer Hurling References: <48998402.4000900@icyb.net.ua> <489ADB7E.8010604@icyb.net.ua> <489AE661.6070005@gwdg.de> <489AF8A0.9030005@icyb.net.ua> In-Reply-To: <489AF8A0.9030005@icyb.net.ua> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: multimedia@FreeBSD.org, ml@bettercom.de Subject: Re: transcode: 1.0.5_3 => 1.0.6_1 fails at configure (gnome-config) X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Aug 2008 13:49:01 -0000 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