Hi,<div><br></div><div>I switched to FreeBSD 8.1 and the thing compiled fine. Sorry to be a bother. It has the same gcc version. So its OpenBSD specific thing which was stopping compilation.<div><br></div><div>Thanks<br><br>
<div class="gmail_quote">On Thu, Aug 26, 2010 at 12:18 PM, Amit Kulkarni <span dir="ltr"><<a href="mailto:amitkulz@gmail.com">amitkulz@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi Luis,<br><br>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?<br>
<br>It compiled taht particular file okay.<br><br>It is giving some other compile problem. <br><br>[ 51%] Building CXX object Utilities/vxl/core/vnl/CMakeFiles/itkvnl.dir/vnl_matlab_write.o<br>In file included from /home/amit/rsgis/InsightToolkit-3.20.0/Utilities/vxl/core/vnl/vnl_matlab_write.cxx:14:<br>
/home/amit/rsgis/InsightToolkit-3.20.0/Utilities/vxl/core/vnl/vnl_matlab_header.h:43: error: expected unqualified-id before '__extension__'<br>/home/amit/rsgis/InsightToolkit-3.20.0/Utilities/vxl/core/vnl/vnl_matlab_write.cxx:180: error: expected `}' at end of input<br>
gmake[2]: *** [Utilities/vxl/core/vnl/CMakeFiles/itkvnl.dir/vnl_matlab_write.o] Error 1<div class="im"><br>gmake[1]: *** [Utilities/vxl/core/vnl/CMakeFiles/itkvnl.dir/all] Error 2<br>gmake: *** [all] Error 2<br><br></div>
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.<br>
<br>Thanks<div><div></div><div class="h5"><br><br><div class="gmail_quote">On Sat, Aug 21, 2010 at 7:37 PM, Luis Ibanez <span dir="ltr"><<a href="mailto:luis.ibanez@kitware.com" target="_blank">luis.ibanez@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">
Hi Amit,<br><br>The error in line 233:<br><br>#elif !defined(VNL_HAS_NO_FINITE)<br>//: Return true if x is inf<br>bool vnl_math_isinf(float x) { return !finitef(x) && !isnan(x); } <<<<---233<br>//: Return true if x is inf<br>
bool vnl_math_isinf(double x) { return !finite(x) && !isnan(x); }<br>//: Return true if x is inf<br>bool vnl_math_isinf(long double x) { return !finitel(x) && !isnan(x); }<br>#else<br><br><br>seems to be related to the symbol VNL_HAS_NO_FINITE<br>
that is defined in line<br><br>#else<br># warning finite() is not declared on this platform<br># define VNL_HAS_NO_FINITE<br>#endif<br><br>at then of a cascade of platforms, that include<br>Borland, SysV, HPUX....<br><br>
I would suspect that you should insert another<br>case there, in order to address the specific<br>features of FreeBSD.<br><br><br>If you find it, please let us know, so we can<br>fix the version in the repository as well.<br>
<br><br> Thanks,<br><br><br> Luis<br><br><br>-----------------------------------------------------------<br><div class="gmail_quote"><div><div></div><div>On Fri, Aug 20, 2010 at 2:11 PM, Amit Kulkarni <span dir="ltr"><<a href="mailto:amitkulz@gmail.com" target="_blank">amitkulz@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex"><div><div></div><div>Hello,<br><br>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.<br>
<br>Please can somebody help me out with the proper #ifdef?<br>
<br>Thanks<br><br><br>[ 52%] Building CXX object Utilities/vxl/core/vnl/CMakeFiles/itkvnl.dir/vnl_math.o<br>/home/amit/rsgis/InsightToolkit-3.20.0/Utilities/vxl/core/vnl/vnl_math.cxx: In function 'bool vnl_math_isinf(float)':<br>
/home/amit/rsgis/InsightToolkit-3.20.0/Utilities/vxl/core/vnl/vnl_math.cxx:233: error: 'isnan' was not declared in this scope<br>/home/amit/rsgis/InsightToolkit-3.20.0/Utilities/vxl/core/vnl/vnl_math.cxx: In function 'bool vnl_math_isinf(double)':<br>
/home/amit/rsgis/InsightToolkit-3.20.0/Utilities/vxl/core/vnl/vnl_math.cxx:235: error: 'isnan' was not declared in this scope<br>/home/amit/rsgis/InsightToolkit-3.20.0/Utilities/vxl/core/vnl/vnl_math.cxx: In function 'bool vnl_math_isinf(long double)':<br>
/home/amit/rsgis/InsightToolkit-3.20.0/Utilities/vxl/core/vnl/vnl_math.cxx:237: error: 'isnan' was not declared in this scope<br>gmake[2]: *** [Utilities/vxl/core/vnl/CMakeFiles/itkvnl.dir/vnl_math.o] Error 1<br>
gmake[1]: *** [Utilities/vxl/core/vnl/CMakeFiles/itkvnl.dir/all] Error 2<br>
gmake: *** [all] Error 2<br><br>
<br></div></div>_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br>
</blockquote></div><br>
</div></div></blockquote></div><br></div></div>