If Marcus already fixed it then likely you need to rebase master onto your branch.<br><br><div class="gmail_quote">On Thu, Oct 20, 2011 at 12:01 PM, David Partyka <span dir="ltr"><<a href="mailto:david.partyka@kitware.com">david.partyka@kitware.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Likely this is okay, often when newer versions of compilers come out the core headers get refactored, eliminating automatic inclusion of others.<br>

<br><div class="gmail_quote"><div class="im">On Thu, Oct 20, 2011 at 11:56 AM, Sankhesh Jhaveri <span dir="ltr"><<a href="mailto:sankhesh.jhaveri@kitware.com" target="_blank">sankhesh.jhaveri@kitware.com</a>></span> wrote:<br>


</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div class="h5"><span style="color:rgb(34, 34, 34);font-family:arial, sans-serif;font-size:13px;background-color:rgb(255, 255, 255)"><div>


Hello fellow developers,</div><div><br></div><div>Recently, I was running into a problem when building VTK with VTK_WRAP_PYTHON checked.</div>

<div><br>CMake found the right python headers and library but build failed giving an error - </div><div><br></div><div><div><font face="'courier new', monospace" color="#ff0000">[  9%] Building CXX object Wrapping/Python/CMakeFiles/vtkPythonCore.dir/PyVTKObject.cxx.o</font></div>




<div><font face="'courier new', monospace" color="#ff0000">~/Projects/VTK/Source-correct-test-failures/Wrapping/Python/PyVTKObject.cxx:381:23: error: expected primary-expression before ‘,’ token</font></div><div>



<font face="'courier new', monospace" color="#ff0000">~/Projects/VTK/Source-correct-test-failures/Wrapping/Python/PyVTKObject.cxx:381:25: error: ‘vtk_weakreflist’ was not declared in this scope</font></div>
<div><font face="'courier new', monospace" color="#ff0000">~/Projects/VTK/Source-correct-test-failures/Wrapping/Python/PyVTKObject.cxx:381:40: error: ‘offsetof’ was not declared in this scope</font></div><div><font face="'courier new', monospace" color="#ff0000">make[2]: *** [Wrapping/Python/CMakeFiles/vtkPythonCore.dir/PyVTKObject.cxx.o] Error 1</font></div>




<div><font face="'courier new', monospace" color="#ff0000">make[1]: *** [Wrapping/Python/CMakeFiles/vtkPythonCore.dir/all] Error 2</font></div><div><font face="'courier new', monospace" color="#ff0000">make: *** [all] Error 2</font></div>




</div><div><br></div><div>I did some digging and found that adding <font face="'courier new', monospace" color="#ff0000">#include <vtksys/cstddef> </font>solved the problem.</div><div><br></div><div>Is that a valid hack or is it something that I am overlooking?</div>




<div><br></div><div>Thanks, </div></span>Sankhesh<font color="#888888"><br><div><font face="verdana, sans-serif"><br></font> </div><br>
</font><br></div></div><div class="im">_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
<br>
<br></div></blockquote></div><br>
</blockquote></div><br>