Subject: Re: Anyone working on KDE4?
To: None <>
From: Hasso Tepper <>
List: pkgsrc-users
Date: 05/19/2007 13:09:11
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8Bit

Raymond Meyer wrote:
> Well I Googled and turns out others hade similar problems with isinf on
> Solaris. Something to do with GCC optimising calls to isinf during
> configure tests, so that it returns 0 and it appears as if isinf is
> implemented. I'll look at it in more details when I've got time.

Does attached patch fixes the problem for you?

If you are building from release tarball, just search for isnan(f) and
isinf() from configure script and insert return before them.


Hasso Tepper 

Content-Type: text/x-diff; name="isnan-isinf.pathc"
Content-Transfer-Encoding: 8Bit
Content-Disposition: attachment; filename="isnan-isinf.pathc"

Index: kjs/
--- kjs/	(revision 661966)
+++ kjs/	(working copy)
@@ -16,7 +16,7 @@
     AC_MSG_CHECKING([for isnan with <math.h>])
-	[#include <math.h>], [float f = 0.0; isnan(f)],
+	[#include <math.h>], [float f = 0.0; return isnan(f)],
 	    AC_DEFINE([HAVE_FUNC_ISNAN], [1], [Define if you have isnan])],
@@ -29,7 +29,7 @@
     AC_MSG_CHECKING([for isinf with <math.h>])
-	[#include <math.h>], [float f = 0.0; isinf(f)],
+	[#include <math.h>], [float f = 0.0; return isinf(f)],
 	    AC_DEFINE([HAVE_FUNC_ISINF], [1], [Define if you have isinf])],