Subject: Re: Problems building x11/gtk2, no "pangocairo"; pango at fault?
To: Magnus Eriksson <magetoo@fastmail.fm>
From: Julio M. Merino Vidal <jmmv84@gmail.com>
List: tech-pkg
Date: 12/03/2005 22:24:25
On 12/3/05, Magnus Eriksson <magetoo@fastmail.fm> wrote:
> On Sat, 26 Nov 2005, Magnus Eriksson wrote:
>
> > I've been having the same gtk2 problem as this guy:
> >
> > http://mail-index.netbsd.org/tech-pkg/2005/10/27/0023.html
> [...]
> > GTK fails in configure stage, due to missing "pangocairo".
> [...]
>
> Anyone?
>
> Having GTK would be nice.
>
>
>    I've been looking through pango's config.log, and the only thing that
> particularly catches my attention is this:
>
>
> configure:22267: checking for cairo_ft_scaled_font_lock_face in -lcairo
> configure:22297: cc -o conftest -O2 -I/usr/pkg/include -I/usr/include-DGL=
X_GLXEXT_LEGACY -I/usr/pkg/include/freetype2 -Wall -I/usr/pkg/include -I/us=
r/include -DGLX_GLXEXT_LEGACY -I/usr/pkg/include/freetype2 -L/usr/pkg/lib -=
Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/X11R6/lib -Wl,-R/usr/X11=
R6/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lcairo   conftest.c -lcairo  -lin=
tl >&5
> /usr/pkgsrc/devel/pango/work/.buildlink/lib/libcairo.so: undefined refere=
nce to `pthread_mutex_unlock'
> /usr/pkgsrc/devel/pango/work/.buildlink/lib/libcairo.so: undefined refere=
nce to `pthread_mutex_lock'
> configure:22303: $? =3D 1
> configure: failed program was:
[...]
>    So, I'm at a loss.  Any hints on what to look for (and how) would be
> appreciated.

This is exactly the problem.  You should start checking if
/usr/pkg/lib/libcairo.so
(or any other libcairo*.so) library is linked against libpthread.  You
can do this
by using "ldd <lib_name>".  If it does not appear in any of the libraries, =
cairo
didn't detect libpthread when it was built, so it wasn't linked
correctly.  If it does,
though, something else is wrong.

You can also check if any /usr/pkg/lib/pkgconfig/*cairo* files lists
pthread in it.

As a start, try rebuilding and reinstalling cairo.

BTW, what OS/version are you using?

--
Julio M. Merino Vidal <jmmv84@gmail.com>
The Julipedia - http://julipedia.blogspot.com/
The NetBSD Project - http://www.NetBSD.org/