Subject: Re: x11/gtk2 on FreeBSD
To: Lasse Kliemann <>
From: grant beattie <>
List: tech-pkg
Date: 01/23/2005 11:16:46
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Jan 23, 2005 at 12:15:43AM +0100, Lasse Kliemann wrote:

> Hi,
> I tried to build x11/gtk2 from pkgsrc-current on FreeBSD 5.3. It aborts=
> complaining about a missing or wrong glib.
> [...]
> checking for GLIB - version >=3D 2.6.0... Abort trap (core dumped)
> [...]
> A closer inspection of config.log reveals:
> [...]
> configure:22619: checking for GLIB - version >=3D 2.6.0
> configure:22738: cc -o conftest -O2 -pthread -I/usr/pkg/include -D_THREAD=
_SAFE -I/usr/include -I/usr/pkg/include/freetype2 -Wall -pthread -I/usr/pkg=
/include/glib/glib-2.0 -I/usr/pkg/lib/glib-2.0/include   -DPREFIX=3D"\"/usr=
/pkg\"" -I/usr/pkg/include -D_THREAD_SAFE -I/usr/include -I/usr/pkg/include=
/freetype2 -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -pthread -L/usr/lib -Wl,-R/usr=
/lib -L/usr/pkg/xorg/lib -Wl,-R/usr/pkg/xorg/lib conftest.c -Wl,-R/usr/pkg/=
lib -pthread -L/usr/pkg/lib -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lgli=
b-2.0 -liconv    -lintl -liconv -lpthread  >&5
> configure:22741: $? =3D 0
> configure:22743: ./conftest
> Fatal error 'Spinlock called when not threaded.' at line 83 in file /usr/=
src/lib/libpthread/thread/thr_spinlock.c (errno =3D 0)
> configure:22746: $? =3D 134
> configure: program exited with status 134
> configure: failed program was:
> [...]

can you check the .work.log in the WRKDIR? I believe -lpthread should be
being rewritten to -lc_r by the wrapper framework, but perhaps this
isn't working for some reason.


Content-Type: application/pgp-signature
Content-Disposition: inline

Version: GnuPG v1.2.4 (NetBSD)