[Insight-users] compile problem on OpenBSD

Amit Kulkarni amitkulz at gmail.com
Thu Aug 26 13:18:35 EDT 2010


Hi Luis,

Will you please check the file? There are two successive #if
defined(VCL_BORLAND) sections, I deleted the offending section of #if
defined(VCL_BORLAND) at the bottom and left the top section alone. Now it
maybe wrong of me, but I couldn't figure out why somebody had left two
almost identical #if defined(VCL_BORLAND) sections. And why is gcc going
into those sections?

It compiled taht particular file okay.

It is giving some other compile problem.

[ 51%] Building CXX object
Utilities/vxl/core/vnl/CMakeFiles/itkvnl.dir/vnl_matlab_write.o
In file included from
/home/amit/rsgis/InsightToolkit-3.20.0/Utilities/vxl/core/vnl/vnl_matlab_write.cxx:14:
/home/amit/rsgis/InsightToolkit-3.20.0/Utilities/vxl/core/vnl/vnl_matlab_header.h:43:
error: expected unqualified-id before '__extension__'
/home/amit/rsgis/InsightToolkit-3.20.0/Utilities/vxl/core/vnl/vnl_matlab_write.cxx:180:
error: expected `}' at end of input
gmake[2]: ***
[Utilities/vxl/core/vnl/CMakeFiles/itkvnl.dir/vnl_matlab_write.o] Error 1
gmake[1]: *** [Utilities/vxl/core/vnl/CMakeFiles/itkvnl.dir/all] Error 2
gmake: *** [all] Error 2

Is it possible for somebody to try and compile on OpenBSD -current in a
virtual machine? Its compiler (which is a gcc 4.2.1) is causing problems
which didn't happen on Opensolaris (many versions) or Ubuntu or Windows XP
or WIndows 2003 Server or Windows 7.

Thanks

On Sat, Aug 21, 2010 at 7:37 PM, Luis Ibanez <luis.ibanez at kitware.com>wrote:

> 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/20100826/af2d91eb/attachment.htm>


More information about the Insight-users mailing list