GNU bug report logs - #8559
Irix: linking error due to gnulib/pthread

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: coreutils; Reported by: "Gary V. Vaughan" <gary@HIDDEN>; dated Tue, 26 Apr 2011 16:50:03 UTC; Maintainer for coreutils is bug-coreutils@HIDDEN.
Changed bug title to 'Irix: linking error due to gnulib/pthread' from '[Bug Report] gnulib pthread detection prevents coreutils sort from linking' Request was from Assaf Gordon <assafgordon@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 26 Apr 2011 16:49:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Apr 26 12:49:16 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1QElRs-0003Lv-6a
	for submit <at> debbugs.gnu.org; Tue, 26 Apr 2011 12:49:16 -0400
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <gary@HIDDEN>) id 1QElRq-0003Lf-S6
	for submit <at> debbugs.gnu.org; Tue, 26 Apr 2011 12:49:15 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gary@HIDDEN>) id 1QElRk-0004hj-UT
	for submit <at> debbugs.gnu.org; Tue, 26 Apr 2011 12:49:09 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE
	autolearn=unavailable version=3.3.1
Received: from lists.gnu.org ([140.186.70.17]:59155)
	by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <gary@HIDDEN>)
	id 1QElRk-0004ha-SX
	for submit <at> debbugs.gnu.org; Tue, 26 Apr 2011 12:49:08 -0400
Received: from eggs.gnu.org ([140.186.70.92]:58213)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gary@HIDDEN>) id 1QElRj-0001P8-Tc
	for bug-coreutils@HIDDEN; Tue, 26 Apr 2011 12:49:08 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gary@HIDDEN>) id 1QElRi-0004h2-Kp
	for bug-coreutils@HIDDEN; Tue, 26 Apr 2011 12:49:07 -0400
Received: from caiajhbdcaib.dreamhost.com ([208.97.132.81]:45054
	helo=homiemail-a21.g.dreamhost.com)
	by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <gary@HIDDEN>)
	id 1QElRi-0004gp-9H; Tue, 26 Apr 2011 12:49:06 -0400
Received: from homiemail-a21.g.dreamhost.com (localhost [127.0.0.1])
	by homiemail-a21.g.dreamhost.com (Postfix) with ESMTP id 461CF30006C;
	Tue, 26 Apr 2011 09:49:05 -0700 (PDT)
Received: from Moloch.local (unknown [180.183.125.206])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	(Authenticated sender: gary@HIDDEN)
	by homiemail-a21.g.dreamhost.com (Postfix) with ESMTPSA id 99220300064; 
	Tue, 26 Apr 2011 09:49:03 -0700 (PDT)
Date: Tue, 26 Apr 2011 23:48:59 +0700
From: "Gary V. Vaughan" <gary@HIDDEN>
To: bug-gnulib@HIDDEN
Subject: [Bug Report] gnulib pthread detection prevents coreutils sort from
	linking
Message-ID: <20110426164857.GD1841@HIDDEN>
Mail-Followup-To: bug-gnulib@HIDDEN, bug-coreutils@HIDDEN
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="DrWhICOqskFTAXiy"
Content-Disposition: inline
X-Face: )d7?`/z9[#Ln7`qBQ,
	axq.VM%_h`=4t8GKku>6*l$5n=@"uU2[3:l!gLwd:`lqls#/T3RCL
	6|o)_o@oli7d=}4<3Fk~:t^:u/<;
	tl7@i)oM3U4ow0NI!/Y[>4tzQSdi#^OCR=]7vU3K$v)Te!O+=q x'PMW
User-Agent: Mutt/1.5.20 (2009-06-14)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.17
X-Spam-Score: -6.6 (------)
X-Debbugs-Envelope-To: submit
Cc: bug-coreutils@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.6 (------)


--DrWhICOqskFTAXiy
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

When building coreutils-8.11 on Irix 6.3 and Tru64 Unix 5.1, linking
of sort always fails because LIB_PTHREAD=3D''.  Looking through src/
Makefile.am shows that LIBMULTITHREAD=3D'-lpthread' in both cases,
but sort links with LIB_PTHREAD which is empty, leaving pthread
symbols unresolved.

I'm guessing that the weak_threads test in gnulib pthread.m4 and
friends finds one of the weak pthreads symbols in libc, but sort
wants a symbol not provided by libc.

I have worked around this problem on Irix with:

  ./configure ac_cv_search_pthread_create=3D-lpthread <rest of args>

And on Tru64 with:

  ./configure CPPFLAGS=3D-D_REENTRANT ac_cv_search_pthread_create=3D-lpthre=
ad \
  <rest of args>

If I can help track down a better fix that allows pthreads to be
detected properly on these host for coreutils sort and friends,
please don't hesitate to ask.

Cheers,
--=20
Gary V. Vaughan (gary AT gnu DOT org)

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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)

iEYEARECAAYFAk2293kACgkQFRMICSmD1gZAmwCdEXQJonOrMQAxxhp6WSDe+pnd
PQ8AoJ7TvFhGqMPIJLRw6JZzdbI+rPau
=YyWf
-----END PGP SIGNATURE-----

--DrWhICOqskFTAXiy--




Acknowledgement sent to "Gary V. Vaughan" <gary@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-coreutils@HIDDEN. Full text available.
Report forwarded to owner <at> debbugs.gnu.org, bug-coreutils@HIDDEN:
bug#8559; Package coreutils. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.