unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* guile-1.8.1: libguile/numbers.c lacking include/lib for isinf() on Solaris2.6
@ 2007-05-10  8:55 anirkko
  0 siblings, 0 replies; 3+ messages in thread
From: anirkko @ 2007-05-10  8:55 UTC (permalink / raw)
  To: bug-guile


Hi
The build of guile-1.8.1 fails on Solaris2.6 at libguile/numbers.c
(see output below) because the isinf() function requires for compilation
   #include <sunmath.h>
and for linking
   -lsunmath -lm

This happens despite the protection by
  #if defined (HAVE_ISINF)
    return isinf (x);
  #elif
in numbers.c
Does it mean the configure finds isinf() (maybe somewhere else?), but the
necessary adaptations are not done in the Makefile??

Regards,
Arto


output of 'gmake':
-----------------------------------------------------------
...
...
gcc -DHAVE_CONFIG_H -I. -I/build/guile-1.8.1/libguile -I.. -I.. -I/build/guile-1.8.1 -D_REENTRANT -pthreads -O2 -funswitch-loops -fgcse-after-reload -mcpu=supersparc -mno-app-regs -Wall -Wmissing-prototypes -Werror -MT libguile_la-numbers.lo -MD -MP -MF .deps/libguile_la-numbers.Tpo -c /build/guile-1.8.1/libguile/numbers.c -o libguile_la-numbers.o
cc1: warnings being treated as errors
/build/guile-1.8.1/libguile/numbers.c: In function 'xisinf':
/build/guile-1.8.1/libguile/numbers.c:147: warning: implicit declaration of function 'isinf'
gmake[3]: *** [libguile_la-numbers.lo] Error 1
gmake[3]: Leaving directory ...
...
...


_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-guile


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: guile-1.8.1: libguile/numbers.c lacking include/lib for isinf() on Solaris2.6
@ 2007-05-10  9:03 anirkko
  0 siblings, 0 replies; 3+ messages in thread
From: anirkko @ 2007-05-10  9:03 UTC (permalink / raw)
  To: bug-guile


Sorry, the Solaris2.6 manpage said that (#include <sunmath.h> / -lsunmath -lm).
But there is no such include or library file present on Solaris2.6, and no
other include file with isinf in it.
Maybe the problem is that HAVE_ISINF should not be defined.
Greets,
Arto


> From anirkko Thu May 10 10:55:02 2007
> To: bug-guile@gnu.org
> Subject: guile-1.8.1: libguile/numbers.c lacking include/lib for isinf() on Solaris2.6
> 
> 
> Hi
> The build of guile-1.8.1 fails on Solaris2.6 at libguile/numbers.c
> (see output below) because the isinf() function requires for compilation
>    #include <sunmath.h>
> and for linking
>    -lsunmath -lm
> 
> This happens despite the protection by
>   #if defined (HAVE_ISINF)
>     return isinf (x);
>   #elif
> in numbers.c
> Does it mean the configure finds isinf() (maybe somewhere else?), but the
> necessary adaptations are not done in the Makefile??
> 
> Regards,
> Arto
> 
> 
> output of 'gmake':
> -----------------------------------------------------------
> ...
> ...
> gcc -DHAVE_CONFIG_H -I. -I/build/guile-1.8.1/libguile -I.. -I.. -I/build/guile-1.8.1 -D_REENTRANT -pthreads -O2 -funswitch-loops -fgcse-after-reload -mcpu=supersparc -mno-app-regs -Wall -Wmissing-prototypes -Werror -MT libguile_la-numbers.lo -MD -MP -MF .deps/libguile_la-numbers.Tpo -c /build/guile-1.8.1/libguile/numbers.c -o libguile_la-numbers.o
> cc1: warnings being treated as errors
> /build/guile-1.8.1/libguile/numbers.c: In function 'xisinf':
> /build/guile-1.8.1/libguile/numbers.c:147: warning: implicit declaration of function 'isinf'
> gmake[3]: *** [libguile_la-numbers.lo] Error 1
> gmake[3]: Leaving directory ...
> ...
> ...
> 



_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-guile


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: guile-1.8.1: libguile/numbers.c lacking include/lib for isinf() on Solaris2.6
@ 2007-05-10 11:29 anirkko
  0 siblings, 0 replies; 3+ messages in thread
From: anirkko @ 2007-05-10 11:29 UTC (permalink / raw)
  To: bug-guile


Hi

Workaround: to make guile-1.8.1 work for Solaris2.6,
change this in libguile/numbers.c
     insert '#undef HAVE_ISINF' somewhere at the beginning,
     but _after_ the #include statements (one of those probably
     defines HAVE_ISINF)

After that, the build continues past libguile/numbers.c
Arto


> From anirkko Thu May 10 11:03:13 2007
> To: bug-guile@gnu.org
> Subject: Re: guile-1.8.1: libguile/numbers.c lacking include/lib for isinf() on Solaris2.6
> 
> 
> Sorry, the Solaris2.6 manpage said that (#include <sunmath.h> / -lsunmath -lm).
> But there is no such include or library file present on Solaris2.6, and no
> other include file with isinf in it.
> Maybe the problem is that HAVE_ISINF should not be defined.
> Greets,
> Arto
> 
> 
> > From anirkko Thu May 10 10:55:02 2007
> > To: bug-guile@gnu.org
> > Subject: guile-1.8.1: libguile/numbers.c lacking include/lib for isinf() on Solaris2.6
> > 
> > 
> > Hi
> > The build of guile-1.8.1 fails on Solaris2.6 at libguile/numbers.c
> > (see output below) because the isinf() function requires for compilation
> >    #include <sunmath.h>
> > and for linking
> >    -lsunmath -lm
> > 
> > This happens despite the protection by
> >   #if defined (HAVE_ISINF)
> >     return isinf (x);
> >   #elif
> > in numbers.c
> > Does it mean the configure finds isinf() (maybe somewhere else?), but the
> > necessary adaptations are not done in the Makefile??
> > 
> > Regards,
> > Arto
> > 
> > 
> > output of 'gmake':
> > -----------------------------------------------------------
> > ...
> > ...
> > gcc -DHAVE_CONFIG_H -I. -I/build/guile-1.8.1/libguile -I.. -I.. -I/build/guile-1.8.1 -D_REENTRANT -pthreads -O2 -funswitch-loops -fgcse-after-reload -mcpu=supersparc -mno-app-regs -Wall -Wmissing-prototypes -Werror -MT libguile_la-numbers.lo -MD -MP -MF .deps/libguile_la-numbers.Tpo -c /build/guile-1.8.1/libguile/numbers.c -o libguile_la-numbers.o
> > cc1: warnings being treated as errors
> > /build/guile-1.8.1/libguile/numbers.c: In function 'xisinf':
> > /build/guile-1.8.1/libguile/numbers.c:147: warning: implicit declaration of function 'isinf'
> > gmake[3]: *** [libguile_la-numbers.lo] Error 1
> > gmake[3]: Leaving directory ...
> > ...
> > ...
> > 
> 
> 


_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-guile


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-05-10 11:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-10  9:03 guile-1.8.1: libguile/numbers.c lacking include/lib for isinf() on Solaris2.6 anirkko
  -- strict thread matches above, loose matches on Subject: below --
2007-05-10 11:29 anirkko
2007-05-10  8:55 anirkko

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).