From unknown Fri Sep 12 17:22:37 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#10926 <10926@debbugs.gnu.org> To: bug#10926 <10926@debbugs.gnu.org> Subject: Status: Minor problem with static building of coreutils-8.1[345] Reply-To: bug#10926 <10926@debbugs.gnu.org> Date: Sat, 13 Sep 2025 00:22:37 +0000 retitle 10926 Minor problem with static building of coreutils-8.1[345] reassign 10926 coreutils submitter 10926 Heinz-Ado Arnolds severity 10926 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 02 11:36:48 2012 Received: (at submit) by debbugs.gnu.org; 2 Mar 2012 16:36:48 +0000 Received: from localhost ([127.0.0.1]:58905 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S3VTK-0006gN-7W for submit@debbugs.gnu.org; Fri, 02 Mar 2012 11:36:48 -0500 Received: from eggs.gnu.org ([208.118.235.92]:53081) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S3PBs-00054g-K0 for submit@debbugs.gnu.org; Fri, 02 Mar 2012 04:54:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S3PBI-00024U-TD for submit@debbugs.gnu.org; Fri, 02 Mar 2012 04:53:50 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, T_FILL_THIS_FORM_SHORT autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:39704) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S3PBI-00024Q-Pp for submit@debbugs.gnu.org; Fri, 02 Mar 2012 04:53:44 -0500 Received: from eggs.gnu.org ([208.118.235.92]:36983) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S3PBC-0005JC-JM for bug-coreutils@gnu.org; Fri, 02 Mar 2012 04:53:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S3PB6-000234-42 for bug-coreutils@gnu.org; Fri, 02 Mar 2012 04:53:38 -0500 Received: from mpadmz-3.mpa-garching.mpg.de ([130.183.82.19]:42423) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S3PB5-00022e-RD for bug-coreutils@gnu.org; Fri, 02 Mar 2012 04:53:32 -0500 Received: from [130.183.84.20] (ncd-11.MPA-Garching.MPG.DE [130.183.84.20]) (authenticated bits=0) by mpadmz-3.MPA-Garching.MPG.DE (8.14.4/8.14.4) with ESMTP id q229ZMI1002779 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 2 Mar 2012 10:35:22 +0100 Message-ID: <4F50945A.5090904@MPA-Garching.MPG.DE> Date: Fri, 02 Mar 2012 10:35:22 +0100 From: Heinz-Ado Arnolds User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: bug-coreutils@gnu.org Subject: Minor problem with static building of coreutils-8.1[345] Content-Type: multipart/mixed; boundary="------------020409050602030103000708" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.3.4 (mpadmz-3.MPA-Garching.MPG.DE [130.183.82.19]); Fri, 02 Mar 2012 10:35:22 +0100 (CET) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 02 Mar 2012 11:36:35 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) This is a multi-part message in MIME format. --------------020409050602030103000708 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi, I have a minor problem with the *static* building of coreutils. Building "timeout" requires libpthread in addition to librt. A simple patch is enclosed. Thanks a lot for your great work and kind regards, Ado ________________________________________________________________________ Dipl.-Ing. Heinz-Ado Arnolds MPI fuer Astrophysik Karl-Schwarzschild-Strasse 1 Postfach 1317 D-85748 Garching D-85741 Garching Phone: +49/89/30000-2217 FAX : +49/89/30000-2388 email: arnolds[at]MPA-Garching.MPG.DE ________________________________________________________________________ --------------020409050602030103000708 Content-Type: text/plain; name="coreutils-8.15-static-timeout.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="coreutils-8.15-static-timeout.patch" ZGlmZiAtY3IgY29yZXV0aWxzLTguMTUub3JpZy9zcmMvTWFrZWZpbGUuaW4gY29yZXV0aWxz LTguMTUvc3JjL01ha2VmaWxlLmluCioqKiBjb3JldXRpbHMtOC4xNS5vcmlnL3NyYy9NYWtl ZmlsZS5pbgkyMDEyLTAxLTA2IDE4OjI4OjI1LjAwMDAwMDAwMCArMDEwMAotLS0gY29yZXV0 aWxzLTguMTUvc3JjL01ha2VmaWxlLmluCTIwMTItMDMtMDIgMTA6MzM6MTIuMDAwMDAwMDAw ICswMTAwCioqKioqKioqKioqKioqKgoqKiogMjA0MiwyMDQ4ICoqKioKICB0YWlsX0xEQURE ID0gJChMREFERCkgJChMSUJfTkFOT1NMRUVQKQogIHRlZV9MREFERCA9ICQoTERBREQpCiAg dGVzdF9MREFERCA9ICQoTERBREQpICQoTElCX0VBQ0NFU1MpCiEgdGltZW91dF9MREFERCA9 ICQoTERBREQpICQoTElCX1RJTUVSX1RJTUUpICQoTElCSUNPTlYpCiAgdG91Y2hfTERBREQg PSAkKExEQUREKSAkKExJQl9DTE9DS19HRVRUSU1FKQogIHRyX0xEQUREID0gJChMREFERCkK ICB0cnVlX0xEQUREID0gJChMREFERCkKLS0tIDIwNDIsMjA0OCAtLS0tCiAgdGFpbF9MREFE RCA9ICQoTERBREQpICQoTElCX05BTk9TTEVFUCkKICB0ZWVfTERBREQgPSAkKExEQUREKQog IHRlc3RfTERBREQgPSAkKExEQUREKSAkKExJQl9FQUNDRVNTKQohIHRpbWVvdXRfTERBREQg PSAkKExEQUREKSAkKExJQl9USU1FUl9USU1FKSAkKExJQl9QVEhSRUFEKSAkKExJQklDT05W KQogIHRvdWNoX0xEQUREID0gJChMREFERCkgJChMSUJfQ0xPQ0tfR0VUVElNRSkKICB0cl9M REFERCA9ICQoTERBREQpCiAgdHJ1ZV9MREFERCA9ICQoTERBREQpCg== --------------020409050602030103000708-- From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 02 11:50:14 2012 Received: (at 10926) by debbugs.gnu.org; 2 Mar 2012 16:50:14 +0000 Received: from localhost ([127.0.0.1]:58926 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S3VgL-00070q-4g for submit@debbugs.gnu.org; Fri, 02 Mar 2012 11:50:14 -0500 Received: from mail3.vodafone.ie ([213.233.128.45]:26510) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S3Vg8-000706-HC for 10926@debbugs.gnu.org; Fri, 02 Mar 2012 11:50:01 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApMBAAT5UE9tTgCP/2dsb2JhbAAMN4UyrAmGAQEBAQQjDwFGEAsNCwICBRYLAgIJAwIBAgFFBg0BBwEBr2CSGYEvjR+BFgSbQYxy Received: from unknown (HELO [192.168.1.79]) ([109.78.0.143]) by mail3.vodafone.ie with ESMTP; 02 Mar 2012 16:49:27 +0000 Message-ID: <4F50FA17.2010407@draigBrady.com> Date: Fri, 02 Mar 2012 16:49:27 +0000 From: =?UTF-8?B?UMOhZHJhaWcgQnJhZHk=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20110816 Thunderbird/6.0 MIME-Version: 1.0 To: Heinz-Ado Arnolds Subject: Re: bug#10926: Minor problem with static building of coreutils-8.1[345] References: <4F50945A.5090904@MPA-Garching.MPG.DE> In-Reply-To: <4F50945A.5090904@MPA-Garching.MPG.DE> X-Enigmail-Version: 1.3.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 10926 Cc: 10926@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) On 03/02/2012 09:35 AM, Heinz-Ado Arnolds wrote: > Hi, > > I have a minor problem with the *static* building of coreutils. Building > "timeout" requires libpthread in addition to librt. > > A simple patch is enclosed. > > Thanks a lot for your great work and kind regards, Is this on an older glibc/kernel ? cheers, Pádraig. From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 06 11:24:49 2012 Received: (at 10926) by debbugs.gnu.org; 6 Mar 2012 16:24:49 +0000 Received: from localhost ([127.0.0.1]:36100 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S4xBx-0001ap-8T for submit@debbugs.gnu.org; Tue, 06 Mar 2012 11:24:49 -0500 Received: from mail2.vodafone.ie ([213.233.128.44]:14755) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S4xBk-0001aO-CA for 10926@debbugs.gnu.org; Tue, 06 Mar 2012 11:24:37 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgwDAJA5Vk9tTcUH/2dsb2JhbAAMN4VBrikDhA8BAQEEIw8BRhAYBAMBAgECAgUWCwICCQMCAQIBPQgGDQEFAgEBtVaKQYEvigqED4EWBJtEihGCYw Received: from unknown (HELO [192.168.1.79]) ([109.77.197.7]) by mail2.vodafone.ie with ESMTP; 06 Mar 2012 16:23:41 +0000 Message-ID: <4F563A0C.9020505@draigBrady.com> Date: Tue, 06 Mar 2012 16:23:40 +0000 From: =?UTF-8?B?UMOhZHJhaWcgQnJhZHk=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20110816 Thunderbird/6.0 MIME-Version: 1.0 To: bug-gnulib Subject: [PATCH] timer-time: link explicitly with pthreads on glibc References: <4F50945A.5090904@MPA-Garching.MPG.DE> In-Reply-To: <4F50945A.5090904@MPA-Garching.MPG.DE> X-Enigmail-Version: 1.3.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 10926 Cc: 10926@debbugs.gnu.org, Heinz-Ado Arnolds X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) On 03/02/2012 09:35 AM, Heinz-Ado Arnolds wrote: > Hi, > > I have a minor problem with the *static* building of coreutils. Building > "timeout" requires libpthread in addition to librt. > > A simple patch is enclosed. > > Thanks a lot for your great work and kind regards, > I'm not sure if this is the right approach for the above issue. cheers, Pádraig. >From c18ffcdae1d7ffc012a2cd5dee1e2d0411dcfad8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A1draig=20Brady?= Date: Tue, 6 Mar 2012 15:02:40 +0000 Subject: [PATCH] timer-time: link explicitly with pthreads on glibc To support static linking we need to explicitly specify the pthreads library which is referenced (but not used on modern Linux kernels at least). * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread when newer GLIBC is detected as that contains the pthread emulation. * modules/timer-time: Depend on threadlib to pull in the appropriate library to link --- m4/timer_time.m4 | 16 ++++++++++++++++ modules/timer-time | 1 + 2 files changed, 17 insertions(+), 0 deletions(-) diff --git a/m4/timer_time.m4 b/m4/timer_time.m4 index 6276759..d6e0efe 100644 --- a/m4/timer_time.m4 +++ b/m4/timer_time.m4 @@ -11,6 +11,7 @@ AC_DEFUN([gl_TIMER_TIME], dnl Based on clock_time.m4. See details there. AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + AC_REQUIRE([gl_THREADLIB]) LIB_TIMER_TIME= AC_SUBST([LIB_TIMER_TIME]) @@ -18,6 +19,21 @@ AC_DEFUN([gl_TIMER_TIME], AC_SEARCH_LIBS([timer_settime], [rt posix4], [test "$ac_cv_search_timer_settime" = "none required" || LIB_TIMER_TIME=$ac_cv_search_timer_settime]) + dnl GLIBC uses threads to emulate posix timers when kernel support + dnl is not available (like Linux < 2.6 or when used with kFreeBSD) + dnl Now the pthread lib is linked automatically in the normal case, + dnl but when linking statically, it needs to be explicitly specified. + AC_EGREP_CPP([Thread], + [ +#include +#ifdef __GNU_LIBRARY__ + #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || (__GLIBC__ > 2)) \ + && !defined __UCLIBC__ + Thread emulation available + #endif +#endif + ], + [LIB_TIMER_TIME="$LIBMULTITHREAD $LIB_TIMER_TIME"]) AC_CHECK_FUNCS([timer_settime]) LIBS=$gl_saved_libs ]) diff --git a/modules/timer-time b/modules/timer-time index 07b439b..7bf8079 100644 --- a/modules/timer-time +++ b/modules/timer-time @@ -7,6 +7,7 @@ m4/timer_time.m4 Depends-on: extensions +threadlib configure.ac: gl_TIMER_TIME -- 1.7.6.4 From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 10 09:15:13 2012 Received: (at 10926-done) by debbugs.gnu.org; 10 Mar 2012 14:15:14 +0000 Received: from localhost ([127.0.0.1]:42154 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S6N4i-0001UC-G8 for submit@debbugs.gnu.org; Sat, 10 Mar 2012 09:15:13 -0500 Received: from mail2.vodafone.ie ([213.233.128.44]:27051) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S6N4U-0001TN-PK for 10926-done@debbugs.gnu.org; Sat, 10 Mar 2012 09:15:09 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvgCAFhaW09daxnU/2dsb2JhbAAMN4U3rn0DhBkBAQEEIw8BRhALDQQDAQIBAgIFFgsCAgkDAgECAT0IBg0BBQIBAbBakViBL4oNhC+BFgSbV4oYgmM Received: from unknown (HELO [192.168.1.79]) ([93.107.25.212]) by mail2.vodafone.ie with ESMTP; 10 Mar 2012 13:45:17 +0000 Message-ID: <4F5B5AED.9070707@draigBrady.com> Date: Sat, 10 Mar 2012 13:45:17 +0000 From: =?UTF-8?B?UMOhZHJhaWcgQnJhZHk=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20110816 Thunderbird/6.0 MIME-Version: 1.0 To: bug-gnulib Subject: Re: [PATCH] timer-time: link explicitly with pthreads on glibc References: <4F50945A.5090904@MPA-Garching.MPG.DE> <4F563A0C.9020505@draigBrady.com> In-Reply-To: <4F563A0C.9020505@draigBrady.com> X-Enigmail-Version: 1.3.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 10926-done Cc: 10926-done@debbugs.gnu.org, Heinz-Ado Arnolds X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) On 03/06/2012 04:23 PM, Pádraig Brady wrote: > On 03/02/2012 09:35 AM, Heinz-Ado Arnolds wrote: >> Hi, >> >> I have a minor problem with the *static* building of coreutils. Building >> "timeout" requires libpthread in addition to librt. >> >> A simple patch is enclosed. >> >> Thanks a lot for your great work and kind regards, >> > > I'm not sure if this is the right approach for the above issue. > > cheers, > Pádraig. > >>>From c18ffcdae1d7ffc012a2cd5dee1e2d0411dcfad8 Mon Sep 17 00:00:00 2001 > From: =?UTF-8?q?P=C3=A1draig=20Brady?= > Date: Tue, 6 Mar 2012 15:02:40 +0000 > Subject: [PATCH] timer-time: link explicitly with pthreads on glibc I'll apply this to gnulib so. Marking this bug done. cheers, Pádraig. From unknown Fri Sep 12 17:22:37 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 08 Apr 2012 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 19 21:07:23 2012 Received: (at control) by debbugs.gnu.org; 20 Aug 2012 01:07:23 +0000 Received: from localhost ([127.0.0.1]:39055 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T3GSh-0006PR-8Q for submit@debbugs.gnu.org; Sun, 19 Aug 2012 21:07:23 -0400 Received: from mx1.redhat.com ([209.132.183.28]:40534) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T3GSf-0006PL-GM for control@debbugs.gnu.org; Sun, 19 Aug 2012 21:07:22 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q7K17AW3020187 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 19 Aug 2012 21:07:10 -0400 Received: from [10.36.116.20] (ovpn-116-20.ams2.redhat.com [10.36.116.20]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q7K178nB018930 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Sun, 19 Aug 2012 21:07:10 -0400 Message-ID: <50318DBC.9070006@draigBrady.com> Date: Mon, 20 Aug 2012 02:07:08 +0100 From: =?ISO-8859-1?Q?P=E1draig_Brady?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20110816 Thunderbird/6.0 MIME-Version: 1.0 To: undisclosed-recipients:; Subject: Re: [PATCH] timer-time: fix linking order with pthreads/rt References: <1345327066-23215-1-git-send-email-vapier@gentoo.org> In-Reply-To: <1345327066-23215-1-git-send-email-vapier@gentoo.org> X-Enigmail-Version: 1.3.2 Content-Type: text/plain; charset=ISO-8859-1 X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by mx1.redhat.com id q7K17AW3020187 X-Spam-Score: -4.9 (----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.9 (----) unarchive 10926 stop On 08/18/2012 10:57 PM, Mike Frysinger wrote: > When statically linking pthreads with rt, the current order is: > -lpthread -lrt >=20 > But when statically linking, the -lpthread will be discarded as it > isn't used. It needs to come after the -lrt. >=20 > * m4/timer_time.m4 (LIB_TIMER_TIME): Swap order of variables. > --- > m4/timer_time.m4 | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/m4/timer_time.m4 b/m4/timer_time.m4 > index d6e0efe..48fea11 100644 > --- a/m4/timer_time.m4 > +++ b/m4/timer_time.m4 > @@ -33,7 +33,7 @@ AC_DEFUN([gl_TIMER_TIME], > #endif > #endif > ], > - [LIB_TIMER_TIME=3D"$LIBMULTITHREAD $LIB_TIMER_TIME"]) > + [LIB_TIMER_TIME=3D"$LIB_TIMER_TIME $LIBMULTITHREAD"]) > AC_CHECK_FUNCS([timer_settime]) > LIBS=3D$gl_saved_libs > ]) Pushed http://git.sv.gnu.org/gitweb/?p=3Dgnulib.git;a=3Dcommitdiff;h=3D89= 8f1431 thanks, P=E1draig. From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 19 21:18:59 2012 Received: (at 10926) by debbugs.gnu.org; 20 Aug 2012 01:18:59 +0000 Received: from localhost ([127.0.0.1]:39065 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T3Gdv-0007VG-C4 for submit@debbugs.gnu.org; Sun, 19 Aug 2012 21:18:59 -0400 Received: from mx1.redhat.com ([209.132.183.28]:20115) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T3Gds-0007V6-8M for 10926@debbugs.gnu.org; Sun, 19 Aug 2012 21:18:58 -0400 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q7K1Ii21000845 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for <10926@debbugs.gnu.org>; Sun, 19 Aug 2012 21:18:44 -0400 Received: from [10.36.116.20] (ovpn-116-20.ams2.redhat.com [10.36.116.20]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q7K1Ifmk004987 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for <10926@debbugs.gnu.org>; Sun, 19 Aug 2012 21:18:43 -0400 Message-ID: <50319071.9020208@draigBrady.com> Date: Mon, 20 Aug 2012 02:18:41 +0100 From: =?ISO-8859-1?Q?P=E1draig_Brady?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20110816 Thunderbird/6.0 MIME-Version: 1.0 To: 10926@debbugs.gnu.org Subject: Re: [PATCH] timer-time: fix linking order with pthreads/rt References: <1345327066-23215-1-git-send-email-vapier@gentoo.org> In-Reply-To: <1345327066-23215-1-git-send-email-vapier@gentoo.org> X-Enigmail-Version: 1.3.2 Content-Type: text/plain; charset=ISO-8859-1 X-Scanned-By: MIMEDefang 2.68 on 10.5.11.25 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by mx1.redhat.com id q7K1Ii21000845 X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: 10926 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) On 08/18/2012 10:57 PM, Mike Frysinger wrote: > When statically linking pthreads with rt, the current order is: > -lpthread -lrt >=20 > But when statically linking, the -lpthread will be discarded as it > isn't used. It needs to come after the -lrt. >=20 > * m4/timer_time.m4 (LIB_TIMER_TIME): Swap order of variables. > --- > m4/timer_time.m4 | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/m4/timer_time.m4 b/m4/timer_time.m4 > index d6e0efe..48fea11 100644 > --- a/m4/timer_time.m4 > +++ b/m4/timer_time.m4 > @@ -33,7 +33,7 @@ AC_DEFUN([gl_TIMER_TIME], > #endif > #endif > ], > - [LIB_TIMER_TIME=3D"$LIBMULTITHREAD $LIB_TIMER_TIME"]) > + [LIB_TIMER_TIME=3D"$LIB_TIMER_TIME $LIBMULTITHREAD"]) > AC_CHECK_FUNCS([timer_settime]) > LIBS=3D$gl_saved_libs > ]) Pushed http://git.sv.gnu.org/gitweb/?p=3Dgnulib.git;a=3Dcommitdiff;h=3D89= 8f1431 thanks, P=E1draig. From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 20 15:18:31 2012 Received: (at 10926) by debbugs.gnu.org; 20 Aug 2012 19:18:31 +0000 Received: from localhost ([127.0.0.1]:40395 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T3XUd-0001TU-6N for submit@debbugs.gnu.org; Mon, 20 Aug 2012 15:18:31 -0400 Received: from mx.meyering.net ([88.168.87.75]:43265) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T3XUa-0001TM-P1 for 10926@debbugs.gnu.org; Mon, 20 Aug 2012 15:18:29 -0400 Received: from rho.meyering.net (rho.meyering.net [127.0.0.1]) by rho.meyering.net (Acme Bit-Twister) with ESMTP id EB30F60098; Mon, 20 Aug 2012 21:18:10 +0200 (CEST) From: Jim Meyering To: =?iso-8859-1?Q?P=E1draig?= Brady Subject: Re: bug#10926: [PATCH] timer-time: fix linking order with pthreads/rt In-Reply-To: <50319071.9020208@draigBrady.com> (=?iso-8859-1?Q?=22P=E1drai?= =?iso-8859-1?Q?g?= Brady"'s message of "Mon, 20 Aug 2012 02:18:41 +0100") References: <1345327066-23215-1-git-send-email-vapier@gentoo.org> <50319071.9020208@draigBrady.com> Date: Mon, 20 Aug 2012 21:18:10 +0200 Message-ID: <87obm5l6dp.fsf@rho.meyering.net> Lines: 30 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: 10926 Cc: 10926@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) P=E1draig Brady wrote: > On 08/18/2012 10:57 PM, Mike Frysinger wrote: >> When statically linking pthreads with rt, the current order is: >> -lpthread -lrt >> >> But when statically linking, the -lpthread will be discarded as it >> isn't used. It needs to come after the -lrt. >> >> * m4/timer_time.m4 (LIB_TIMER_TIME): Swap order of variables. >> --- >> m4/timer_time.m4 | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/m4/timer_time.m4 b/m4/timer_time.m4 >> index d6e0efe..48fea11 100644 >> --- a/m4/timer_time.m4 >> +++ b/m4/timer_time.m4 >> @@ -33,7 +33,7 @@ AC_DEFUN([gl_TIMER_TIME], >> #endif >> #endif >> ], >> - [LIB_TIMER_TIME=3D"$LIBMULTITHREAD $LIB_TIMER_TIME"]) >> + [LIB_TIMER_TIME=3D"$LIB_TIMER_TIME $LIBMULTITHREAD"]) >> AC_CHECK_FUNCS([timer_settime]) >> LIBS=3D$gl_saved_libs >> ]) > > Pushed http://git.sv.gnu.org/gitweb/?p=3Dgnulib.git;a=3Dcommitdiff;h=3D89= 8f1431 Thanks. We'll inherit this fix in 8.20. From unknown Fri Sep 12 17:22:37 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 18 Sep 2012 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator