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

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: John David Anglin <dave.anglin@HIDDEN>; dated Mon, 29 Oct 2012 19:48:02 UTC; Maintainer for coreutils is bug-coreutils@HIDDEN.
Changed bug title to 'hpux: "configure --disable-threads" failure' from '"configure --disable-threads" doesn't work with coreutils-8.20' Request was from Assaf Gordon <assafgordon@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

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


Received: (at 12765) by debbugs.gnu.org; 4 Nov 2012 17:10:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Nov 04 12:10:55 2012
Received: from localhost ([127.0.0.1]:49212 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1TV3io-0001Mb-V1
	for submit <at> debbugs.gnu.org; Sun, 04 Nov 2012 12:10:55 -0500
Received: from smtp.cs.ucla.edu ([131.179.128.62]:45360)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <eggert@HIDDEN>) id 1TV3im-0001MS-Qi
	for 12765 <at> debbugs.gnu.org; Sun, 04 Nov 2012 12:10:54 -0500
Received: from localhost (localhost.localdomain [127.0.0.1])
	by smtp.cs.ucla.edu (Postfix) with ESMTP id 88FDCA60004;
	Sun,  4 Nov 2012 09:07:51 -0800 (PST)
X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu
Received: from smtp.cs.ucla.edu ([127.0.0.1])
	by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 0klpJMw7Xs3M; Sun,  4 Nov 2012 09:07:51 -0800 (PST)
Received: from [192.168.1.3] (pool-108-23-119-2.lsanca.fios.verizon.net
	[108.23.119.2])
	by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 3441BA60002;
	Sun,  4 Nov 2012 09:07:51 -0800 (PST)
Message-ID: <5096A0DC.60203@HIDDEN>
Date: Sun, 04 Nov 2012 09:07:40 -0800
From: Paul Eggert <eggert@HIDDEN>
Organization: UCLA Computer Science Department
User-Agent: Mozilla/5.0 (X11; Linux i686;
	rv:16.0) Gecko/20121028 Thunderbird/16.0.2
MIME-Version: 1.0
To: John David Anglin <dave.anglin@HIDDEN>
Subject: Re: bug#12765: "configure --disable-threads" doesn't work with
	coreutils-8.20
References: <508EDB5C.9020908@HIDDEN> <508EF0C7.6050507@HIDDEN>
	<BLU0-SMTP7081A468A3E49FB52E7D1897650@HIDDEN>
	<50961DE3.3030609@HIDDEN>
	<BLU0-SMTP90EFC945319381E8EF83CD97650@HIDDEN>
In-Reply-To: <BLU0-SMTP90EFC945319381E8EF83CD97650@HIDDEN>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Spam-Score: -1.9 (-)
X-Debbugs-Envelope-To: 12765
Cc: 12765 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
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/cgi-bin/mailman/private/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: -1.9 (-)

On 11/04/2012 08:29 AM, John David Anglin wrote:
> It seemed reasonable to base this on the configure variable
> USE_POSIX_THREADS.

But the problem is that USE_POSIX_THREADS is set by the
threadlib configuration.

> Another alternative might be to convert sort to use threadlib.

coreutils already uses threadlib, sort of, which is part of
the problem here.  I'm not sure why it does.  The idea
was supposed to be that it uses POSIX threads or nothing.




Information forwarded to bug-coreutils@HIDDEN:
bug#12765; Package coreutils. Full text available.

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


Received: (at 12765) by debbugs.gnu.org; 4 Nov 2012 16:32:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Nov 04 11:32:47 2012
Received: from localhost ([127.0.0.1]:49188 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1TV37v-0000Vg-7r
	for submit <at> debbugs.gnu.org; Sun, 04 Nov 2012 11:32:47 -0500
Received: from blu0-omc1-s29.blu0.hotmail.com ([65.55.116.40]:10451)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <dave.anglin@HIDDEN>) id 1TV37r-0000VW-BE
	for 12765 <at> debbugs.gnu.org; Sun, 04 Nov 2012 11:32:45 -0500
Received: from BLU0-SMTP90 ([65.55.116.7]) by blu0-omc1-s29.blu0.hotmail.com
	with Microsoft SMTPSVC(6.0.3790.4675); 
	Sun, 4 Nov 2012 08:29:41 -0800
