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: Tue, 16 Jan 2007 14:58:48 +0000 (WET) Message-ID: References: <87fyafvol7.fsf@zip.com.au> <87fyacuj4h.fsf@zip.com.au> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: sea.gmane.org 1168959560 29064 80.91.229.12 (16 Jan 2007 14:59:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 16 Jan 2007 14:59:20 +0000 (UTC) Cc: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Jan 16 15:59:19 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 1H6pmP-0007jv-FN for guile-user@m.gmane.org; Tue, 16 Jan 2007 15:59:17 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H6pmP-0001gg-Ep for guile-user@m.gmane.org; Tue, 16 Jan 2007 09:59:17 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H6pm4-0001bg-Hu for guile-user@gnu.org; Tue, 16 Jan 2007 09:58:56 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H6pm3-0001a3-Md for guile-user@gnu.org; Tue, 16 Jan 2007 09:58:56 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H6pm3-0001Zg-AT for guile-user@gnu.org; Tue, 16 Jan 2007 09:58:55 -0500 Original-Received: from [146.227.160.28] (helo=mail1.dmu.ac.uk) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H6pm2-0005rR-Gk for guile-user@gnu.org; Tue, 16 Jan 2007 09:58:55 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by mail1.dmu.ac.uk (Postfix) with ESMTP id C18E37DC9A8; Tue, 16 Jan 2007 14:58:50 +0000 (GMT) Original-Received: from europa.cse.dmu.ac.uk (europa.cse.dmu.ac.uk [146.227.57.47]) by mail1.dmu.ac.uk (Postfix) with ESMTP id 5EC367DC969; Tue, 16 Jan 2007 14:58:50 +0000 (GMT) Original-Received: from brains ([146.227.22.1]) by europa.cse.dmu.ac.uk (8.13.6/8.13.6) with ESMTP id l0GEwn8j011083; Tue, 16 Jan 2007 14:58:50 GMT Original-Received: from brains.eng.cse.dmu.ac.uk ([146.227.22.1] helo=brains) by brains with esmtp (Exim 4.44) id 1H6plw-0005Rj-Up; Tue, 16 Jan 2007 14:58:48 +0000 X-X-Sender: hgs@brains.eng.cse.dmu.ac.uk Original-To: Kevin Ryde 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:5787 Archived-At: On Tue, 16 Jan 2007, Hugh Sasse wrote: > On Tue, 16 Jan 2007, Kevin Ryde wrote: > > > Hugh Sasse writes: > > > > > > posix.c: In function 'scm_putenv': > > > posix.c:1332: error: 'len' undeclared (first use in this function) > > > > Thanks. Dodgy conditionals :-(. You can use the "len" at the start > > of the function (claiming to be for mingw). > > Right, I'll have a look at this. OK, I now have: --- /scratch/hgs/guile-1.8.1/libguile/posix.c.orig 2006-10-04 04:35:07.000000000 +0100 +++ /scratch/hgs/guile-1.8.1/libguile/posix.c 2007-01-16 12:04:53.481602000 +0000 @@ -1315,6 +1315,11 @@ #ifdef __MINGW32__ size_t len = strlen (c_str); #endif +#ifndef HAVE_UNSETENV +# ifndef __MINGW32__ + size_t len = strlen (c_str); +# endif +#endif if (strchr (c_str, '=') == NULL) { So the problem with len disappears, but I still get a failure: (cd .libs && gcc -I/progs/SUNWspro/WS6U2/include -c -fno-builtin "guileS.c") rm -f .libs/guileS.c .libs/guile.nm .libs/guile.nmS .libs/guile.nmT gcc -I/progs/SUNWspro/WS6U2/include -Wall -Wmissing-prototypes -o .libs/guile .libs/guileS.o -D_REENTRANT -pthreads guile-guile.o -Wl,--export-dynamic ./.libs/libguile.so -lrt /usr/local/lib/libgmp.so -lsocket -lnsl -lm /usr/local/lib/libltdl.so -ldl -Wl,--rpath -Wl,/usr/local/lib ./.libs/libguile.so: undefined reference to `isinf' collect2: ld returned 1 exit status However, If I add LDFLAGS=-L/progs/SUNWspro/lib export LDFLAGS This doesn't help. Having CFLAGS="-I/progs/SUNWspro/WS6U2/include -L/progs/SUNWspro/lib" export CFLAGS also fails: gcc -I/progs/SUNWspro/WS6U2/include -Wall -Wmissing-prototypes -o .libs/guile .libs/guileS.o -D_REENTRANT -pthreads guile-guile.o -Wl,--export-dynamic -L/progs/SUNWspro/lib ./.libs/libguile.so -lrt /usr/local/lib/libgmp.so -lsocket -lnsl -lm /usr/local/lib/libltdl.so -ldl -Wl,--rpath -Wl,/usr/local/lib ./.libs/libguile.so: undefined reference to `isinf' collect2: ld returned 1 exit status gmake[3]: *** [guile] Error 1 gmake[3]: Leaving directory `/export/home/Scratch/hgs/guile-1.8.1/libguile' gmake[2]: *** [all] Error 2 gmake[2]: Leaving directory `/export/home/Scratch/hgs/guile-1.8.1/libguile' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/export/home/Scratch/hgs/guile-1.8.1' gmake: *** [all] Error 2 At which point I am now stuck. After all, configure found isinf. :r! (cd /scratch/hgs/guile-1.8.1 ; ggrep -H -C 9 isinf config.log ) config.log-| config.log-| int config.log-| main () config.log-| { config.log-| return trunc (); config.log-| ; config.log-| return 0; config.log-| } config.log-configure:43681: result: no config.log:configure:43701: checking for isinf config.log-configure:43713: gcc -o conftest -I/progs/SUNWspro/WS6U2/include -L/progs/SUNWspro/lib conftest.c -lgmp -lsocket -lnsl -lm -lltdl >&5 config.log-configure:43719: $? = 0 config.log-configure:43726: test -z "$ac_c_werror_flag" || test ! -s conftest.err config.log-configure:43729: $? = 0 config.log-configure:43736: test -s conftest config.log-configure:43739: $? = 0 config.log-configure:43741: result: yes config.log-configure:43758: checking for isnan config.log-configure:43770: gcc -o conftest -I/progs/SUNWspro/WS6U2/include -L/progs/SUNWspro/lib conftest.c -lgmp -lsocket -lnsl -lm -lltdl >&5 doing: mv ./configure ./configure.orig cp ./configure.orig ./configure autoreconf -if (with autoconf 2.61) I get a vastly different configure script with spurious "-n"s sprinkled throughout: bash-2.05$ gdiff -u configure{.orig,} | head -20 --- configure.orig 2006-10-07 04:54:24.000000000 +0100 +++ configure 2007-01-16 14:41:07.226209000 +0000 @@ -1,6 +1,8 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.60a for guile 1.8.1. +# Generated by GNU Autoconf 2.61 for -n guile + -n 1.8.1 +. # # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. @@ -33,7 +35,8 @@ ## M4sh Initialization. ## ## --------------------- ## -# Be Bourne compatible +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then bash-2.05$ which therefore doesn't work. There are lots of differences, enough that my original commands get lost off the top of a 2000 line scroll buffer. I think I am out of my depth now. Hugh _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user