Bug#296774: marked as done (glib2.0: FTBFS on hurd-i386: Missing -lpthread when linking libgthread)

Debian Bug Tracking System owner@bugs.debian.org
Tue, 01 Mar 2005 04:33:11 -0800


Your message dated Tue, 1 Mar 2005 13:26:45 +0100
with message-id <20050301122645.GB23683@theo.chemie.tu-muenchen.de>
and subject line Fixed in glib2.0_2.6.3-1
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 24 Feb 2005 15:36:43 +0000
>From mbanck@gmx.net Thu Feb 24 07:36:43 2005
Return-path: <mbanck@gmx.net>
Received: from pop.gmx.net (mail.gmx.net) [213.165.64.20] 
	by spohr.debian.org with smtp (Exim 3.35 1 (Debian))
	id 1D4L2h-0006PX-00; Thu, 24 Feb 2005 07:36:43 -0800
Received: (qmail invoked by alias); 24 Feb 2005 15:36:11 -0000
Received: from gluck.debian.org (EHLO localhost.localdomain) (192.25.206.10)
  by mail.gmx.net (mp014) with SMTP; 24 Feb 2005 16:36:11 +0100
X-Authenticated: #686195
Received: from mbanck by localhost.localdomain with local (Exim 4.34)
	id 1D4L0G-0002Zg-62
	for submit@bugs.debian.org; Thu, 24 Feb 2005 16:34:12 +0100
Date: Thu, 24 Feb 2005 16:34:12 +0100
From: Michael Banck <mbanck@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: glib2.0: FTBFS on hurd-i386: Missing -lpthread when linking libgthread
Message-ID: <20050224153412.GA9777@chemicalconnection.dyndns.org>
Reply-To: Michael Banck <mbanck@debian.org>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="TB36FDmn/VVEgNH/"
Content-Disposition: inline
X-Reportbug-Version: 3.5ubuntu4
User-Agent: Mutt/1.5.6+20040907i
X-Y-GMX-Trusted: 0
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 


--TB36FDmn/VVEgNH/
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Package: glib2.0
Severity: important
Tags: patch

There was a problem building glib on hurd-i386:

Automatic build of glib2.0_2.6.2-1 on beethoven by sbuild/hurd-i386 1.170.5
Build started at 20050222-1732
******************************************************************************
Checking available source versions...
Fetching source files...
Reading Package Lists...
Building Dependency Tree...
Need to get 3164kB of source archives.
Get:1 http://ftp2.de.debian.org unstable/main glib2.0 2.6.2-1 (dsc) [1543B]
Get:2 http://ftp2.de.debian.org unstable/main glib2.0 2.6.2-1 (tar) [3149kB]
Get:3 http://ftp2.de.debian.org unstable/main glib2.0 2.6.2-1 (diff) [13.1kB]
Fetched 3164kB in 6s (464kB/s)
Download complete and in download only mode
** Using build dependencies supplied by package:
Build-Depends: debhelper (>> 4.0.0), pkg-config (>= 0.14.0), gettext,
autotools-dev, gnome-pkg-tools
Checking for already installed source dependencies...
debhelper: already installed (in sufficient version 4.2.30 >> 4.0.0)
pkg-config: already installed (in sufficient version 0.15.0-4 >= 0.14.0)
gettext: already installed
autotools-dev: missing
gnome-pkg-tools: missing
Checking for source dependency conflicts...
[...]
Checking correctness of source dependencies...
Toolchain package versions: libc0.3-dev_2.3.2.ds1-20 gcc-3.3_1:3.3.5-2
g++-3.3_1:3.3.5-2 binutils_2.15-5 libstdc++5-3.3-dev_1:3.3.5-2
libstdc++5_1:3.3.5-2
------------------------------------------------------------------------------
dpkg-source: extracting glib2.0 in glib2.0-2.6.2
dpkg-buildpackage: source package is glib2.0
dpkg-buildpackage: source version is 2.6.2-1
dpkg-buildpackage: host architecture is hurd-i386
[...]
i386-gnu-gcc -shared  .libs/gthread-impl.o  -D__LIBTOOL_IS_A_FOOL__
	../glib/.libs/libglib-2.0.so  -Wl,-z -Wl,defs -Wl,-O1 -Wl,-soname
	-Wl,libgthread-2.0.so.0 -o .libs/libgthread-2.0.so.0.600.2
	-D__LIBTOOL_IS_A_FOOL__ ../glib/.libs/libglib-2.0.so
