From bug-octave-request at bevo dot che dot wisc dot edu Mon Jan 24 12:30:12 2000 Subject: isnan(NaN) = 0 From: "John W. Eaton" To: Gerard Kok Cc: bug-octave at bevo dot che dot wisc dot edu Date: Mon, 24 Jan 2000 12:30:14 -0600 (CST) On 24-Jan-2000, Gerard Kok wrote: | Bug report for Octave 2.0.15 configured for sparc-sun-solaris2.6 | | Description: | ----------- | | isnan(NaN) returns 0, where it should return 1. | | Repeat-By: | --------- | | octave:1> isnan(NaN) | ans = 0 | DEFS: | | -DOCTAVE_SOURCE=1 -DSEPCHAR=':' -DSEPCHAR_STR=":" -DUSE_READLINE=1 | -D__NO_MATH_INLINES=1 -DCXX_NEW_FRIEND_TEMPLATE_DECL=1 -DHAVE_LIBM=1 | -DF77_APPEND_UNDERSCORE=1 -DHAVE_LIBSOCKET=1 -DSIZEOF_SHORT=2 | -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 | -DNPOS=string::npos -DSTDC_HEADERS=1 -DHAVE_DIRENT_H=1 | -DTIME_WITH_SYS_TIME=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_ASSERT_H=1 | -DHAVE_CURSES_H=1 -DHAVE_DLFCN_H=1 -DHAVE_FCNTL_H=1 -DHAVE_FLOAT_H=1 | -DHAVE_FLOATINGPOINT_H=1 -DHAVE_FNMATCH_H=1 -DHAVE_GLOB_H=1 | -DHAVE_GRP_H=1 -DHAVE_IEEEFP_H=1 -DHAVE_LIMITS_H=1 -DHAVE_MEMORY_H=1 | -DHAVE_NAN_H=1 -DHAVE_NCURSES_H=1 -DHAVE_POLL_H=1 -DHAVE_PWD_H=1 | -DHAVE_SGTTY_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 | -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_POLL_H=1 | -DHAVE_SYS_RESOURCE_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_STAT_H=1 | -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_TIMES_H=1 -DHAVE_SYS_TYPES_H=1 | -DHAVE_SYS_UTSNAME_H=1 -DHAVE_TERMCAP_H=1 -DHAVE_TERMIO_H=1 | -DHAVE_TERMIOS_H=1 -DHAVE_UNISTD_H=1 -DHAVE_VARARGS_H=1 -DHAVE_ATEXIT=1 | -DHAVE It looks like the problem is that configure is not finding the function isnan on your system (HAVE_ISNAN should be defined in the generated config.h file). Can you please try to debug why that happens? Take a look at config.log for clues. Thanks, jwe ----------------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.che.wisc.edu/octave/octave.html How to fund new projects: http://www.che.wisc.edu/octave/funding.html Subscription information: http://www.che.wisc.edu/octave/archive.html -----------------------------------------------------------------------