From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Didier Godefroy Newsgroups: gmane.lisp.guile.user Subject: Re: Building guile 1.8.6 on Tru64 5.1b Date: Tue, 21 Apr 2009 20:47:52 +0200 Message-ID: References: <87vdoyca4d.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1240339761 927 80.91.229.12 (21 Apr 2009 18:49:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 21 Apr 2009 18:49:21 +0000 (UTC) Cc: guile-user@gnu.org To: Ludovic =?ISO-8859-1?B?Q291cnTocw==?= Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Apr 21 20:50:40 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 1LwL3E-0005Il-M9 for guile-user@m.gmane.org; Tue, 21 Apr 2009 20:50:37 +0200 Original-Received: from localhost ([127.0.0.1]:36237 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LwL1k-0006r1-KI for guile-user@m.gmane.org; Tue, 21 Apr 2009 14:49:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LwL0w-0006Uz-Vl for guile-user@gnu.org; Tue, 21 Apr 2009 14:48:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LwL0s-0006R3-9P for guile-user@gnu.org; Tue, 21 Apr 2009 14:48:14 -0400 Original-Received: from [199.232.76.173] (port=39484 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LwL0s-0006Qv-4x for guile-user@gnu.org; Tue, 21 Apr 2009 14:48:10 -0400 Original-Received: from orbhost.com ([207.218.123.239]:4528 helo=orbhost.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LwL0l-0003Z6-Tg; Tue, 21 Apr 2009 14:48:04 -0400 Original-Received: from [192.168.1.20] (73.37.195-77.rev.gaoland.net [77.195.37.73]) by orbhost.net (8.13.7/8.13.7) with ESMTP id n3LIlv8v299546; Tue, 21 Apr 2009 14:47:59 -0400 (EDT) User-Agent: Microsoft-Entourage/12.17.0.090302 Thread-Topic: Building guile 1.8.6 on Tru64 5.1b Thread-Index: AcnCsay/j4TKel771U+Ec1xq31j3Jw== In-Reply-To: <87vdoyca4d.fsf@gnu.org> 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:7240 Archived-At: Ok, the patch fixes that problem and there is another popping up a bit further now: /bin/bash ../libtool --tag=CC --mode=compile gcc -pthread -DHAVE_CONFIG_H -I.. -I.. -I.. -I/opt/TWWfsw/libgmp41/include -I/usr/local/readline/include -I/usr/local/include -I/opt/TWWfsw/libgmp41/include -I/usr/local/readline/include -I/usr/local/include -D_REENTRANT -O2 -g -Wall -Wmissing-prototypes -Werror -MT libguile_la-numbers.lo -MD -MP -MF .deps/libguile_la-numbers.Tpo -c -o libguile_la-numbers.lo `test -f 'numbers.c' || echo './'`numbers.c libtool: compile: gcc -pthread -DHAVE_CONFIG_H -I.. -I.. -I.. -I/opt/TWWfsw/libgmp41/include -I/usr/local/readline/include -I/usr/local/include -I/opt/TWWfsw/libgmp41/include -I/usr/local/readline/include -I/usr/local/include -D_REENTRANT -O2 -g -Wall -Wmissing-prototypes -Werror -MT libguile_la-numbers.lo -MD -MP -MF .deps/libguile_la-numbers.Tpo -c numbers.c -DPIC -o .libs/libguile_la-numbers.o cc1: warnings being treated as errors numbers.c: In function 'scm_is_unsigned_integer': numbers.c:5756: warning: control may reach end of non-void function '__gmpz_get_ui' being inlined gmake[3]: *** [libguile_la-numbers.lo] Error 1 > The attached patch is less radical than the Cairo one. Can you try it > and report back? > > 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); -- Didier Godefroy mailto:dg@ulysium.net