Date: Thu, 03 Aug 2006 16:15:15 +0400 From: Yuri Pankov <y.pankov@irbis.net.ru> To: Andriy Gapon <avg@icyb.net.ua> Cc: freebsd-gnome@freebsd.org Subject: Re: libgthread not linked with threads lib ??? Message-ID: <1154607315.86343.9.camel@sierra.irbis.net.ru> In-Reply-To: <44D1D9D9.2070608@icyb.net.ua> References: <44D1D9D9.2070608@icyb.net.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
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) > > Not sure if this is something wrong with my environment or if this is a > universal problem with glib2 port. > > BTW, is there anyway to add shared library dependency to an exisiting > shared library (post-linking) ? LD_PRELOAD=libpthread.so works for me, > but fixing libgthread-2.0.so dependencies in-place would be better. > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1154607315.86343.9.camel>