From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Steve Downey Newsgroups: gmane.emacs.bugs Subject: bug#55294: Configure failure on Solaris 11.4 Date: Tue, 10 May 2022 00:46:15 -0400 Message-ID: References: <00636951-94bc-f63e-1b7f-734647b2d992@cs.ucla.edu> <83a6bqt8qn.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000e61e6905dea10107" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30751"; mail-complaints-to="usenet@ciao.gmane.io" Cc: eggert@cs.ucla.edu, 55294@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 10 06:47:10 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1noHmA-0007mM-4X for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 10 May 2022 06:47:10 +0200 Original-Received: from localhost ([::1]:40756 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1noHm8-0006mp-OV for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 10 May 2022 00:47:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55856) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1noHm2-0006mf-Ha for bug-gnu-emacs@gnu.org; Tue, 10 May 2022 00:47:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37914) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1noHm2-0001Eh-7z for bug-gnu-emacs@gnu.org; Tue, 10 May 2022 00:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1noHm2-0001xX-2x for bug-gnu-emacs@gnu.org; Tue, 10 May 2022 00:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Steve Downey Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 10 May 2022 04:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55294 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 55294-submit@debbugs.gnu.org id=B55294.16521579957484 (code B ref 55294); Tue, 10 May 2022 04:47:02 +0000 Original-Received: (at 55294) by debbugs.gnu.org; 10 May 2022 04:46:35 +0000 Original-Received: from localhost ([127.0.0.1]:60044 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1noHlb-0001wd-1J for submit@debbugs.gnu.org; Tue, 10 May 2022 00:46:35 -0400 Original-Received: from mail-lf1-f44.google.com ([209.85.167.44]:33293) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1noHlY-0001wO-Ox for 55294@debbugs.gnu.org; Tue, 10 May 2022 00:46:33 -0400 Original-Received: by mail-lf1-f44.google.com with SMTP id bu29so27280029lfb.0 for <55294@debbugs.gnu.org>; Mon, 09 May 2022 21:46:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=aT4+AyqXrrRdek1E+Wo1iliTvxuPTNvMYQcjG79STd4=; b=K4nZpEMLQg3HQIcBeOqYY/HRX+kCCWAuluNlo0NrUOVt1wzmOhW6mF1PPldwIR+fym TokntELkP/U8aF4jry4lRyWLTQRC1KIi6flV/oJggLse92d7ZRlvp9MQ52iPB5+QrPSB 5kghJfJPTJvlk+CgdzpHZ5TbS3ACQusVUS8dmGDWYLPChxobTj2dKVGISWTz7BfNNbur uQlbBkmzXRKivkzbxYppUkAzVfWMjOKrQCr45CG4q/Qp1OOAIdh9sVpALFlidJCH2E/g 90akspGpl9KkiwyO79ifiobMzFmA8PAWW4z0UPTVoZoOgCwhr9wr3vWiv4CmTdjwq9Z5 B17Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=aT4+AyqXrrRdek1E+Wo1iliTvxuPTNvMYQcjG79STd4=; b=QcZwQu5UykS/qCE7QwamFbyBl9ZqzaoNiwZ35D91EFRpdhbzJsnh2G10AJ8MCit3F0 EaFC8dC1ZZmYRtLwVFiR/lKzAxcqrQm7Xinbe6b6JRwkpRY1Z73SFxmLDRY8Guza2Ewf HGjGoxZ3juYYQy1+bhgee110CRPklM4dmgr+/dbRrL4A6KR1wDyDr9hm9HWlG670hrdF cElAWpIJyZdZs/1DdkvtE9ZJsEw9++9NOGPMmEzdbwJlfCzll6JHxsbrsyHJM4p5o5Ch R8usSJtT3eUzI2NbylA8o+nMTYkg/SyPCvuAwXTpvospTShjnbz+LttcRqcewy3GsiEE wyMg== X-Gm-Message-State: AOAM533LHhd3sY4lj+GH0HKGN/EMXzZ+QZUJNdQKf03HyoclDsNDvAU1 vJzART17nHmGJs69+NbOE/LtBG3WTAg1rjg4NHI= X-Google-Smtp-Source: ABdhPJzJCsFEG9qVJJVulLxAqwmPV3ktTBI/VnmmCdBiAIu1Xvn7J4NAMFMPSeFegt8I1juA2Qfp1ItKtBYJaY9H1Xs= X-Received: by 2002:a05:6512:238a:b0:473:c7e3:b5e3 with SMTP id c10-20020a056512238a00b00473c7e3b5e3mr15782907lfv.127.1652157986510; Mon, 09 May 2022 21:46:26 -0700 (PDT) In-Reply-To: <83a6bqt8qn.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:231813 Archived-At: --000000000000e61e6905dea10107 Content-Type: text/plain; charset="UTF-8" On Mon, May 9, 2022 at 10:35 PM Eli Zaretskii wrote: > > Cc: 55294@debbugs.gnu.org > > From: Steve Downey > > Date: Mon, 9 May 2022 20:15:56 -0400 > > > > In 11.4, sqrt is defined in libc.so as an absolute symbol, so the test > for if -lm is necessary succeeds without > > it. I haven't disassembled the new libc, but I suspect that you're right > and they have a sqrt that is fast enough > > either depends on a sqrt instruction or is otherwise "simple" for some > value of simple. > > So you are saying that sqrt was actually in libc, but the rest of math > functions are in libm, is that right? > > Exactly. I also suspect that this will not be the only package broken, because lots of people cargo cult this sort of autoconf check from GNU packages. At least to the extent that people still use autotools. If so, perhaps to make this test more future-proof, we should try > several functions, not just one? > And gate linking libm on any of them being unavailable. But writing that would mean having to resuscitate my M4 knowledge. --000000000000e61e6905dea10107 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

On Mon, May 9, 2022 at 10:35 PM Eli Zaret= skii <eliz@gnu.org> wrote:
> Cc: 55294@debbugs.gnu.org
> From: Steve Downey <sdowney@gmail.com>
> Date: Mon, 9 May 2022 20:15:56 -0400
>
> In 11.4, sqrt is defined in libc.so as an absolute symbol, so the test= for if -lm is necessary succeeds without
> it. I haven't disassembled the new libc, but I suspect that you= 9;re right and they have a sqrt that is fast enough
> either depends on a sqrt instruction or is otherwise "simple"= ; for some value of simple.

So you are saying that sqrt was actually in libc, but the rest of math
functions are in libm, is that right?

Exactly.

I also suspect that= this will not be the only package broken, because lots of people cargo cul= t this sort of autoconf check from GNU packages. At least to the extent tha= t people still use autotools.=C2=A0

If so, perhaps to make this test more future-proof, we should try
several functions, not just one?

And ga= te linking libm on any of them being unavailable. But writing that would me= an having to resuscitate my M4 knowledge.=C2=A0
=C2=A0
--000000000000e61e6905dea10107--