unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Hugh Sasse <hgs@dmu.ac.uk>
Cc: guile-user@gnu.org
Subject: Re: Gmp now working, but number.c:147 isinf declared implicitly.
Date: Tue, 16 Jan 2007 14:58:48 +0000 (WET)	[thread overview]
Message-ID: <Pine.GSO.4.64.0701161247150.28584@brains.eng.cse.dmu.ac.uk> (raw)
In-Reply-To: <Pine.GSO.4.64.0701161012370.28584@brains.eng.cse.dmu.ac.uk>

On Tue, 16 Jan 2007, Hugh Sasse wrote:

> On Tue, 16 Jan 2007, Kevin Ryde wrote:
> 
> > Hugh Sasse <hgs@dmu.ac.uk> 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


  reply	other threads:[~2007-01-16 14:58 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-05 14:52 Gmp now working, but number.c:147 isinf declared implicitly Hugh Sasse
2007-01-12 17:37 ` Hugh Sasse
2007-01-12 22:59   ` Kevin Ryde
2007-01-15  9:46     ` Hugh Sasse
2007-01-15 11:58       ` Hugh Sasse
2007-01-15 20:31         ` Kevin Ryde
2007-01-16 10:21           ` Hugh Sasse
2007-01-16 14:58             ` Hugh Sasse [this message]
2007-01-19  0:37               ` Kevin Ryde
2007-01-19 10:02                 ` Hugh Sasse
2007-01-21 23:27                   ` Kevin Ryde
2007-01-22 11:53                     ` Hugh Sasse
2007-01-22 21:11                       ` Kevin Ryde
2007-01-23 10:27                         ` Hugh Sasse
2007-01-19 15:43                 ` Hugh Sasse
2007-01-21 21:08                   ` Kevin Ryde
2007-01-21 23:22                   ` Kevin Ryde
2007-01-22 12:08                     ` Hugh Sasse
2007-01-22 21:05                       ` Kevin Ryde
2007-01-23 11:01                         ` Hugh Sasse
2007-01-24 21:23                           ` Kevin Ryde
2007-01-25 10:27                             ` Hugh Sasse
2007-01-26 22:24                               ` Kevin Ryde
2007-01-18  0:43             ` Kevin Ryde
2007-01-18  9:57               ` Hugh Sasse
2007-01-18 12:21                 ` Hugh Sasse
2007-01-18 10:43               ` Ludovic Courtès
2007-01-15 20:27       ` Kevin Ryde
2007-01-16 10:11         ` Hugh Sasse
2007-01-18  0:38           ` Kevin Ryde

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.GSO.4.64.0701161247150.28584@brains.eng.cse.dmu.ac.uk \
    --to=hgs@dmu.ac.uk \
    --cc=guile-user@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).