From owner-freebsd-ports@FreeBSD.ORG Thu Aug 3 12:40:27 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C0C5316A4EB; Thu, 3 Aug 2006 12:40:27 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3E87143D5C; Thu, 3 Aug 2006 12:40:25 +0000 (GMT) (envelope-from avg@icyb.net.ua) Received: from [212.40.38.87] (oddity-e.topspin.kiev.ua [212.40.38.87]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id PAA29452; Thu, 03 Aug 2006 15:40:20 +0300 (EEST) (envelope-from avg@icyb.net.ua) Message-ID: <44D1EEB4.9060707@icyb.net.ua> Date: Thu, 03 Aug 2006 15:40:20 +0300 From: Andriy Gapon User-Agent: Thunderbird 1.5.0.5 (X11/20060801) MIME-Version: 1.0 To: Yuri Pankov References: <44D1D9D9.2070608@icyb.net.ua> <1154607315.86343.9.camel@sierra.irbis.net.ru> In-Reply-To: <1154607315.86343.9.camel@sierra.irbis.net.ru> Content-Type: text/plain; charset=KOI8-U Content-Transfer-Encoding: 7bit Cc: freebsd-ports@freebsd.org, freebsd-gnome@freebsd.org Subject: Re: libgthread not linked with threads lib ??? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Aug 2006 12:40:27 -0000 on 03/08/2006 15:15 Yuri Pankov said the following: > On Thu, 2006-08-03 at 14:11 +0300, Andriy Gapon wrote: >> It seems that I've encountered an application that depends on libgthread >> and does not depend on any library that would suck in libpthread (or >> other threads library) through its dependencies. That application >> immediately aborts with the following message: >> /usr/local/lib/libgthread-2.0.so.0: Undefined symbol "pthread_getschedparam" >> >> It seems that this happens because libgthread references pthread symbols >> but does not have a dependency on a threading library: >> >> $ ldd /usr/local/lib/libgthread-2.0.so >> /usr/local/lib/libgthread-2.0.so: >> libintl.so.6 => /usr/local/lib/libintl.so.6 (0x48172000) >> libglib-2.0.so.0 => /usr/local/lib/libglib-2.0.so.0 (0x4817b000) >> libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x48200000) [snip] > > I had the same question some time ago. Check this URL for more info: > http://lists.freebsd.org/pipermail/freebsd-gnome/2006-April/014118.html > So your application seems to use pkg-config incorrectly or not at all. Yuri, thanks for your answer. I dug a little bit deeper and here's the deal: "the application" is "Save As ..." dialog of GVim (in graphical mode). Namely, the problem happens when GVim loads libgnome-vfs.so. libgnome-vfs.so has a dependency on libgthread-2.0 but no pthread (lib{pthread|thr|c_r}) dependency, so it must be the culprit here. -- Andriy Gapon