Subject: Re: x11/gtk2 on FreeBSD
To: Lasse Kliemann <lasse-list-tech-pkg-netbsd-2004@plastictree.net>
From: grant beattie <grant@NetBSD.org>
List: tech-pkg
Date: 01/23/2005 11:16:46
--MAH+hnPXVZWQ5cD/
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,
>=20
> I tried to build x11/gtk2 from pkgsrc-current on FreeBSD 5.3. It aborts=
=20
> complaining about a missing or wrong glib.
>=20
> [...]
> checking for GLIB - version >=3D 2.6.0... Abort trap (core dumped)
> [...]
>=20
>=20
> A closer inspection of config.log reveals:
>=20
> [...]
> 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.

grant.


--MAH+hnPXVZWQ5cD/
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (NetBSD)

iD8DBQFB8uztluYOb9yiFXoRAvykAKC3r4B9X3nNCS4Mj0tVNd9Mq5C6DgCcCxnh
cXudI69soGtx14d70G6Hr6c=
=lNaT
-----END PGP SIGNATURE-----

--MAH+hnPXVZWQ5cD/--