[Insight-users] compile problem on OpenBSD

Luis Ibanez luis.ibanez at kitware.com
Sat Aug 21 20:37:21 EDT 2010


Hi Amit,

The error in line 233:

#elif !defined(VNL_HAS_NO_FINITE)
//: Return true if x is inf
bool vnl_math_isinf(float x) { return !finitef(x) && !isnan(x); }
<<<<---233
//: Return true if x is inf
bool vnl_math_isinf(double x) { return !finite(x) && !isnan(x); }
//: Return true if x is inf
bool vnl_math_isinf(long double x) { return !finitel(x) && !isnan(x); }
#else


seems to be related to the symbol VNL_HAS_NO_FINITE
that is defined in line

#else
# warning finite() is not declared on this platform
# define VNL_HAS_NO_FINITE
#endif

at then of a cascade of platforms, that include
Borland, SysV, HPUX....

I would suspect that you should insert another
case there, in order to address the specific
features of FreeBSD.


If you find it,  please let us know, so we can
fix the version in the repository as well.


     Thanks,


          Luis


-----------------------------------------------------------
On Fri, Aug 20, 2010 at 2:11 PM, Amit Kulkarni <amitkulz at gmail.com> wrote:

> Hello,
>
> I grabbed latest tar.gz of ITK 3.20 and I am getting this error on OpenBSD
> 4.8 (-current) with gcc 4.2.1. I got feedback from Emmanuel @ otb-users to
> try and see if its ITK related compile issue.
>
> Please can somebody help me out with the proper #ifdef?
>
> Thanks
>
>
> [ 52%] Building CXX object
> Utilities/vxl/core/vnl/CMakeFiles/itkvnl.dir/vnl_math.o
> /home/amit/rsgis/InsightToolkit-3.20.0/Utilities/vxl/core/vnl/vnl_math.cxx:
> In function 'bool vnl_math_isinf(float)':
> /home/amit/rsgis/InsightToolkit-3.20.0/Utilities/vxl/core/vnl/vnl_math.cxx:233:
> error: 'isnan' was not declared in this scope
> /home/amit/rsgis/InsightToolkit-3.20.0/Utilities/vxl/core/vnl/vnl_math.cxx:
> In function 'bool vnl_math_isinf(double)':
> /home/amit/rsgis/InsightToolkit-3.20.0/Utilities/vxl/core/vnl/vnl_math.cxx:235:
> error: 'isnan' was not declared in this scope
> /home/amit/rsgis/InsightToolkit-3.20.0/Utilities/vxl/core/vnl/vnl_math.cxx:
> In function 'bool vnl_math_isinf(long double)':
> /home/amit/rsgis/InsightToolkit-3.20.0/Utilities/vxl/core/vnl/vnl_math.cxx:237:
> error: 'isnan' was not declared in this scope
> gmake[2]: *** [Utilities/vxl/core/vnl/CMakeFiles/itkvnl.dir/vnl_math.o]
> Error 1
> gmake[1]: *** [Utilities/vxl/core/vnl/CMakeFiles/itkvnl.dir/all] Error 2
> gmake: *** [all] Error 2
>
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100821/866d2821/attachment.htm>


More information about the Insight-users mailing list