X-Originating-IP: [69.158.131.52]
X-EIP: [PicmIo2twsperZ7Po7ONZ7ZaTcup+z/Q]
X-Originating-Email: [dave.anglin@HIDDEN]
Message-ID: <BLU0-SMTP90EFC945319381E8EF83CD97650@HIDDEN>
Received: from [192.168.2.10] ([69.158.131.52]) by
	BLU0-SMTP90.blu0.hotmail.com over TLS secured channel with
	Microsoft SMTPSVC(6.0.3790.4675); Sun, 4 Nov 2012 08:29:41 -0800
From: John David Anglin <dave.anglin@HIDDEN>
To: Paul Eggert <eggert@HIDDEN>
In-Reply-To: <50961DE3.3030609@HIDDEN>
Subject: Re: bug#12765: "configure --disable-threads" doesn't work with
	coreutils-8.20
References: <508EDB5C.9020908@HIDDEN> <508EF0C7.6050507@HIDDEN>
	<BLU0-SMTP7081A468A3E49FB52E7D1897650@HIDDEN>
	<50961DE3.3030609@HIDDEN>
Content-Type: text/plain; charset="US-ASCII"; format=flowed
Content-Transfer-Encoding: 7bit
MIME-Version: 1.0 (Apple Message framework v936)
Date: Sun, 4 Nov 2012 11:29:24 -0500
X-Mailer: Apple Mail (2.936)
X-OriginalArrivalTime: 04 Nov 2012 16:29:41.0426 (UTC)
	FILETIME=[974D0920:01CDBAA9]
X-Spam-Score: 0.8 (/)
X-Debbugs-Envelope-To: 12765
Cc: 12765 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
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/cgi-bin/mailman/private/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: 0.8 (/)

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@HIDDEN







Information forwarded to bug-coreutils@HIDDEN:
bug#12765; Package coreutils. Full text available.

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


Received: (at 12765) by debbugs.gnu.org; 4 Nov 2012 07:51:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Nov 04 02:51:50 2012
Received: from localhost ([127.0.0.1]:48033 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1TUuzl-0004kB-Sq
	for submit <at> debbugs.gnu.org; Sun, 04 Nov 2012 02:51:50 -0500
Received: from smtp.cs.ucla.edu ([131.179.128.62]:57675)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <eggert@HIDDEN>) id 1TUuzj-0004k3-0J
	for 12765 <at> debbugs.gnu.org; Sun, 04 Nov 2012 02:51:48 -0500
Received: from localhost (localhost.localdomain [127.0.0.1])
	by smtp.cs.ucla.edu (Postfix) with ESMTP id D562A39E810E;
	Sun,  4 Nov 2012 00:48:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu
Received: from smtp.cs.ucla.edu ([127.0.0.1])
	by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id juXQbfUPkP1o; Sun,  4 Nov 2012 00:48:47 -0700 (PDT)
Received: from [192.168.1.3] (pool-108-23-119-2.lsanca.fios.verizon.net
	[108.23.119.2])
	by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 6373C39E8109;
	Sun,  4 Nov 2012 00:48:47 -0700 (PDT)
Message-ID: <50961DE3.3030609@HIDDEN>
Date: Sun, 04 Nov 2012 00:48:51 -0700
From: Paul Eggert <eggert@HIDDEN>
Organization: UCLA Computer Science Department
User-Agent: Mozilla/5.0 (X11; Linux i686;
	rv:16.0) Gecko/20121028 Thunderbird/16.0.2
MIME-Version: 1.0
To: John David Anglin <dave.anglin@HIDDEN>
Subject: Re: bug#12765: "configure --disable-threads" doesn't work with
	coreutils-8.20
References: <508EDB5C.9020908@HIDDEN> <508EF0C7.6050507@HIDDEN>
	<BLU0-SMTP7081A468A3E49FB52E7D1897650@HIDDEN>
In-Reply-To: <BLU0-SMTP7081A468A3E49FB52E7D1897650@HIDDEN>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Spam-Score: -2.1 (--)
X-Debbugs-Envelope-To: 12765
Cc: 12765 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
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/cgi-bin/mailman/private/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: -2.1 (--)

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.

Why does coreutils use threadlib, anyway?
Does anybody know?  It seems like overkill
for what coreutils needs.




Information forwarded to bug-coreutils@HIDDEN:
bug#12765; Package coreutils. Full text available.

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


