From owner-freebsd-multimedia@FreeBSD.ORG Fri Aug 8 13:59:39 2008 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BB8A31065673 for ; Fri, 8 Aug 2008 13:59:39 +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 3B4688FC26 for ; Fri, 8 Aug 2008 13:59:38 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from localhost (localhost [127.0.0.1]) by falcon.cybervisiontech.com (Postfix) with ESMTP id 7653F744177; Fri, 8 Aug 2008 16:59:35 +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 QSGF4A8m9UPQ; Fri, 8 Aug 2008 16:59:35 +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 201D2744171; Fri, 8 Aug 2008 16:59:35 +0300 (EEST) Message-ID: <489C5145.6030003@icyb.net.ua> Date: Fri, 08 Aug 2008 16:59:33 +0300 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.16 (X11/20080805) MIME-Version: 1.0 To: Henry Hu References: <53a1e0710808080529g1d63e79ej4130f6104914f9f0@mail.gmail.com> <489C402B.3000909@icyb.net.ua> <53a1e0710808080646y22b93d4eu12cdf4b4eeea619e@mail.gmail.com> In-Reply-To: <53a1e0710808080646y22b93d4eu12cdf4b4eeea619e@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-multimedia@freebsd.org Subject: Re: transcode: 1.0.5_3 => 1.0.6_1 fails at configure(Libs.private) 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: Fri, 08 Aug 2008 13:59:39 -0000 on 08/08/2008 16:46 Henry Hu said the following: > > You see libthr.so besides other libraries, which provides pthread_* functions. > In fact, I've written a small program just containing a call to > avcodec_thread_init, and compiled it successfully without -pthread, > just -lavcodec. > So the problem is that your libavcodec does not depends on libthr. What is your uname? On my system (6.3/amd64) none of the port-installed shared libraries have libthr (or any other thread library) recorded in their dependencies (as reported by ldd). > I've tried static linking and it needs -pthread. Libs.private is > outputed when adding -static to `pkg-config --libs libavcodec` > > > 2008/8/8 Andriy Gapon >> on 08/08/2008 15:29 Henry Hu said the following: >>> In my config.log, I found that there is -pthread in the arguments. >>> It comes from $LIBAVCODEC_EXTRA_LIBS, which comes from `pkg-config >>> --libs libavcodec` >>> >>> $ pkg-config --libs libavcodec >>> -pthread -L/usr/local/lib -lavcodec -lz -la52 -lfaac -lfaad -lmp3lame >>> -lx264 -lxvidcore -ltheora -lvorbisenc -lavutil -lvorbis -lm -logg >>> >>> So it is present when libavcodec(ffmpeg) is installed. >>> So why is it missing in your libavcodec's pkgconfig file? >> Hmm, your analysis is correct but I am not quite sure what is wrong in >> my env. >> >> What I have here is: >> $ pkg-config --libs libavcodec >> -L/usr/local/lib -lavcodec >> >> $ pkg_info -W /usr/local/libdata/pkgconfig/libavcodec.pc >> /usr/local/libdata/pkgconfig/libavcodec.pc was installed by package >> ffmpeg-2008.07.27_2 >> >> $ fgrep -A1 libavcodec.pc /var/db/pkg/ffmpeg-2008.07.27_2/+CONTENTS >> libdata/pkgconfig/libavcodec.pc >> @comment MD5:2d54dcacfc8826101f1ba6163da27797 >> >> $ md5 /usr/local/libdata/pkgconfig/libavcodec.pc >> MD5 (/usr/local/libdata/pkgconfig/libavcodec.pc) = >> 2d54dcacfc8826101f1ba6163da27797 >> >> $ cat /usr/local/libdata/pkgconfig/libavcodec.pc >> prefix=/usr/local >> exec_prefix=${prefix} >> libdir=${prefix}/lib >> includedir=${prefix}/include >> >> Name: libavcodec >> Description: FFmpeg codec library >> Version: 51.61.0 >> Requires: >> Requires.private: theora vorbisenc libavutil = 49.7.0 >> Conflicts: >> Libs: -L${libdir} -lavcodec >> Libs.private: -pthread -lz -lbz2 -lm -la52 -lfaad -ltheora -logg >> -lvorbisenc -lvorbis -logg -lx264 -lm >> Cflags: -I${includedir} >> >> >> Not sure about Libs vs Libs.private in the .pc file. >> Is this ffmpeg issue or transcode issue or pkg-config issue? >> Perhaps -pthread should be listed in Libs? >> >> -- >> Andriy Gapon -- Andriy Gapon