guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Gmp now working, but number.c:147 isinf declared implicitly.


From: Hugh Sasse
Subject: Re: Gmp now working, but number.c:147 isinf declared implicitly.
Date: Tue, 16 Jan 2007 14:58:48 +0000 (WET)

On Tue, 16 Jan 2007, Hugh Sasse wrote:

> On Tue, 16 Jan 2007, Kevin Ryde wrote:
> 
> > Hugh Sasse <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]