Received: (at 12765) by debbugs.gnu.org; 4 Nov 2012 02:39:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Nov 03 22:39:02 2012
Received: from localhost ([127.0.0.1]:47855 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1TUq74-0004Np-5o
	for submit <at> debbugs.gnu.org; Sat, 03 Nov 2012 22:39:02 -0400
Received: from blu0-omc1-s20.blu0.hotmail.com ([65.55.116.31]:34229)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <dave.anglin@HIDDEN>) id 1TUq71-0004NQ-TQ
	for 12765 <at> debbugs.gnu.org; Sat, 03 Nov 2012 22:39:00 -0400
Received: from BLU0-SMTP70 ([65.55.116.8]) by blu0-omc1-s20.blu0.hotmail.com
	with Microsoft SMTPSVC(6.0.3790.4675); 
	Sat, 3 Nov 2012 19:36:01 -0700
X-Originating-IP: [69.158.131.52]
X-EIP: [5SNSpGmW6hw0x2yQgwLZTSPT6pnjYsyk]
X-Originating-Email: [dave.anglin@HIDDEN]
Message-ID: <BLU0-SMTP7081A468A3E49FB52E7D1897650@HIDDEN>
Received: from [192.168.2.10] ([69.158.131.52]) by
	BLU0-SMTP70.blu0.hotmail.com over TLS secured channel with
	Microsoft SMTPSVC(6.0.3790.4675); Sat, 3 Nov 2012 19:36:01 -0700
From: John David Anglin <dave.anglin@HIDDEN>
To: Paul Eggert <eggert@HIDDEN>
In-Reply-To: <508EF0C7.6050507@HIDDEN>
Content-Type: multipart/mixed; boundary="Apple-Mail-5-27197246"
Subject: Re: bug#12765: "configure --disable-threads" doesn't work with
	coreutils-8.20
MIME-Version: 1.0 (Apple Message framework v936)
Date: Sat, 3 Nov 2012 22:35:51 -0400
References: <508EDB5C.9020908@HIDDEN> <508EF0C7.6050507@HIDDEN>
X-Mailer: Apple Mail (2.936)
X-OriginalArrivalTime: 04 Nov 2012 02:36:01.0676 (UTC)
	FILETIME=[2134E4C0:01CDBA35]
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 12765
Cc: 12765 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
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/cgi-bin/mailman/private/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: -1.9 (-)

--Apple-Mail-5-27197246
Content-Type: text/plain; charset="US-ASCII"; format=flowed; delsp=yes
Content-Transfer-Encoding: 7bit

On 29-Oct-12, at 5:10 PM, Paul Eggert wrote:

> On 10/29/2012 12:39 PM, John David Anglin wrote:
>> hppa1.1-hp-hpux10.20 has DCE threads which predates the posix  
>> thread interface.
>
> On such a platform, coreutils should run single-threaded
> and shouldn't be mucking with DCE threads at all.
> Can you investigate what went wrong?  Perhaps you can
> send us the output of 'configure', and what's in config.h,
> and the output of 'diff -u lib/pthread.in.h lib/pthread.h'.
>


The attached change results in a successful build of sort.   It's not
optimal but I tried to avoid messing with the automake files.  I also
note that sort only seems to support pthreads.

Sorry, it appears the configure output, etc, only went to Paul.

Dave
--
John David Anglin	dave.anglin@HIDDEN



--Apple-Mail-5-27197246
Content-Disposition: attachment; filename="pthread.in.h.d.txt"
Content-Type: text/plain; x-unix-mode=0644; name="pthread.in.h.d.txt"
Content-Transfer-Encoding: 7bit

--- pthread.in.h.orig	Tue Oct 23 10:19:34 2012
+++ pthread.in.h	Sat Nov  3 18:37:43 2012
@@ -26,7 +26,9 @@
 
 /* The include_next requires a split double-inclusion guard.  */
 #if @HAVE_PTHREAD_H@
-# @INCLUDE_NEXT@ @NEXT_PTHREAD_H@
+# ifdef USE_POSIX_THREADS
+#  @INCLUDE_NEXT@ @NEXT_PTHREAD_H@
+# endif
 #endif
 
 #ifndef _@GUARD_PREFIX@_PTHREAD_H_
@@ -38,7 +40,7 @@
 #include <sys/types.h>
 #include <time.h>
 
-#if ! @HAVE_PTHREAD_T@
+#if ! @HAVE_PTHREAD_T@ || ! defined(USE_POSIX_THREADS)
 # if !GNULIB_defined_pthread_types
  typedef int pthread_t;
  typedef int pthread_attr_t;
