GNU bug report logs - #12765
hpux: "configure --disable-threads" failure

Previous Next

Package: coreutils;

Reported by: John David Anglin <dave.anglin <at> bell.net>

Date: Mon, 29 Oct 2012 19:48:02 UTC

Severity: normal

Full log


Message #17 received at 12765 <at> debbugs.gnu.org (full text, mbox):

From: John David Anglin <dave.anglin <at> bell.net>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 12765 <at> debbugs.gnu.org
Subject: Re: bug#12765: "configure --disable-threads" doesn't work with
	coreutils-8.20
Date: Sun, 4 Nov 2012 11:29:24 -0500
On 4-Nov-12, at 2:48 AM, Paul Eggert wrote:

> On 11/03/2012 07:35 PM, John David Anglin wrote:
>> The attached change results in a successful build of sort.
>
> I'm afraid that won't work, because it assumes that the
> application uses both threadlib and pthread.

I don't see that it assumes that the application uses both threadlib
and pthreads.  As far as I can tell, sort doesn't use threadlib.

It uses pthreads.  Thus, a fallback is needed when pthreads
is not available.  If we are not using pthreads, we get a trivial
pthread implementation from lib/pthread.h with the change.

It seemed reasonable to base this on the configure variable
USE_POSIX_THREADS.  We could get the same result by
modifying the configure result for HAVE_PTHREAD_H, etc,
but the system does have a pthread.h header.  It's just not
usable.

Another alternative might be to convert sort to use threadlib.

Dave
--
John David Anglin	dave.anglin <at> bell.net







This bug report was last modified 6 years and 229 days ago.

Previous Next


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