unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Didier Godefroy <ldg@ulysium.net>
Cc: guile-user@gnu.org
Subject: Re: Building guile 1.8.6 on Tru64 5.1b
Date: Tue, 21 Apr 2009 17:14:10 +0200	[thread overview]
Message-ID: <87vdoyca4d.fsf@gnu.org> (raw)
In-Reply-To: <C6139DD8.2801B%ldg@ulysium.net> (Didier Godefroy's message of "Tue, 21 Apr 2009 15:59:20 +0200")

[-- Attachment #1: Type: text/plain, Size: 496 bytes --]

Hello,

Didier Godefroy <ldg@ulysium.net> writes:

> numbers.c: In function 'scm_c_make_polar':
> numbers.c:5356: warning: implicit declaration of function 'sincos'
> numbers.c:5356: warning: incompatible implicit declaration of built-in
> function 'sincos'

I was about to suggest the same as Linas did, but a quick search led to
this:

  https://bugs.freedesktop.org/show_bug.cgi?id=4401

The attached patch is less radical than the Cairo one.  Can you try it
and report back?

Thanks,
Ludo'.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: The patch --]
[-- Type: text/x-patch, Size: 996 bytes --]

diff --git a/libguile/numbers.c b/libguile/numbers.c
index 52dfb73..37435b5 100644
--- a/libguile/numbers.c
+++ b/libguile/numbers.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004,2005, 2006, 2007, 2008 Free Software Foundation, Inc.
+/* Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004,2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  *
  * Portions Copyright 1990, 1991, 1992, 1993 by AT&T Bell Laboratories
  * and Bellcore.  See scm_divide.
@@ -5352,7 +5352,12 @@ SCM
 scm_c_make_polar (double mag, double ang)
 {
   double s, c;
-#if HAVE_SINCOS
+
+  /* The sincos(3) function is undocumented an broken on Tru64.  Thus we only
+     use it on Glibc-based systems that have it (it's a GNU extension).  See
+     http://lists.gnu.org/archive/html/guile-user/2009-04/msg00033.html for
+     details.  */
+#if (defined HAVE_SINCOS) && (defined __GLIBC__) && (defined _GNU_SOURCE)
   sincos (ang, &s, &c);
 #else
   s = sin (ang);

  parent reply	other threads:[~2009-04-21 15:14 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-18 20:23 Building guile 1.8.6 on Tru64 5.1b Didier Godefroy
2009-04-18 22:43 ` Ludovic Courtès
2009-04-19  9:04   ` Didier Godefroy
2009-04-21 13:59   ` Didier Godefroy
2009-04-21 14:10     ` Linas Vepstas
2009-04-21 15:19       ` Ludovic Courtès
2009-04-21 18:35       ` Didier Godefroy
2009-04-21 19:00         ` Ludovic Courtès
2009-04-21 19:37           ` Didier Godefroy
2009-04-21 20:40             ` Ludovic Courtès
2009-04-21 15:14     ` Ludovic Courtès [this message]
2009-04-21 18:25       ` Didier Godefroy
2009-04-21 18:47       ` Didier Godefroy
2009-04-21 19:07         ` Ludovic Courtès
2009-04-21 19:46           ` Didier Godefroy
2009-04-21 20:41             ` Ludovic Courtès
2009-04-21 20:53               ` Didier Godefroy
2009-04-21 22:55                 ` Ludovic Courtès
2009-04-22  8:11                   ` Didier Godefroy
2009-04-22  8:23                   ` Didier Godefroy
2009-04-22  9:27                     ` Ludovic Courtès
2009-04-22 14:39                       ` Didier Godefroy
2009-04-23 22:49                         ` Ludovic Courtès
2009-04-25 12:29                           ` Didier Godefroy
2009-04-25 13:24                             ` Mike Gran
2009-04-25 14:19                               ` Didier Godefroy
2009-04-21 20:25           ` Didier Godefroy
2009-04-21 20:50             ` Ludovic Courtès
2009-04-21 20:58               ` Didier Godefroy

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/guile/

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

  git send-email \
    --in-reply-to=87vdoyca4d.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guile-user@gnu.org \
    --cc=ldg@ulysium.net \
    /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.
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).