@@ -97,7 +99,7 @@
 #define PTHREAD_SCOPE_PROCESS 1
 #endif
 
-#if ! @HAVE_PTHREAD_T@
+#if ! @HAVE_PTHREAD_T@ || ! defined(USE_POSIX_THREADS)
 
 # if !GNULIB_defined_pthread_functions
 
@@ -226,7 +228,7 @@
 
 #endif
 
-#if ! @HAVE_PTHREAD_SPINLOCK_T@
+#if ! @HAVE_PTHREAD_SPINLOCK_T@ || ! defined(USE_POSIX_THREADS)
 
 # if !GNULIB_defined_pthread_spinlock_t
 

--Apple-Mail-5-27197246--




Information forwarded to bug-coreutils@HIDDEN:
bug#12765; Package coreutils. Full text available.

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


Received: (at 12765) by debbugs.gnu.org; 29 Oct 2012 21:13:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Oct 29 17:13:04 2012
Received: from localhost ([127.0.0.1]:38583 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1TSwds-0004uD-6V
	for submit <at> debbugs.gnu.org; Mon, 29 Oct 2012 17:13:04 -0400
Received: from smtp.cs.ucla.edu ([131.179.128.62]:59920)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <eggert@HIDDEN>) id 1TSwdp-0004tn-F0
	for 12765 <at> debbugs.gnu.org; Mon, 29 Oct 2012 17:13:02 -0400
Received: from localhost (localhost.localdomain [127.0.0.1])
	by smtp.cs.ucla.edu (Postfix) with ESMTP id A4C17A6000A;
	Mon, 29 Oct 2012 14:10:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu
Received: from smtp.cs.ucla.edu ([127.0.0.1])
	by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 6cdhHYTj04fJ; Mon, 29 Oct 2012 14:10:32 -0700 (PDT)
Received: from penguin.cs.ucla.edu (Penguin.CS.UCLA.EDU [131.179.64.200])
	by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 52719A60008;
	Mon, 29 Oct 2012 14:10:32 -0700 (PDT)
Message-ID: <508EF0C7.6050507@HIDDEN>
Date: Mon, 29 Oct 2012 14:10:31 -0700
From: Paul Eggert <eggert@HIDDEN>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:16.0) Gecko/20121016 Thunderbird/16.0.1
MIME-Version: 1.0
To: John David Anglin <dave.anglin@HIDDEN>
Subject: Re: bug#12765: "configure --disable-threads" doesn't work with
	coreutils-8.20
References: <508EDB5C.9020908@HIDDEN>
In-Reply-To: <508EDB5C.9020908@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Spam-Score: -2.1 (--)
X-Debbugs-Envelope-To: 12765
Cc: 12765 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
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/cgi-bin/mailman/private/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: -2.1 (--)

On 10/29/2012 12:39 PM, John David Anglin wrote:
> hppa1.1-hp-hpux10.20 has DCE threads which predates the posix thread interface.

On such a platform, coreutils should run single-threaded
and shouldn't be mucking with DCE threads at all.
Can you investigate what went wrong?  Perhaps you can
send us the output of 'configure', and what's in config.h,
and the output of 'diff -u lib/pthread.in.h lib/pthread.h'.




Information forwarded to bug-coreutils@HIDDEN:
bug#12765; Package coreutils. Full text available.

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


Received: (at submit) by debbugs.gnu.org; 29 Oct 2012 19:48:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Oct 29 15:48:00 2012
Received: from localhost ([127.0.0.1]:38539 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1TSvJY-0002yC-G3
	for submit <at> debbugs.gnu.org; Mon, 29 Oct 2012 15:48:00 -0400
Received: from eggs.gnu.org ([208.118.235.92]:43536)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <dave.anglin@HIDDEN>) id 1TSvJU-0002y3-9e
	for submit <at> debbugs.gnu.org; Mon, 29 Oct 2012 15:47:58 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <dave.anglin@HIDDEN>) id 1TSvH1-0000ey-49
	for submit <at> debbugs.gnu.org; Mon, 29 Oct 2012 15:45:28 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI
	autolearn=unavailable version=3.3.2
Received: from lists.gnu.org ([208.118.235.17]:52950)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <dave.anglin@HIDDEN>) id 1TSvH1-0000eE-1G
	for submit <at> debbugs.gnu.org; Mon, 29 Oct 2012 15:45:23 -0400
