From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=) Newsgroups: gmane.lisp.guile.user Subject: Re: Building guile 1.8.6 on Tru64 5.1b Date: Tue, 21 Apr 2009 17:14:10 +0200 Message-ID: <87vdoyca4d.fsf@gnu.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1240326906 17353 80.91.229.12 (21 Apr 2009 15:15:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 21 Apr 2009 15:15:06 +0000 (UTC) Cc: guile-user@gnu.org To: Didier Godefroy Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Apr 21 17:16:25 2009 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LwHhP-0002bD-7r for guile-user@m.gmane.org; Tue, 21 Apr 2009 17:15:51 +0200 Original-Received: from localhost ([127.0.0.1]:56241 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LwHg0-0006HS-0f for guile-user@m.gmane.org; Tue, 21 Apr 2009 11:14:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LwHfw-0006HH-8e for guile-user@gnu.org; Tue, 21 Apr 2009 11:14:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LwHfq-0006Go-TQ for guile-user@gnu.org; Tue, 21 Apr 2009 11:14:19 -0400 Original-Received: from [199.232.76.173] (port=46739 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LwHfq-0006Gl-PI for guile-user@gnu.org; Tue, 21 Apr 2009 11:14:14 -0400 Original-Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:31169) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.60) (envelope-from ) id 1LwHfq-0003A4-Dm for guile-user@gnu.org; Tue, 21 Apr 2009 11:14:14 -0400 X-IronPort-AV: E=Sophos;i="4.40,224,1238968800"; d="scan'208";a="26584923" Original-Received: from unknown (HELO nixey) ([193.50.110.227]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES128-SHA; 21 Apr 2009 17:14:12 +0200 X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 2 =?iso-8859-1?Q?Flor=E9al?= an 217 de la =?iso-8859-1?Q?R=E9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 821D 815D 902A 7EAB 5CEE D120 7FBA 3D4F EB1F 5364 X-OS: i686-pc-linux-gnu In-Reply-To: (Didier Godefroy's message of "Tue, 21 Apr 2009 15:59:20 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.90 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:7236 Archived-At: --=-=-= Hello, Didier Godefroy 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'. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename*=us-ascii''%2c%2ctru64-sincos.diff Content-Description: The patch 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); --=-=-=--