unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Steve Downey <sdowney@gmail.com>
Cc: 55294@debbugs.gnu.org
Subject: bug#55294: Configure failure on Solaris 11.4
Date: Sat, 07 May 2022 08:40:15 +0300	[thread overview]
Message-ID: <83sfplzyrk.fsf@gnu.org> (raw)
In-Reply-To: <CAJEGDKpQN-88CqmUaawr8=a+y+C9jYPUxWY2193WiStwr6Cr3w@mail.gmail.com> (message from Steve Downey on Fri, 6 May 2022 15:58:39 -0400)

> From: Steve Downey <sdowney@gmail.com>
> Date: Fri, 6 May 2022 15:58:39 -0400
> 
> On solaris 11.4, the system libc has a definition of sqrt leading configure to believe that linking libm is
> unnecessary.

Can you tell the details, please?  What is that definition of sqrt,
and what do you see in config.log when it is tested?

> Applying a patch locally to change
> AC_SEARCH_LIBS([sqrt], [m]) to 
> AC_SEARCH_LIBS([atan], [m])
> fixes the problem. 
> 
> atan was picked at random from the symbols that couldn't be found in building temacs. 

This is fragile, because we could have the same problem with atan, in
the future or on some other platform, if not here and now.  I think we
should understand better why using sqrt leads to the wrong conclusion,
and modify configure to avoid that.

Thanks.





  reply	other threads:[~2022-05-07  5:40 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-06 19:58 bug#55294: Configure failure on Solaris 11.4 Steve Downey
2022-05-07  5:40 ` Eli Zaretskii [this message]
2022-05-09 19:07 ` Paul Eggert
2022-05-09 19:21   ` Eli Zaretskii
2022-05-09 19:34     ` Paul Eggert
2022-05-10  0:15   ` Steve Downey
2022-05-10  2:35     ` Eli Zaretskii
2022-05-10  4:46       ` Steve Downey
2022-05-10 12:07         ` Eli Zaretskii
2022-05-10 21:49           ` Paul Eggert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83sfplzyrk.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=55294@debbugs.gnu.org \
    --cc=sdowney@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).