Received: from eggs.gnu.org ([208.118.235.92]:45871)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <dave.anglin@HIDDEN>) id 1TSvBO-0004Lo-PV
	for bug-coreutils@HIDDEN; Mon, 29 Oct 2012 15:39:40 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <dave.anglin@HIDDEN>) id 1TSvBI-0007Jf-Ph
	for bug-coreutils@HIDDEN; Mon, 29 Oct 2012 15:39:34 -0400
Received: from mail16.primus.ca ([216.254.141.183]:54662
	helo=mail-08.primus.ca) by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <dave.anglin@HIDDEN>) id 1TSvBI-0007IA-Kg
	for bug-coreutils@HIDDEN; Mon, 29 Oct 2012 15:39:28 -0400
Received: from 216-58-40-249.cpe.distributel.net ([216.58.40.249]
	helo=[192.168.0.181]) by mail-08.primus.ca with esmtpa (Exim 4.72)
	(envelope-from <dave.anglin@HIDDEN>)
	id 1TSvBG-0005BV-2j; Mon, 29 Oct 2012 15:39:26 -0400
Message-ID: <508EDB5C.9020908@HIDDEN>
Date: Mon, 29 Oct 2012 15:39:08 -0400
From: John David Anglin <dave.anglin@HIDDEN>
User-Agent: Mozilla/5.0 (Windows NT 5.1;
	rv:16.0) Gecko/20121010 Thunderbird/16.0.1
MIME-Version: 1.0
To: bug-coreutils@HIDDEN
Subject: "configure --disable-threads" doesn't work with coreutils-8.20
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Authenticated: danglin-lux@HIDDEN - 216-58-40-249.cpe.distributel.net
	([192.168.0.181]) [216.58.40.249]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older,
	4)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 208.118.235.17
X-Spam-Score: -3.5 (---)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
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/cgi-bin/mailman/private/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: -3.5 (---)

The following build error occurs on hppa1.1-hp-hpux10.20:

   CC     src/sort.o
In file included from ../src/sort.c:26:0:
./lib/pthread.h: In function 'pthread_spin_init':
./lib/pthread.h:241:3: error: incompatible type for argument 2 of 
'pthread_mutex_init'
/usr/include/pthread.h:354:5: note: expected 'pthread_mutexattr_t' but 
argument is of type 'void *'
../src/sort.c: In function 'merge_tree_init':
../src/sort.c:3200:3: error: incompatible type for argument 2 of 
'pthread_mutex_init'
/usr/include/pthread.h:354:5: note: expected 'pthread_mutexattr_t' but 
argument is of type 'void *'
../src/sort.c: In function 'init_node':
../src/sort.c:3242:3: error: incompatible type for argument 2 of 
'pthread_mutex_init'
/usr/include/pthread.h:354:5: note: expected 'pthread_mutexattr_t' but 
argument is of type 'void *'
../src/sort.c: In function 'queue_init':
../src/sort.c:3312:3: error: incompatible type for argument 2 of 
'pthread_mutex_init'
/usr/include/pthread.h:354:5: note: expected 'pthread_mutexattr_t' but 
argument is of type 'void *'
../src/sort.c:3313:3: error: incompatible type for argument 2 of 
'pthread_cond_init'
/usr/include/pthread.h:378:5: note: expected 'pthread_condattr_t' but 
argument is of type 'void *'
../src/sort.c: In function 'sortlines':
../src/sort.c:3584:7: error: incompatible type for argument 2 of 
'pthread_create'
/usr/include/pthread.h:275:5: note: expected 'pthread_attr_t' but 
argument is of type 'void *'
../src/sort.c: In function 'main':
../src/sort.c:4210:22: error: storage size of 'act' isn't known
../src/sort.c:4215:9: warning: implicit declaration of function 
'cma_sigaction' [-Wimplicit-function-declaration]
make[2]: *** [src/sort.o] Error 1
make[2]: Leaving directory `/xxx/gnu/coreutils-8.20/objdir'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/xxx/gnu/coreutils-8.20/objdir'
make: *** [all] Error 2

hppa1.1-hp-hpux10.20 has DCE threads which predates the posix thread 
interface.

Dave

-- 
John David Anglin    dave.anglin@HIDDEN





Acknowledgement sent to John David Anglin <dave.anglin@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-coreutils@HIDDEN. Full text available.
Report forwarded to bug-coreutils@HIDDEN:
bug#12765; 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: Tue, 6 Nov 2018 18:15:01 UTC

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