.libs/gthread-impl.o(.text+0xec): In function `g_mutex_free_posix_impl':
/usr/include/bits/mutex.h:92: undefined reference to `_pthread_mutex_destroy'
.libs/gthread-impl.o(.text+0x22a): In function `g_mutex_trylock_posix_impl':
/home/mbanck/tmp/tmp/glib2.0-2.6.2/build-tree/glib-2.6.2-deb/gthread/gthread-posix.c:188:
	undefined reference to `_pthread_mutex_trylock'
[...]
collect2: ld returned 1 exit status
make[3]: *** [libgthread-2.0.la] Error 1
[...]
make: *** [debian/stampdir/build-deb-stamp] Error 2
******************************************************************************
Build finished at 20050222-1807
FAILED [dpkg-buildpackage died]

The attached patch has been applied upstream to fix this problem
(#168177 in the GNOME bugzilla), please consider it for inclusion (it
requires an autoconf update of course).


Thanks,

Michael

--TB36FDmn/VVEgNH/
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="glib2.0.diff"

2005-02-23  Matthias Clasen  <mclasen@redhat.com>

	* configure.in: Don't forget to set G_THREAD_LIBS_FOR_GTHREAD
	on non-linux platforms.  (#168177, Michael Banck)

===================================================================
RCS file: /cvs/gnome/glib/configure.in,v
retrieving revision 1.436
retrieving revision 1.437
diff -u -r1.436 -r1.437
--- configure.in	2005/02/16 16:42:20	1.436
+++ configure.in	2005/02/24 04:24:16	1.437
@@ -1867,6 +1867,9 @@
   *-*-linux*)
     G_THREAD_LIBS_FOR_GTHREAD="`echo $G_THREAD_LIBS | sed s/-pthread/-lpthread/`"
     ;;
+  *) 	 
+    G_THREAD_LIBS_FOR_GTHREAD="$G_THREAD_LIBS" 	 
+    ;;
 esac
 
 AC_DEFINE_UNQUOTED(G_THREAD_SOURCE,"gthread-$have_threads.c",

--TB36FDmn/VVEgNH/--

---------------------------------------
Received: (at 296774-done) by bugs.debian.org; 1 Mar 2005 12:27:17 +0000
>From michael.banck@ch.tum.de Tue Mar 01 04:27:17 2005
Return-path: <michael.banck@ch.tum.de>
Received: from server.theo.chemie.tu-muenchen.de [129.187.122.133] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1D66T7-0001qW-00; Tue, 01 Mar 2005 04:27:17 -0800
Received: by xserver.theo.chemie.tu-muenchen.de (Postfix, from userid 557)
	id 1347B9A350; Tue,  1 Mar 2005 13:26:45 +0100 (CET)
Date: Tue, 1 Mar 2005 13:26:45 +0100
From: Michael Banck <mbanck@debian.org>
To: 296774-done@bugs.debian.org
Subject: Fixed in glib2.0_2.6.3-1
Message-ID: <20050301122645.GB23683@theo.chemie.tu-muenchen.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Delivered-To: 296774-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-2.0 required=4.0 tests=BAYES_01 autolearn=no 
	version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

This bug has been fixed in upstream version 2.6.3 of glib2.0 and fixed
in Debian in glib2.0_2.6.3-1.


Michael