From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 17 14:17:05 2021 Received: (at submit) by debbugs.gnu.org; 17 Aug 2021 18:17:05 +0000 Received: from localhost ([127.0.0.1]:54099 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mG3e5-0006Vf-1W for submit@debbugs.gnu.org; Tue, 17 Aug 2021 14:17:05 -0400 Received: from lists.gnu.org ([209.51.188.17]:54158) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mG3TZ-0006DA-Lw for submit@debbugs.gnu.org; Tue, 17 Aug 2021 14:06:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59376) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mG3TZ-0004YC-Gi for bug-grep@gnu.org; Tue, 17 Aug 2021 14:06:13 -0400 Received: from mail-qk1-x736.google.com ([2607:f8b0:4864:20::736]:41628) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mG3TY-0001su-30 for bug-grep@gnu.org; Tue, 17 Aug 2021 14:06:13 -0400 Received: by mail-qk1-x736.google.com with SMTP id t68so24075446qkf.8 for ; Tue, 17 Aug 2021 11:06:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:message-id:date :to; bh=fEC6q7Hp6nKCyqdZ7DnEgDU5NuSs110G5v4cHpPfnxo=; b=XT+GssoiPxzFfI2u+7ZScv4iEDDuwrAeNvFFDgC/C3Pl2hVNNuUHdb66/Db4kXZV1I +jzRhtOc1XrFb7edyskitQj4vh4AZG7K9WGDPdvVWjiMYO/VklmfwwtqdJ8tkUIlnQ1N ScWLUwd4QS2RKIYdo3VxaK83u5mw2hhKMGkna/m9ja5hhNTUmgWKlvpp301hSEemnR/0 nPskC3WuNZnyCmrGktfWpRzXymwyrUy0zFdTpWRUlMzPXzYhLFR9EqrTwU94LbDlQfFM OwYbywyygcmq0dzgufiEalcrnGL1nOQV3rJQAFIfyesQ2BMki0XNpr/AtwUfxkGvoiOv SWqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:to; bh=fEC6q7Hp6nKCyqdZ7DnEgDU5NuSs110G5v4cHpPfnxo=; b=D0WTTOneLiHS4XVIpUe/D9i8G+LGYz9UAgZOzxD8ybgj9kuOY4bmyp7AJ87V3t8DZq iUdB0ZNUlbRyW5nA/nTv+adovpzQ6bomoO1Tpi9taxrsfWWFqdPUn2/iS3qlIicZSpmw jduusdzsE4ZhJqlVRrXJHabeQC2R2f7BZPFTGPMXo0sohjX9mmo7x1sjTmy0re6pRlsu kHKFqV2fwk0Aji6tCMhshZWlnLSAS/EQtK3WbePDErLqcYt/VWw5UxM300We0a1X8kDx 0/hDGqmJA+IsX9VQMd8KwHKgS1ndzMl9jF405UUwMiahCWGTen7GaDfrOKKiZFzm50Q4 qJSA== X-Gm-Message-State: AOAM530dnlOMe2vOIqHAB2u78MJuYDKflpVB+VTS44a0L5Zydb/gJoPv UmxngSY7jkuNpyTXzDjxv7upeHRtF48OPQ== X-Google-Smtp-Source: ABdhPJzOxU4xDI2pNEBBAKfc/BrBb9qWSxg2RjBFSLAayjKJsHbbrzwVh593sL6FI8fhtAB6TTruzQ== X-Received: by 2002:ae9:e858:: with SMTP id a85mr5151712qkg.97.1629223570371; Tue, 17 Aug 2021 11:06:10 -0700 (PDT) Received: from smtpclient.apple (host-23-251-93-126.MIDOLT6.epbfi.com. [23.251.93.126]) by smtp.gmail.com with ESMTPSA id z6sm1929405qke.24.2021.08.17.11.06.09 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Aug 2021 11:06:09 -0700 (PDT) From: Evan Miller Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Configuring --with-libsigsegv results in link error Message-Id: <5C76D78E-EB34-4EFD-96F3-64CF38AC63B3@gmail.com> Date: Tue, 17 Aug 2021 14:06:09 -0400 To: bug-grep@gnu.org X-Mailer: Apple Mail (2.3654.120.0.1.13) Received-SPF: pass client-ip=2607:f8b0:4864:20::736; envelope-from=emmiller@gmail.com; helo=mail-qk1-x736.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 17 Aug 2021 14:17:03 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Using grep 3.7 (as well as master), I'm seeing undefined symbol errors = after pointing the build to use a local installation of libsigsegv = (version 2.13). Making all in src CCLD grep Undefined symbols: "_stackoverflow_install_handler", referenced from: _c_stack_action in libgreputils.a(c-stack.o) "_sigsegv_install_handler", referenced from: _c_stack_action in libgreputils.a(c-stack.o) ld: symbol(s) not found Configure appears to find the library (which is provided by MacPorts) = correctly. The config.log contains: LIBSIGSEGV=3D'-L/opt/local/lib -lsigsegv' Compiler powerpc-apple-darwin8-gcc-apple-4.2.1 (GCC) 4.2.1 (Apple Inc. build = 5666) (dot 3) (MacPorts apple-gcc42 5666.3_16) System 8.11.0 Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 PDT 2007; = root:xnu-792.24.17~1/RELEASE_PPC Power Macintosh powerpc It's an older system but seems close to building the program. Let me = know what additional information would be useful for debugging. Evan= From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 17 15:12:38 2021 Received: (at 50098-done) by debbugs.gnu.org; 17 Aug 2021 19:12:38 +0000 Received: from localhost ([127.0.0.1]:54136 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mG4Vl-00080a-Rq for submit@debbugs.gnu.org; Tue, 17 Aug 2021 15:12:38 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:47090) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mG4Vg-00080I-8L for 50098-done@debbugs.gnu.org; Tue, 17 Aug 2021 15:12:32 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id B92C91600BE; Tue, 17 Aug 2021 12:12:22 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id NsrYzWEn_eCN; Tue, 17 Aug 2021 12:12:17 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id BB86E1600C3; Tue, 17 Aug 2021 12:12:17 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id oO8HN1t26ISj; Tue, 17 Aug 2021 12:12:17 -0700 (PDT) Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 8FB571600BE; Tue, 17 Aug 2021 12:12:17 -0700 (PDT) Subject: Re: bug#50098: Configuring --with-libsigsegv results in link error To: Evan Miller References: <5C76D78E-EB34-4EFD-96F3-64CF38AC63B3@gmail.com> From: Paul Eggert Organization: UCLA Computer Science Department Message-ID: <6b061211-282c-5d79-2dac-51af8a790922@cs.ucla.edu> Date: Tue, 17 Aug 2021 12:12:17 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <5C76D78E-EB34-4EFD-96F3-64CF38AC63B3@gmail.com> Content-Type: multipart/mixed; boundary="------------EF2FFFC83A2066B71BE5D199" Content-Language: en-US X-Spam-Score: -2.4 (--) X-Debbugs-Envelope-To: 50098-done Cc: Gnulib bugs , 50098-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.4 (---) This is a multi-part message in MIME format. --------------EF2FFFC83A2066B71BE5D199 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 8/17/21 11:06 AM, Evan Miller wrote: > Using grep 3.7 (as well as master), I'm seeing undefined symbol errors after pointing the build to use a local installation of libsigsegv (version 2.13). Thanks for reporting that. It's a bug in Gnulib's c-stack module, which I fixed in Gnulib by installing the attached. The problem should be fixed in the next Grep release. In the meantime you should be able work around the Grep problem by not using --with-libsigsegv. --------------EF2FFFC83A2066B71BE5D199 Content-Type: text/x-patch; charset=UTF-8; name="0001-c-stack-fix-libsigsegv-dependency.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0001-c-stack-fix-libsigsegv-dependency.patch" >From 592555eb0ed347452cf3834e1638ab474e948532 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 17 Aug 2021 12:06:42 -0700 Subject: [PATCH] c-stack: fix libsigsegv dependency Problem reported for GNU grep by Evan Miller (Bug#50098). * m4/c-stack.m4 (gl_C_STACK): Call gl_LIBSIGSEGV before testing gl_cv_lib_sigsegv. --- ChangeLog | 7 +++++++ m4/c-stack.m4 | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ddf2943b0..d42551ce1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2021-08-17 Paul Eggert + + c-stack: fix libsigsegv dependency + Problem reported for GNU grep by Evan Miller (Bug#50098). + * m4/c-stack.m4 (gl_C_STACK): Call gl_LIBSIGSEGV before + testing gl_cv_lib_sigsegv. + 2021-08-14 Bruno Haible doc: Update for glibc 2.34. diff --git a/m4/c-stack.m4 b/m4/c-stack.m4 index 7cccb06c1..f3de54fad 100644 --- a/m4/c-stack.m4 +++ b/m4/c-stack.m4 @@ -7,12 +7,13 @@ # Written by Paul Eggert. -# serial 23 +# serial 24 AC_DEFUN([gl_C_STACK], [ dnl 'c-stack' needs -lsigsegv if and only if the 'sigsegv' module needs it. if test "$with_libsigsegv" = yes; then + gl_LIBSIGSEGV if test "$gl_cv_lib_sigsegv" = yes; then AC_SUBST([LIBCSTACK], [$LIBSIGSEGV]) AC_SUBST([LTLIBCSTACK], [$LTLIBSIGSEGV]) -- 2.30.2 --------------EF2FFFC83A2066B71BE5D199-- From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 17 16:05:35 2021 Received: (at 50098-done) by debbugs.gnu.org; 17 Aug 2021 20:05:35 +0000 Received: from localhost ([127.0.0.1]:54194 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mG5L4-0000sw-6G for submit@debbugs.gnu.org; Tue, 17 Aug 2021 16:05:35 -0400 Received: from mail-qt1-f171.google.com ([209.85.160.171]:39805) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mG5Ib-0000ob-4Y for 50098-done@debbugs.gnu.org; Tue, 17 Aug 2021 16:03:02 -0400 Received: by mail-qt1-f171.google.com with SMTP id d2so18212779qto.6 for <50098-done@debbugs.gnu.org>; Tue, 17 Aug 2021 13:03:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=g/Pf2UBYaAw2XMWf+gKK5HaKu+2LuHt1ts+tfIkxTsI=; b=I9GzcXCpWBKCiV4msqVt6Dis3GFDRcpfEDuHlarcjk2/pPz7M0QOwvk3xEY1/rh2zI +a+wz2edXGlkAnJl7osUDLLt86hUXTs965c440cNdIMAdDvcJdya+cYdZEvqR2+9RqQS 2PQF1FvNnXUi/XWmNFULVIUXq6GVcgTZJOJDzGLzsvyxzxKRAWyS2HdbZxRbaEewl6cV 0mhQAXeUUmqJvtvLMX4D5TqGz633Wl+vVfnyNqU8AB9z+qhkHGJpgQJx/C4gw6aetrPb 03TDJpereTqC1pxZTgdm2RDYwIMALyvPyovVKV3RpcPWwgB0Z/AjMWS6h248KPmvPcPo zHWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=g/Pf2UBYaAw2XMWf+gKK5HaKu+2LuHt1ts+tfIkxTsI=; b=fNSqN431lfQfnj3Bl1RAlo4pzW8vbmjSklNNd15rs0p0ohIM3/e3Wa59bqlGe7Zy9o 3N3JINFz6fRhbQtSd3cqrgThHE06PzEIVruLf4HB8RImbb1Tk7I43bvfRQUS83bwIkWp ddH8h0i6oZfcFRmpGR7UKUbiiJg+ggZNneX4tL6LsmHtSUEnFud0V5EGqCtDHprtjWIT LWDGpTKNDz8y4X5VyPXD0pFuUDjgss1+BrjACE3dRpP/Os88WmGwj4bQleohqbDrCuY/ ccFoHrW8WzW5aLnWSs97Em5SoTJhIomzceHpwOqeUsh1NbiWymK2iAeY3Wv8TPjgqWKQ RrNA== X-Gm-Message-State: AOAM5302l1e3IFqTyh2AEZakMW8nrwTtBnaICunMK76H1MDDwnihl6CP 2CKurIK62HtbW38sTk5vdRA= X-Google-Smtp-Source: ABdhPJzddn7m0Cm6pfqUAxBwz1rtQPJaJlVtv4oi3wS6SgbUPxHLF1YHo71H6hEsocJV/UQ/g6trBA== X-Received: by 2002:ac8:7194:: with SMTP id w20mr4678925qto.217.1629230575453; Tue, 17 Aug 2021 13:02:55 -0700 (PDT) Received: from smtpclient.apple (host-23-251-93-126.MIDOLT6.epbfi.com. [23.251.93.126]) by smtp.gmail.com with ESMTPSA id f22sm2057914qkk.3.2021.08.17.13.02.54 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Aug 2021 13:02:54 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: bug#50098: Configuring --with-libsigsegv results in link error From: Evan Miller In-Reply-To: <6b061211-282c-5d79-2dac-51af8a790922@cs.ucla.edu> Date: Tue, 17 Aug 2021 16:02:54 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: References: <5C76D78E-EB34-4EFD-96F3-64CF38AC63B3@gmail.com> <6b061211-282c-5d79-2dac-51af8a790922@cs.ucla.edu> To: Paul Eggert X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 50098-done X-Mailman-Approved-At: Tue, 17 Aug 2021 16:05:33 -0400 Cc: Gnulib bugs , 50098-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > On Aug 17, 2021, at 15:12, Paul Eggert wrote: >=20 > On 8/17/21 11:06 AM, Evan Miller wrote: >> Using grep 3.7 (as well as master), I'm seeing undefined symbol = errors after pointing the build to use a local installation of = libsigsegv (version 2.13). >=20 > Thanks for reporting that. It's a bug in Gnulib's c-stack module, = which I fixed in Gnulib by installing the attached. The problem should = be fixed in the next Grep release. In the meantime you should be able = work around the Grep problem by not using --with-libsigsegv. > <0001-c-stack-fix-libsigsegv-dependency.patch> Thanks for the patch. At present, the non-libsigsegv implementation does = not compile on this machine for reasons described in https://trac.macports.org/ticket/63381 From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 17 18:53:28 2021 Received: (at 50098) by debbugs.gnu.org; 17 Aug 2021 22:53:28 +0000 Received: from localhost ([127.0.0.1]:54398 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mG7xU-0007K3-Fx for submit@debbugs.gnu.org; Tue, 17 Aug 2021 18:53:28 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:55534) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mG7xP-0007Jn-N9 for 50098@debbugs.gnu.org; Tue, 17 Aug 2021 18:53:23 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 07A93160052; Tue, 17 Aug 2021 15:53:14 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id XO6UGAURj3Gu; Tue, 17 Aug 2021 15:53:09 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 081161600BC; Tue, 17 Aug 2021 15:53:09 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id PoOnL_6OGolX; Tue, 17 Aug 2021 15:53:08 -0700 (PDT) Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id D48D5160052; Tue, 17 Aug 2021 15:53:08 -0700 (PDT) To: Evan Miller References: <5C76D78E-EB34-4EFD-96F3-64CF38AC63B3@gmail.com> <6b061211-282c-5d79-2dac-51af8a790922@cs.ucla.edu> From: Paul Eggert Organization: UCLA Computer Science Department Subject: Re: bug#50098: Configuring --with-libsigsegv results in link error Message-ID: <6bc68dea-355f-2f9a-0ce8-d062bea66973@cs.ucla.edu> Date: Tue, 17 Aug 2021 15:53:08 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.4 (--) X-Debbugs-Envelope-To: 50098 Cc: Gnulib bugs , 50098@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.4 (---) On 8/17/21 1:02 PM, Evan Miller wrote: > Thanks for the patch. At present, the non-libsigsegv implementation doe= s not compile on this machine for reasons described in >=20 > https://trac.macports.org/ticket/63381 Oh, I see you're building for an old system (Mac OSX 10.4.11, circa=20 2007) that Apple itself is no longer supporting. Although we don't=20 normally worry about such platforms, perhaps you can come up with a=20 patch that clearly won't break mainline platforms. In the meantime I suppose you can try the c-stack patch I just sent you,=20 though this will require running autoconf. Alternatively you may be able=20 to work around the problem by using something like this: ./configure LDFLAGS=3D'-L/opt/local/lib' LIBS=3D'-lsigsegv' From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 17 22:04:59 2021 Received: (at 50098) by debbugs.gnu.org; 18 Aug 2021 02:04:59 +0000 Received: from localhost ([127.0.0.1]:54475 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGAwp-0003XJ-Fl for submit@debbugs.gnu.org; Tue, 17 Aug 2021 22:04:59 -0400 Received: from mail-qt1-f173.google.com ([209.85.160.173]:37854) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGAwj-0003Wy-Ro for 50098@debbugs.gnu.org; Tue, 17 Aug 2021 22:04:54 -0400 Received: by mail-qt1-f173.google.com with SMTP id l24so395295qtj.4 for <50098@debbugs.gnu.org>; Tue, 17 Aug 2021 19:04:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=UvUfzFJkEOxWUkaqe4F+zV0sEfKklu5lky68oT+zI/w=; b=GSZr4txu45l5z8tx9l4HXEBd/W4HPuAs5EbH+Cfl2wX6B4Z7eLkl9CVpne87AJvMsu ElDy1Vcgyt+XmVli/xGPfmjskOVePewiglO5NNDy9EzTMyqj6m4w6PA9uLQMe9lXVGKs f31IEL99KfQf70OTTkbELChT3hQvRcg3JsdF8RhUo6iE9bJQowkdO8btfqHNkvpe8iM/ x9NroxmA6l9BR7NDWPZJyzSRCsjCj1S/dxGY6fQNsw3IQwjRK/LLhDHJY6ncI3zt884W YykkKGvIiSCuyglZLqcW5CDhhXoF0mBJEeUCkrLPvncci1AZ81/PVfXHidYuZgJzT++O dFaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=UvUfzFJkEOxWUkaqe4F+zV0sEfKklu5lky68oT+zI/w=; b=ZQgS2SazWgBtvUKkkUFA9+QFYsuA25aJJfYeMX7YWDALg5ajj8ABHRv/odWK6ieFPg 6Jdl12IxiA2huXRwUaVaaKq6YK1m9B6BqOjmq1+SUWY7xMwL2g+URvE5g9/MXHw1zheb pjrukUKzdvOFJwgOtCOaUu5gTzCJrXr2RZNLF9/9pgnVDqpw4nN4OgtEB3fLiwMwEmuS 8Ia3sMcGhu6L/ZHSBbqwKAB4RTyM5B0MyQ3hKR7D93M9Jck7leUR+OABrjMJMwQAwhc5 mDfiyZJgJMFdn+OUrwnFnOQnHKsQkXVOwC73d3JUFL5agpdjGek5UdsW+Vx3kqBmpOVT FK/A== X-Gm-Message-State: AOAM533yJ3WIQZE0K24a7JTj7lH8WMuZWbw/pmrcWvfBbEzQU2W5ujLH 67IY4qASxvupooWaUcPV2pw= X-Google-Smtp-Source: ABdhPJxadD7WEK0oBESWNzSy0vszCPPLfcwRAMTN4avdgGhUl0qb5thB+mxQe22Aj8vZE1ZXfkKdMQ== X-Received: by 2002:ac8:108f:: with SMTP id a15mr5924809qtj.126.1629252284400; Tue, 17 Aug 2021 19:04:44 -0700 (PDT) Received: from smtpclient.apple (host-23-251-93-126.MIDOLT6.epbfi.com. [23.251.93.126]) by smtp.gmail.com with ESMTPSA id bk3sm2460770qkb.103.2021.08.17.19.04.43 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Aug 2021 19:04:43 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: bug#50098: Configuring --with-libsigsegv results in link error From: Evan Miller In-Reply-To: <6bc68dea-355f-2f9a-0ce8-d062bea66973@cs.ucla.edu> Date: Tue, 17 Aug 2021 22:04:43 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: <5179F924-B543-4762-B231-D284551DC89F@gmail.com> References: <5C76D78E-EB34-4EFD-96F3-64CF38AC63B3@gmail.com> <6b061211-282c-5d79-2dac-51af8a790922@cs.ucla.edu> <6bc68dea-355f-2f9a-0ce8-d062bea66973@cs.ucla.edu> To: Paul Eggert X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 50098 Cc: Gnulib bugs , 50098@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > On Aug 17, 2021, at 18:53, Paul Eggert wrote: >=20 > On 8/17/21 1:02 PM, Evan Miller wrote: >=20 >> Thanks for the patch. At present, the non-libsigsegv implementation = does not compile on this machine for reasons described in >> https://trac.macports.org/ticket/63381 >=20 > Oh, I see you're building for an old system (Mac OSX 10.4.11, circa = 2007) that Apple itself is no longer supporting. Although we don't = normally worry about such platforms, perhaps you can come up with a = patch that clearly won't break mainline platforms. A simple regex substitution (removing double underscores from the struct = member names on the affected platform) seems to do the trick in the = downstream package. If I have the time and cleverness I'll see about a = proper patch. >=20 > In the meantime I suppose you can try the c-stack patch I just sent = you, though this will require running autoconf. Alternatively you may be = able to work around the problem by using something like this: >=20 > ./configure LDFLAGS=3D'-L/opt/local/lib' LIBS=3D'-lsigsegv' That workaround is what I was looking for, and will let MacPorts fix its = package without waiting for a new Grep release.= From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 18 10:54:24 2021 Received: (at 50098) by debbugs.gnu.org; 18 Aug 2021 14:54:25 +0000 Received: from localhost ([127.0.0.1]:57220 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGMxU-0005ER-PF for submit@debbugs.gnu.org; Wed, 18 Aug 2021 10:54:24 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:34258) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGMxT-0005EC-Az for 50098@debbugs.gnu.org; Wed, 18 Aug 2021 10:54:23 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id C8B5B1600D3; Wed, 18 Aug 2021 07:54:17 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 2JZYeW-e-kYD; Wed, 18 Aug 2021 07:54:17 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 2B5461600EB; Wed, 18 Aug 2021 07:54:17 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 64ZTafQKn3fC; Wed, 18 Aug 2021 07:54:17 -0700 (PDT) Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 04D051600D3; Wed, 18 Aug 2021 07:54:17 -0700 (PDT) Subject: Re: bug#50098: Configuring --with-libsigsegv results in link error To: Evan Miller References: <5C76D78E-EB34-4EFD-96F3-64CF38AC63B3@gmail.com> <6b061211-282c-5d79-2dac-51af8a790922@cs.ucla.edu> <6bc68dea-355f-2f9a-0ce8-d062bea66973@cs.ucla.edu> <5179F924-B543-4762-B231-D284551DC89F@gmail.com> From: Paul Eggert Organization: UCLA Computer Science Department Message-ID: <59856789-a606-54f0-40e7-d221827740eb@cs.ucla.edu> Date: Wed, 18 Aug 2021 07:54:16 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <5179F924-B543-4762-B231-D284551DC89F@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: -2.4 (--) X-Debbugs-Envelope-To: 50098 Cc: Gnulib bugs , 50098@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.4 (---) On 8/17/21 7:04 PM, Evan Miller wrote: >> ./configure LDFLAGS='-L/opt/local/lib' LIBS='-lsigsegv' > > > That workaround is what I was looking for, and will let MacPorts fix its package without waiting for a new Grep release. Thanks. I'm closing the grep bug report as we have a c-stack fix installed, which should suffice for the grep case that prompted the bug report. The Gnulib sigsegv module issue is lower priority and can be dealt with separately on the bug-gnulib mailing list, if it's dealt with at all. From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 21 19:37:21 2021 Received: (at 50098-done) by debbugs.gnu.org; 21 Aug 2021 23:37:21 +0000 Received: from localhost ([127.0.0.1]:38006 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mHaYC-0003Ab-Rd for submit@debbugs.gnu.org; Sat, 21 Aug 2021 19:37:21 -0400 Received: from mo4-p00-ob.smtp.rzone.de ([85.215.255.25]:32837) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mHaYA-0003AQ-Rd for 50098-done@debbugs.gnu.org; Sat, 21 Aug 2021 19:37:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1629589021; s=strato-dkim-0002; d=clisp.org; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=bpBgpWX4qugreeSrAvZm+5GzheYHGpPk96BHiRTUi0I=; b=WQneCusY/doHKAfd6f2a3hqQ6cBVFf/wFtQyc4VL4OcYePOrrV6F7ZdBpsSZnj9bbw yPr8nh8PdPyIUfiOtFw+OXMlPcYibTS2rZ39jC81c3ftWlXiC8T8u+088w1Pjt+pR92/ uGUmTsAGW9NA4gct2ZoiSnkZXjnaS1dLgUvi4akQ2BeROMWqWr84A5RhFiHwxbMWsX0U Nu2y6VPNhnXcEEjuPatiSG70DCIgK9nkLJRVZhpttd5X50JJp2k9rdib22CdT8kFFUEk IZ+FHZFtrDA0LBuQsahnju6I61ZN70meqccZ20p7DcMVca+Iz60lUNPVg1+IWNIYt4tp qqqQ== Authentication-Results: strato.com; dkim=none X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlIWs+iCP5vnk6shH0WWb0LN8XZoH94z26ll5ip69pkxF+mpsrYqBZwb0PZI/d+N5vZA==" X-RZG-CLASS-ID: mo00 Received: from omega.localnet by smtp.strato.de (RZmta 47.31.0 AUTH) with ESMTPSA id I0a189x7LNb1VaG (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Sun, 22 Aug 2021 01:37:01 +0200 (CEST) From: Bruno Haible To: 50098-done@debbugs.gnu.org, Paul Eggert Subject: Re: bug#50098: Configuring --with-libsigsegv results in link error Date: Sun, 22 Aug 2021 01:37:00 +0200 Message-ID: <11060873.nUPlyArG6x@omega> In-Reply-To: <6b061211-282c-5d79-2dac-51af8a790922@cs.ucla.edu> References: <5C76D78E-EB34-4EFD-96F3-64CF38AC63B3@gmail.com> <6b061211-282c-5d79-2dac-51af8a790922@cs.ucla.edu> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 50098-done Cc: bug-gnulib@gnu.org, Evan Miller X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Paul Eggert wrote: > > Using grep 3.7 (as well as master), I'm seeing undefined symbol errors after pointing the build to use a local installation of libsigsegv (version 2.13). > > Thanks for reporting that. It's a bug in Gnulib's c-stack module, which > I fixed in Gnulib by installing the attached. Thanks. It was my mistake from 2021-05-18; sorry. This patch refactors the macros a bit, so that the test for libsigsegv is only performed once, not twice. --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2021-08-21 Bruno Haible + + c-stack: Test for libsigsegv once, not twice. + * m4/sigsegv.m4: New file, based on modules/sigsegv. + * modules/sigsegv (Files): Add it. + (configure.ac): Require gl_SIGSEGV. Test gl_sigsegv_uses_libsigsegv + instead of with_libsigsegv and gl_cv_lib_sigsegv. + * m4/c-stack.m4 (gl_C_STACK): Likewise. + 2021-08-21 Bruno Haible rawmemchr: Fix use in relocatable-prog-wrapper (regression 2021-08-20). @@ -23,7 +32,7 @@ 2021-08-17 Paul Eggert - c-stack: fix libsigsegv dependency + c-stack: fix libsigsegv dependency (regression 2021-05-18) Problem reported for GNU grep by Evan Miller (Bug#50098). * m4/c-stack.m4 (gl_C_STACK): Call gl_LIBSIGSEGV before testing gl_cv_lib_sigsegv. diff --git a/m4/c-stack.m4 b/m4/c-stack.m4 index f3de54fad..caf1d2de7 100644 --- a/m4/c-stack.m4 +++ b/m4/c-stack.m4 @@ -7,16 +7,14 @@ # Written by Paul Eggert. -# serial 24 +# serial 25 AC_DEFUN([gl_C_STACK], [ dnl 'c-stack' needs -lsigsegv if and only if the 'sigsegv' module needs it. - if test "$with_libsigsegv" = yes; then - gl_LIBSIGSEGV - if test "$gl_cv_lib_sigsegv" = yes; then - AC_SUBST([LIBCSTACK], [$LIBSIGSEGV]) - AC_SUBST([LTLIBCSTACK], [$LTLIBSIGSEGV]) - fi + AC_REQUIRE([gl_SIGSEGV]) + if test $gl_sigsegv_uses_libsigsegv = yes; then + AC_SUBST([LIBCSTACK], [$LIBSIGSEGV]) + AC_SUBST([LTLIBCSTACK], [$LTLIBSIGSEGV]) fi ]) diff --git a/m4/sigsegv.m4 b/m4/sigsegv.m4 new file mode 100644 index 000000000..d5d1fc4b1 --- /dev/null +++ b/m4/sigsegv.m4 @@ -0,0 +1,20 @@ +# sigsegv.m4 serial 1 +dnl Copyright (C) 2021 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Bruno Haible. + +AC_DEFUN_ONCE([gl_SIGSEGV], +[ + AC_ARG_WITH([libsigsegv], + [AS_HELP_STRING([--with-libsigsegv], + [use the GNU libsigsegv library, when present, instead of the gnulib module 'sigsegv'])]) + if test "$with_libsigsegv" = yes; then + gl_LIBSIGSEGV + gl_sigsegv_uses_libsigsegv="$gl_cv_lib_sigsegv" + else + gl_sigsegv_uses_libsigsegv=no + fi +]) diff --git a/modules/sigsegv b/modules/sigsegv index 2ef84332d..fdd815c37 100644 --- a/modules/sigsegv +++ b/modules/sigsegv @@ -20,6 +20,7 @@ m4/mmap-anon.m4 m4/sigaltstack.m4 m4/stack-direction.m4 m4/libsigsegv.m4 +m4/sigsegv.m4 Depends-on: havelib @@ -28,15 +29,11 @@ stdint getpagesize configure.ac: -AC_ARG_WITH([libsigsegv], - [AS_HELP_STRING([--with-libsigsegv], - [use the GNU libsigsegv library, when present, instead of the gnulib module 'sigsegv'])]) -SIGSEGV_H=sigsegv.h -if test "$with_libsigsegv" = yes; then - gl_LIBSIGSEGV - if test "$gl_cv_lib_sigsegv" = yes; then - SIGSEGV_H= - fi +AC_REQUIRE([gl_SIGSEGV]) +if test $gl_sigsegv_uses_libsigsegv = yes; then + SIGSEGV_H= +else + SIGSEGV_H=sigsegv.h fi AC_SUBST([SIGSEGV_H]) AM_CONDITIONAL([GL_GENERATE_SIGSEGV_H], [test -n "$SIGSEGV_H"]) From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 21 19:46:39 2021 Received: (at 50098) by debbugs.gnu.org; 21 Aug 2021 23:46:39 +0000 Received: from localhost ([127.0.0.1]:38015 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mHahD-0003R5-3c for submit@debbugs.gnu.org; Sat, 21 Aug 2021 19:46:39 -0400 Received: from mo4-p01-ob.smtp.rzone.de ([85.215.255.54]:23418) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mHahA-0003Qt-OB for 50098@debbugs.gnu.org; Sat, 21 Aug 2021 19:46:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1629589594; s=strato-dkim-0002; d=clisp.org; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=gvEjFkx1QfCiv9MvFGltTunhIszZcn0tHkQSDazTGgY=; b=Q1Xv9WIEW6yQLyxVy7KMcUxo+2jTWsneAiTZhSnrS0I/q8P3zo6nhtJQYl0dSpi1Mo c/uLPSC07DGB/i7cJ7nHXhjYILSU5eb6AusstuTbSL3ibygTp2WPMfKlsayS46T8anDc unGkkaotiObL3bZEszBGbh4dJjFYxiceScDEe5eC/acXVH0B215jT9WhmSbWmmDl+ihb spjy5xG27YZCFNVh++cY8RsnOCEmhNZVyx8RzeQ5T3y4ndvg0cHuJEtZUzkf+3C+ln/X 30HFo7rYbPNAT+OKIX+zvTpN1C+vnwRstvCjI5PxrswcSuZysyl70y7R10w/gc6OVLqE VMLA== Authentication-Results: strato.com; dkim=none X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlIWs+iCP5vnk6shH0WWb0LN8XZoH94z26ll5ip69pkxF+mpsrYqBZwb0PZI/d+N5vZA==" X-RZG-CLASS-ID: mo00 Received: from omega.localnet by smtp.strato.de (RZmta 47.31.0 AUTH) with ESMTPSA id I0a189x7LNkXVd6 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Sun, 22 Aug 2021 01:46:33 +0200 (CEST) From: Bruno Haible To: Evan Miller Subject: Re: bug#50098: Configuring --with-libsigsegv results in link error Date: Sun, 22 Aug 2021 01:46:33 +0200 Message-ID: <4505246.iIbC2pHGDl@omega> In-Reply-To: <5179F924-B543-4762-B231-D284551DC89F@gmail.com> References: <5C76D78E-EB34-4EFD-96F3-64CF38AC63B3@gmail.com> <6bc68dea-355f-2f9a-0ce8-d062bea66973@cs.ucla.edu> <5179F924-B543-4762-B231-D284551DC89F@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 50098 Cc: Paul Eggert , bug-gnulib@gnu.org, 50098@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Evan Miller wrote: > > Oh, I see you're building for an old system (Mac OSX 10.4.11, circa 2007) that Apple itself is no longer supporting. Although we don't normally worry about such platforms, perhaps you can come up with a patch that clearly won't break mainline platforms. > > A simple regex substitution (removing double underscores from the struct member names on the affected platform) seems to do the trick in the downstream package. If I have the time and cleverness I'll see about a proper patch. When you do this, you also need to run "make check", to see whether the unit tests pass. Background: On macOS, libsigsegv uses an approach based on the Mach API, that works also with older macOS releases. Whereas the 'sigsegv' module uses the POSIX API (sigaltstack() etc.) that was added in newer macOS versions. IIRC, the 'sigsegv' module has been tested on macOS >= 10.5; it was *not* tested on macOS 10.4. It is well possible that it does not work on macOS 10.4. In this case, if you want binaries that work on ALL macOS releases >= 10.4, use the libsigsegv library and the --with-libsigsegv configure option, and Paul's fix. A "./configure; make; make check" of a gnulib testdir will tell you. Run these commands: ./gnulib-tool --create-testdir --dir=testdir1 --single-configure c-stack cd testdir1 ./configure make make check If they fail, then you do need the libsigsegv library. Bruno From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 22 07:20:11 2021 Received: (at 50098) by debbugs.gnu.org; 22 Aug 2021 11:20:11 +0000 Received: from localhost ([127.0.0.1]:38255 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mHlWN-0004RF-5N for submit@debbugs.gnu.org; Sun, 22 Aug 2021 07:20:11 -0400 Received: from mail-qk1-f182.google.com ([209.85.222.182]:40649) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mHlWJ-0004Qt-4q for 50098@debbugs.gnu.org; Sun, 22 Aug 2021 07:20:10 -0400 Received: by mail-qk1-f182.google.com with SMTP id t190so16107742qke.7 for <50098@debbugs.gnu.org>; Sun, 22 Aug 2021 04:20:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=cKno9D10MjlnzsX7RB4itM0dS0F792ztcHo/g81SlNI=; b=tEFnR8Wamkedn1NLhKKQ3apJI3wpwCt7YkmK5/1jmt1ghNuExlz9XIJK071l9fpMd5 jiJb1lCJhZ2Vbckxb1ETu3FWo/OAepycwD8ljhN4h0cU/YEYztPmMSjEZ+G4DcHmVHhk zqm5c4wcSldA7BA54hZNgDD6/LmMhYyq5wZNLRE1sgm6g8QOypXBsAR/rZgs7653ORaW Id2M7Rr5DWDDf0UV86o34B09hYOyzDp1RK/WqZ8hQFKSPeBmUkJ2AjLMTgsSGpQOULip 5XXVKpNiQIWQtrsruCPjzehW5CqgosOMIfjaeWC21XxRse0iNS+TafpjHm9+ybbkU+Ol ckTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=cKno9D10MjlnzsX7RB4itM0dS0F792ztcHo/g81SlNI=; b=IjjlqV7tlNSmMay9ipAiMJ/onecl0+g21nZ8rGXZ/s4+V4iGCBy8cVxhQfS71mg0sb rJk4W26tPdMCtveus0wF4kIyRF7vdDG4eVJ3aBcRWF5qjqt3JzzIKXkl8Hm/gA8fETmk X4J36rSpeHtBy45+qlDXQEqOGRmOMyGdCl/tR9HAbqV4CbJGgZznq+uAbg2JDi2mcWAy ssc6aAbDBQueae1sZZXs4N0qkP3WsCCRLic4rJQ6f3C92q3xMJKZxxGcyV0vBWjADJi2 UEAw79BcPx0/EYaOJdAhPyXfR7xcu+s9q3Y8Ch+detOSHpchvoYuf/NBtA7EX2CyL35b qAcg== X-Gm-Message-State: AOAM533FSZtouQo75MgUo3brVzMyIQ++EvTCvOp2dDJyGN6wc0yTj4pk NbwqwbtwIzD+qgQF4DOIITk= X-Google-Smtp-Source: ABdhPJxF4FG21BbdQZPnGlu7RemrBnRndMETj7fAf8cIg8B38RCWF8crOAGJSh9gmbgX/mcX7UtyQg== X-Received: by 2002:a05:620a:4f5:: with SMTP id b21mr16926392qkh.323.1629631201396; Sun, 22 Aug 2021 04:20:01 -0700 (PDT) Received: from smtpclient.apple (host-23-251-93-126.MIDOLT6.epbfi.com. [23.251.93.126]) by smtp.gmail.com with ESMTPSA id n11sm6523028qkk.93.2021.08.22.04.19.59 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 22 Aug 2021 04:20:00 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: bug#50098: Configuring --with-libsigsegv results in link error From: Evan Miller In-Reply-To: <4505246.iIbC2pHGDl@omega> Date: Sun, 22 Aug 2021 07:19:59 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: References: <5C76D78E-EB34-4EFD-96F3-64CF38AC63B3@gmail.com> <6bc68dea-355f-2f9a-0ce8-d062bea66973@cs.ucla.edu> <5179F924-B543-4762-B231-D284551DC89F@gmail.com> <4505246.iIbC2pHGDl@omega> To: Bruno Haible X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 50098 Cc: Paul Eggert , bug-gnulib@gnu.org, 50098@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > On Aug 21, 2021, at 19:46, Bruno Haible wrote: >=20 > Run these commands: >=20 > ./gnulib-tool --create-testdir --dir=3Dtestdir1 --single-configure = c-stack > cd testdir1 > ./configure > make > make check >=20 > If they fail, then you do need the libsigsegv library. FWIW the first step fails produces a warning: executing aclocal -I glm4 executing autoconf executing autoheader executing touch config.h.in executing automake --add-missing --copy configure.ac:8: installing 'build-aux/compile' configure.ac:4: installing 'build-aux/install-sh' configure.ac:4: installing 'build-aux/missing' gllib/Makefile.am: installing 'build-aux/depcomp' parallel-tests: installing 'build-aux/test-driver' patching file build-aux/test-driver Hunk #1 FAILED at 109. 1 out of 1 hunk FAILED -- saving rejects to file = build-aux/test-driver.rej patching file build-aux/test-driver Powering through, "make" emits an undeclared function warning: gcc-mp-7 -DHAVE_CONFIG_H -I. -I.. -DGNULIB_STRICT_CHECKING=3D1 -g -O2 = -MT c-stack.o -MD -MP -MF .deps/c-stack.Tpo -c -o c-stack.o c-stack.c c-stack.c: In function 'die': c-stack.c:106:17: warning: implicit declaration of function 'mempcpy' = [-Wimplicit-function-declaration] char *p =3D mempcpy (buf, progname, prognamelen); ^~~~~~~ c-stack.c:106:17: warning: incompatible implicit declaration of built-in = function 'mempcpy' Then ends with an unresolved symbol error: gcc-mp-7 -Wno-error -g -O2 -o test-c-stack test-c-stack.o libtests.a = ../gllib/libgnu.a libtests.a ../gllib/libgnu.a libtests.a Undefined symbols: "_mempcpy", referenced from: _die in libgnu.a(c-stack.o) _die in libgnu.a(c-stack.o) ld: symbol(s) not found I will note that "sigaltstack" is available on 10.4 so perhaps there is = hope once the undeclared function is sorted out. Evan From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 22 16:43:04 2021 Received: (at 50098) by debbugs.gnu.org; 22 Aug 2021 20:43:04 +0000 Received: from localhost ([127.0.0.1]:39870 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mHuJ1-0003of-QF for submit@debbugs.gnu.org; Sun, 22 Aug 2021 16:43:04 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:35182) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mHuIx-0003oO-0V for 50098@debbugs.gnu.org; Sun, 22 Aug 2021 16:42:59 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 8ACC1160078; Sun, 22 Aug 2021 13:42:49 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 0oFoiMWAB47A; Sun, 22 Aug 2021 13:42:44 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 93E2816007D; Sun, 22 Aug 2021 13:42:44 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 0viQZRupha-k; Sun, 22 Aug 2021 13:42:44 -0700 (PDT) Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 6060E160078; Sun, 22 Aug 2021 13:42:44 -0700 (PDT) Subject: Re: bug#50098: Configuring --with-libsigsegv results in link error To: Evan Miller References: <5C76D78E-EB34-4EFD-96F3-64CF38AC63B3@gmail.com> <6bc68dea-355f-2f9a-0ce8-d062bea66973@cs.ucla.edu> <5179F924-B543-4762-B231-D284551DC89F@gmail.com> <4505246.iIbC2pHGDl@omega> From: Paul Eggert Organization: UCLA Computer Science Department Message-ID: <6be2a3d4-daa8-84c0-71d7-417c4310b685@cs.ucla.edu> Date: Sun, 22 Aug 2021 13:42:44 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/mixed; boundary="------------FBBEF5177C29A4E799BC7576" Content-Language: en-US X-Spam-Score: -2.4 (--) X-Debbugs-Envelope-To: 50098 Cc: Bruno Haible , bug-gnulib@gnu.org, 50098@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.4 (---) This is a multi-part message in MIME format. --------------FBBEF5177C29A4E799BC7576 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 8/22/21 4:19 AM, Evan Miller wrote: > c-stack.c: In function 'die': > c-stack.c:106:17: warning: implicit declaration of function 'mempcpy' [-Wimplicit-function-declaration] > char *p = mempcpy (buf, progname, prognamelen); Evidently some dependencies were missing from the c-stack module. I installed the attached patch. Please try the same set of commands again. --------------FBBEF5177C29A4E799BC7576 Content-Type: text/x-patch; charset=UTF-8; name="0001-c-stack-depend-on-inttypes-mempcpy.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0001-c-stack-depend-on-inttypes-mempcpy.patch" >From 7a2a0d40e713c5cfd0b77abd3bdd897d9e72fa26 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 22 Aug 2021 13:39:24 -0700 Subject: [PATCH] c-stack: depend on inttypes, mempcpy * modules/c-stack (Depends-on): Add inttypes, mempcpy. mempcpy problem reported by Evan Miller in: https://debbugs.gnu.org/50098#31 --- ChangeLog | 7 +++++++ modules/c-stack | 2 ++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 196704808..a6e8d6e99 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2021-08-22 Paul Eggert + + c-stack: depend on inttypes, mempcpy + * modules/c-stack (Depends-on): Add inttypes, mempcpy. + mempcpy problem reported by Evan Miller in: + https://debbugs.gnu.org/50098#31 + 2021-08-22 Bruno Haible mountlist: Use recommended syntax for _GL_UNUSED_LABEL. diff --git a/modules/c-stack b/modules/c-stack index 32a412041..812e3efca 100644 --- a/modules/c-stack +++ b/modules/c-stack @@ -14,6 +14,8 @@ getprogname gettext-h idx ignore-value +inttypes +mempcpy raise sigsegv stddef -- 2.30.2 --------------FBBEF5177C29A4E799BC7576-- From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 22 20:55:19 2021 Received: (at 50098) by debbugs.gnu.org; 23 Aug 2021 00:55:19 +0000 Received: from localhost ([127.0.0.1]:40029 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mHyF9-0003gw-L6 for submit@debbugs.gnu.org; Sun, 22 Aug 2021 20:55:19 -0400 Received: from mail-qv1-f51.google.com ([209.85.219.51]:39696) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mHyF4-0003ga-RS for 50098@debbugs.gnu.org; Sun, 22 Aug 2021 20:55:14 -0400 Received: by mail-qv1-f51.google.com with SMTP id dt3so8822084qvb.6 for <50098@debbugs.gnu.org>; Sun, 22 Aug 2021 17:55:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=/6b13Yqf1V9rQF8WnlWsEaE1FDzFch3zbZuzEY5JbsY=; b=Hq9A8pDufTPywPo0dwVkZ9f7v/UpjCVu+I3TkiOQB49Vgsvw5GaEa9KwibYbrhBxnu wWyFD0PgTT85VMMxKTaxDN6oe45MxhAYcgHNsvMwrdPF2q/EpPk4nvrri8zM8cTKydwM OvQ8eQu6Ctyvr3METYWXd9X5AEzWbkv15VyUg7GIEn1lIxfARFijhH12lZ65cfr6ggyi o8yChTph5hr1S4ZWiG1f0N0FJYv3UQazONqpYglydeEoJS0Jcpv0XU+OTEfArDWcIfdU lo72tUeVgbYJwOOV8ELOPttfK16BImijRGzOktXU7iC0PqK3shx1b8UhFSdkW27a7V2W GnRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=/6b13Yqf1V9rQF8WnlWsEaE1FDzFch3zbZuzEY5JbsY=; b=YglL12XFxywOWDoISCzVYdP4L7v8tMXrlHYnt6bzKY44wT1pRcfnqBr/z6iLnQlC7q UXqkic/PyM3hYoL8MbcwTDdlcrXyi2YAPw30rEM8c2+WTSyMvb913KZ81sQQRDNa5JzB BmWEGksdq5VLL0rea/5EGQpqNiHjCFKQt5iKr2960WoEMZA934+ZcO2h5EOm46bVY2rZ MO4wBhYq8NnqiqO6dXJXW5cmqXuf0ZdyGVSBFswx5+t7V/3LsA4KETLheQg8EYzkSYFX NoBevMxwCRUFZFE8dFZpExEzNuftHERi40vZtmqs39n81Fc7C2eafywpHdT84aArr+0C 9K0w== X-Gm-Message-State: AOAM533P9KSsv/8dvTQcX3/XmkaZlichc7N3bQbwHm+Ho6H4WkOsSuFW ZwnfwMkNCW347uyy01lR3PU= X-Google-Smtp-Source: ABdhPJwBeJwhGmHEfwIS4Qy3gMbhdK8dh0pfm0YL81fJncdlSSvR/fUig2DFux+UOlEvM2keXlrxIg== X-Received: by 2002:a0c:ecc4:: with SMTP id o4mr30621951qvq.18.1629680105159; Sun, 22 Aug 2021 17:55:05 -0700 (PDT) Received: from smtpclient.apple (host-23-251-93-126.MIDOLT6.epbfi.com. [23.251.93.126]) by smtp.gmail.com with ESMTPSA id c20sm7430837qkk.121.2021.08.22.17.55.04 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 22 Aug 2021 17:55:04 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: bug#50098: Configuring --with-libsigsegv results in link error From: Evan Miller In-Reply-To: <6be2a3d4-daa8-84c0-71d7-417c4310b685@cs.ucla.edu> Date: Sun, 22 Aug 2021 20:55:03 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: <7127A319-AFA1-425B-9245-989AD08B97A9@gmail.com> References: <5C76D78E-EB34-4EFD-96F3-64CF38AC63B3@gmail.com> <6bc68dea-355f-2f9a-0ce8-d062bea66973@cs.ucla.edu> <5179F924-B543-4762-B231-D284551DC89F@gmail.com> <4505246.iIbC2pHGDl@omega> <6be2a3d4-daa8-84c0-71d7-417c4310b685@cs.ucla.edu> To: Paul Eggert X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 50098 Cc: Bruno Haible , Gnulib bugs , 50098@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > On Aug 22, 2021, at 16:42, Paul Eggert wrote: >=20 > On 8/22/21 4:19 AM, Evan Miller wrote: >> c-stack.c: In function 'die': >> c-stack.c:106:17: warning: implicit declaration of function 'mempcpy' = [-Wimplicit-function-declaration] >> char *p =3D mempcpy (buf, progname, prognamelen); >=20 > Evidently some dependencies were missing from the c-stack module. I = installed the attached patch. Please try the same set of commands again. > <0001-c-stack-depend-on-inttypes-mempcpy.patch> After updating gnulib master, the "make" step now ends with the error: gcc -std=3Dgnu99 -DHAVE_CONFIG_H -DEXEEXT=3D\"\" -I. -I.. = -DGNULIB_STRICT_CHECKING=3D1 -DIN_GNULIB_TESTS=3D1 -I. -I. -I.. -I./.. = -I../gllib -I./../gllib -Wno-error -g -O2 -MT test-pthread.o -MD -MP = -MF $depbase.Tpo -c -o test-pthread.o test-pthread.c &&\ mv -f $depbase.Tpo $depbase.Po test-pthread.c:35: error: =E2=80=98PTHREAD_RWLOCK_INITIALIZER=E2=80=99 = undeclared here (not in a function) make[4]: *** [test-pthread.o] Error 1 Same or similar results with GCC4 and GCC7.= From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 23 08:39:42 2021 Received: (at 50098) by debbugs.gnu.org; 23 Aug 2021 12:39:42 +0000 Received: from localhost ([127.0.0.1]:40697 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mI9Es-0006lv-HM for submit@debbugs.gnu.org; Mon, 23 Aug 2021 08:39:42 -0400 Received: from mail-qk1-f169.google.com ([209.85.222.169]:39818) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mI9Eq-0006li-81 for 50098@debbugs.gnu.org; Mon, 23 Aug 2021 08:39:40 -0400 Received: by mail-qk1-f169.google.com with SMTP id y144so18951746qkb.6 for <50098@debbugs.gnu.org>; Mon, 23 Aug 2021 05:39:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=t2ezhPog3Qt77AsZmwannVmtahxrLlIc0Q5R1MW3OOs=; b=K1mlDOCGeUoYHR4+yylIMp9zTRH7sCMB7ZSx6/0pMvWQoyWOU17sWYaEMn3wCGWnK7 uZzIq909n9o/9R4UHz891wa5cd4UX557RMfT49RIcrpuoNWkx5PgfVptOBnoI/PYESwT SWTZMAeSGDOrE15GkP7PJ7LLWEIQc2tyCp26czTdluNL2ANekbegXGquE2TA738u3h0j jV1vBfh8XiJc3s9F7TK7xWo55+6QKLrT7O7q2irjW+6t7SBvFSdR6PxnxXQ4gjVMLNOj nojGiTptis4QhY9zQjQt0UsptCq31idaCdGkvc+3efRF3VvYJqhBsBPQVeLSzvRI04EJ aYOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=t2ezhPog3Qt77AsZmwannVmtahxrLlIc0Q5R1MW3OOs=; b=DUeiWwHxEtfaZv7XUUIdnfhdp/TnYDcLish85pB2EnGTAErY7USOCklhL0D6Z0I9W/ Y8pXXw5S3BFrNeLgLJpHR9uFaErihide2+2R0CpA+qVwgJZaIJLx0O8eiiTW80k9/HVD vcbbDEpGbBNciW8hJKPLtw2RNjUnVWgtlSfIxFTmIYCu1RPoNUhC4JkXXWF3+glndNkL LHosnA+41eVw3632BMnp1uVZmlJmqVAu1qCtkz61Im/35/+yBtUH5yRV6P7iAb0ZPtWL onTDZt3EJ8tc59Lgi/yQC1D6LHzj+iV22vIvoBtaeAXa9YWsbWbQ3LgwgQ7GaeAruL++ lSvw== X-Gm-Message-State: AOAM533grgUsy3fF0QVT45hFgHivRk1hVU87ZMHfcnHVhrp7f3F5jcAX fHcL0XsxFtgmcDFtrILCFLc= X-Google-Smtp-Source: ABdhPJzvmfTO+pN+Y9lq1znDB9IkBuKKblAu6TS1/5eMdejIvQy7lx3V9V287qfEsyjZBzsYjB27RQ== X-Received: by 2002:a37:6103:: with SMTP id v3mr20898394qkb.12.1629722374601; Mon, 23 Aug 2021 05:39:34 -0700 (PDT) Received: from smtpclient.apple (host-23-251-93-126.MIDOLT6.epbfi.com. [23.251.93.126]) by smtp.gmail.com with ESMTPSA id i27sm2101134qkl.111.2021.08.23.05.39.33 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Aug 2021 05:39:33 -0700 (PDT) From: Evan Miller Message-Id: <12E4ED55-A0E1-488F-A6CA-6002BEBD2D13@gmail.com> Content-Type: multipart/mixed; boundary="Apple-Mail=_87795B2A-C832-4E37-A9F0-A2171C85B84A" Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: bug#50098: Configuring --with-libsigsegv results in link error Date: Mon, 23 Aug 2021 08:39:33 -0400 In-Reply-To: <5179F924-B543-4762-B231-D284551DC89F@gmail.com> To: Paul Eggert References: <5C76D78E-EB34-4EFD-96F3-64CF38AC63B3@gmail.com> <6b061211-282c-5d79-2dac-51af8a790922@cs.ucla.edu> <6bc68dea-355f-2f9a-0ce8-d062bea66973@cs.ucla.edu> <5179F924-B543-4762-B231-D284551DC89F@gmail.com> X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 50098 Cc: Gnulib bugs , 50098@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --Apple-Mail=_87795B2A-C832-4E37-A9F0-A2171C85B84A Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On Aug 17, 2021, at 22:04, Evan Miller wrote: >=20 >=20 >> On Aug 17, 2021, at 18:53, Paul Eggert wrote: >>=20 >> On 8/17/21 1:02 PM, Evan Miller wrote: >>=20 >>> Thanks for the patch. At present, the non-libsigsegv implementation = does not compile on this machine for reasons described in >>> https://trac.macports.org/ticket/63381 >>=20 >> Oh, I see you're building for an old system (Mac OSX 10.4.11, circa = 2007) that Apple itself is no longer supporting. Although we don't = normally worry about such platforms, perhaps you can come up with a = patch that clearly won't break mainline platforms. >=20 > A simple regex substitution (removing double underscores from the = struct member names on the affected platform) seems to do the trick in = the downstream package. If I have the time and cleverness I'll see about = a proper patch. Attached is a proposed patch to fix the compilation issue, designed by = comparing the 10.4 and 10.5 SDKs. It relies on an implementation detail, = but I think it's safe to say that the PowerPC headers are frozen at this = point. I have built it on 10.4. I'll try to find some volunteers on the = MacPorts side to test on 10.5. --Apple-Mail=_87795B2A-C832-4E37-A9F0-A2171C85B84A Content-Disposition: attachment; filename=gnulib-tiger-mcontext.diff Content-Type: application/octet-stream; x-unix-mode=0644; name="gnulib-tiger-mcontext.diff" Content-Transfer-Encoding: 7bit diff --git a/lib/sigsegv.c b/lib/sigsegv.c index 998c82768..0ddaa94a3 100644 --- a/lib/sigsegv.c +++ b/lib/sigsegv.c @@ -588,7 +588,12 @@ int libsigsegv_version = LIBSIGSEGV_VERSION; - 'ucontext_t' and 'struct __darwin_ucontext' in , - 'struct __darwin_mcontext' in , and - 'struct __darwin_ppc_thread_state' in . */ +#if !defined(_STRUCT_MCONTEXT) && !defined(_STRUCT_MCONTEXT32) && !defined(_STRUCT_MCONTEXT64) +/* Mac OS X 10.4 and earlier omit the underscores */ +# define SIGSEGV_FAULT_STACKPOINTER ((ucontext_t *) ucp)->uc_mcontext->ss.r1 +#else # define SIGSEGV_FAULT_STACKPOINTER ((ucontext_t *) ucp)->uc_mcontext->__ss.__r1 +#endif # endif --Apple-Mail=_87795B2A-C832-4E37-A9F0-A2171C85B84A-- From unknown Tue Jun 17 01:42:53 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, 21 Sep 2021 11:24:06 +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