From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Hugh Sasse Newsgroups: gmane.lisp.guile.user Subject: Re: Gmp now working, but number.c:147 isinf declared implicitly. Date: Fri, 12 Jan 2007 17:37:33 +0000 (WET) Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: sea.gmane.org 1168623470 32147 80.91.229.12 (12 Jan 2007 17:37:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 12 Jan 2007 17:37:50 +0000 (UTC) Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Fri Jan 12 18:37:48 2007 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 1H5QLa-00048y-Ba for guile-user@m.gmane.org; Fri, 12 Jan 2007 18:37:46 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H5QLa-00084V-6R for guile-user@m.gmane.org; Fri, 12 Jan 2007 12:37:46 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H5QLT-00082k-Af for guile-user@gnu.org; Fri, 12 Jan 2007 12:37:39 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H5QLQ-00080c-7r for guile-user@gnu.org; Fri, 12 Jan 2007 12:37:38 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H5QLP-00080S-Sx for guile-user@gnu.org; Fri, 12 Jan 2007 12:37:35 -0500 Original-Received: from [146.227.160.29] (helo=mail2.dmu.ac.uk) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H5QLP-0002tz-3g for guile-user@gnu.org; Fri, 12 Jan 2007 12:37:35 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by mail2.dmu.ac.uk (Postfix) with ESMTP id 8698F7DC9C8 for ; Fri, 12 Jan 2007 17:37:34 +0000 (GMT) Original-Received: from europa.cse.dmu.ac.uk (europa.cse.dmu.ac.uk [146.227.57.47]) by mail2.dmu.ac.uk (Postfix) with ESMTP id 448DE7DC968 for ; Fri, 12 Jan 2007 17:37:34 +0000 (GMT) Original-Received: from brains (brains.eng.cse.dmu.ac.uk [146.227.22.1]) by europa.cse.dmu.ac.uk (8.13.6/8.13.6) with ESMTP id l0CHbYbF027014 for ; Fri, 12 Jan 2007 17:37:34 GMT Original-Received: from brains.eng.cse.dmu.ac.uk ([146.227.22.1] helo=brains) by brains with esmtp (Exim 4.44) id 1H5QLO-0002hi-1N for guile-user@gnu.org; Fri, 12 Jan 2007 17:37:34 +0000 X-X-Sender: hgs@brains.eng.cse.dmu.ac.uk Original-To: guile-user@gnu.org In-Reply-To: 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:5764 Archived-At: On Fri, 5 Jan 2007, Hugh Sasse wrote: > I am now getting : > > gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -D_REENTRANT -pthreads -g -O2 -Wall -Wmissing-prototypes -Werror -MT libguile_la-numbers.lo -MD -MP -MF .deps/libguile_la-numbers.Tpo -c numbers.c -fPIC -DPIC -o .libs/libguile_la-numbers.o > cc1: warnings being treated as errors > numbers.c: In function 'xisinf': > numbers.c:147: warning: implicit declaration of function 'isinf' > gmake[3]: *** [libguile_la-numbers.lo] Error 1 > gmake[3]: Leaving directory `/export/home/Scratch/hgs/guile-1.8.1/libguile' > gmake[2]: *** [all] Error 2 > > $ ggrep -C 8 isinf config.log > | int > | main () > | { > | return trunc (); > | ; > | return 0; > | } > configure:43674: result: no > configure:43694: checking for isinf > configure:43706: gcc -o conftest -g -O2 conftest.c -lgmp -lsocket -lnsl -lm -lltdl >&5 > configure:43712: $? = 0 > configure:43719: test -z "$ac_c_werror_flag" || test ! -s conftest.err > configure:43722: $? = 0 > configure:43729: test -s conftest > configure:43732: $? = 0 > configure:43734: result: yes > configure:43751: checking for isnan > $ > So configure knwo what it is, but I can't see how to get at this info > to modify number.c. Maybe I need to do something different? I have now tried a number of things. This is on Solaris9. I can't get it to pickup the definition from the Sun Workshop includes. The sun man page for isinf claims that it is available in sunmath.h which we don't have in /usr/include. I've tried to modify configure.in so that AC_CHECK_HEADER is called to define HAVE_SUNMATH_H if sunmath.h exists. Running autoconf configure.in > configure with autoconf (GNU Autoconf) 2.60 results in a corrupt configure file (in so far as it just fails when testing gcc) Starting afresh and using autoreconf -if similarly corrupts the configure file. Unfortunately I noramlly never touch autoconf etc so don't know the details of their correct usage. I'm wondering if it is worth trying to install glibc to get around this, but I'd rather not add too much to my system Any ideas how to build this successfully on Solaris 9? Thank you, Hugh _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user