Subject: Re: glib2 Error with pkgsrc-2006Q3 on Slackware 10.2
To: Dave Vollenweider <metaridley@mchsi.com>
From: Lubomir Sedlacik <salo@Xtrmntr.org>
List: pkgsrc-users
Date: 10/07/2006 04:26:25
--K5z5w9fsx/Hrkgg3
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Oct 06, 2006 at 07:17:19PM -0500, Dave Vollenweider wrote:
> I keep getting the following error when trying to compile glib2 on
> Slackware Linux 10.2:
>=20
> /bin/sh ../libtool --mode=3Dlink gcc  -O2 -I/usr/include -Wall
> -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib -o libgthread-2.0.la
> -rpath /usr/pkg/lib  -version-info 1200:3:1200 -export-dynamic
> gthread-impl.lo  -lpthreads ../glib/libglib-2.0.la -lrt gcc -shared
> .libs/gthread-impl.o  -Wl,--rpath
> -Wl,/usr/pkgsrc/devel/glib2/work/glib-2.12.3/glib/.libs -lpthreads
> ../glib/.libs/libglib-2.0.so
> -L/usr/pkgsrc/devel/glib2/work/.buildlink/lib -lrt  -Wl,-R/usr/pkg/lib
> -Wl,-soname -Wl,libgthread-2.0.so.0 -o
> .libs/libgthread-2.0.so.0.1200.3
> /usr/lib/gcc-lib/i486-slackware-linux/3.3.6/../../../../i486-slackware-li=
nux/bin/ld:
> cannot find -lpthreads collect2: ld returned 1 exit status make[2]:
> *** [libgthread-2.0.la] Error 1 make[2]: Leaving directory
> `/usr/pkgsrc/devel/glib2/work/glib-2.12.3/gthread' make[1]: ***
> [all-recursive] Error 1 make[1]: Leaving directory
> `/usr/pkgsrc/devel/glib2/work/glib-2.12.3' make: *** [all] Error 2 ***
> Error code 2
>=20
> Stop.  bmake: stopped in /usr/pkgsrc/devel/glib2 *** Error code 1
>=20
> Stop.  bmake: stopped in /usr/pkgsrc/devel/glib2
>=20
> Also, before this happened, I noticed this warning from gcc appearing
> repeatedly:
>=20
> gcc: unrecognized option `-pthreads'
>=20
> Now, I did recently switch Linux kernels, from 2.4.31 to 2.6.17.13,
> and I'm wondering if that has anything to do with this error.
>=20
> I also just learned that Slackware 11.0 came out, and I shall try
> upgrading.  However, I thought bringing it up early would be best.
>=20
> Anyone know if there's anything I can do about this short of modifying
> the source?  I did look in the mailing list archives and it seems that
> this problem has come up with other programs in the past on various
> OSs and had something to do with libtool-base.  I recompiled and
> reinstalled that package, but to no avail.  I also tried installing
> devel/pth but pkgsrc doesn't seem to use it if a native pthread
> implementation is available.
>
> Any ideas?

http://mail-index.netbsd.org/pkgsrc-users/2006/10/04/0011.html
http://mail-index.netbsd.org/pkgsrc-users/2006/10/05/0009.html
http://mail-index.netbsd.org/pkgsrc-users/2006/10/05/0012.html

make Joerg commit the patch and request a pullup for 2006Q3.


regards,

--=20
-- Lubomir Sedlacik <salo@{NetBSD,Xtrmntr,silcnet}.org>   --

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

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

iD8DBQFFJxBQiwjDDlS8cmMRAjyaAJ0VeT3bMgNAGj0fccJWSl/X+1BZvgCeOLyj
VLnvTiy14DuOfxWabuNZJnA=
=gWnA
-----END PGP SIGNATURE-----

--K5z5w9fsx/Hrkgg3--