Building gtk-2.6.9: problem and solution

Joe Marcus Clarke marcus at marcuscom.com
Fri Aug 12 01:48:00 GMT 2005


On Fri, 2005-08-12 at 11:20 +1000, lukem.freebsd at cse.unsw.edu.au wrote:
> On Thu, 11 Aug 2005, Joe Marcus Clarke wrote:
> >> Could someone tell me whether the pthread_ functions should actually be
> >> defined in /usr/local/lib/libgthread-2.0.so.
> >
> > No, they shouldn't.  They're defined in libpthread.so.  However, they
> > will not be linked into shared libraries.  Instead, the pkg-config
> > output for gthread-2.0 should contain -pthread.  What does ``pkg-config
> > --libs gthread-2.0'' report?  If it doesn't contain -pthread, then you
> > need to fix your glib20 installation.
> 
> Indeed, it does not contain -pthread:
> bash-2.05b# pkg-config --libs gthread-2.0
> -L/usr/local/lib -lgthread-2.0 -lc_r
> 
> How would one fix this?
> 
> I have already rebuilt glib20 (glib-2.6.6), both by make deinstall / make 
> reinstall and by portupgrade -Rf glib-2.6.6.

No, it contains -lc_r.  Depending on the version of FreeBSD, it should
contain either -pthread or -lpthread.  What version of FreeBSD is this? 

Joe

> 
-- 
PGP Key : http://www.marcuscom.com/pgp.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20050811/9a378d65/attachment.bin


More information about the freebsd-ports mailing list