<div dir="ltr">Hi Sean,<div><br></div><div>I haven't seen it (still using Xcode 6.1), but I can guess at a fix.</div><div><br></div><div>The VTK classes never include Python.h directly, they always</div><div>include "vtkPython.h" which already has a bunch of fixes for</div><div>issues like this one.</div><div><br></div><div>To fix in vtkPython.h, an "#undef toupper" will have to be added</div><div>after "#include <Python.h>" (with checks for the clang version).</div><div><br></div><div> - David</div><div><br></div><div><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 12, 2015 at 9:16 AM, Sean McBride <span dir="ltr"><<a href="mailto:sean@rogue-research.com" target="_blank">sean@rogue-research.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
A few days ago I updated clang on some of my buildbots and now get this:<br>
<br>
<<a href="https://open.cdash.org/viewBuildError.php?buildid=4098065" rel="noreferrer" target="_blank">https://open.cdash.org/viewBuildError.php?buildid=4098065</a>><br>
<br>
This seems to be because a Python header is doing an evil redefinition:<br>
<br>
/usr/include/python2.7/pyport.h:731:9: note: macro 'toupper' defined here<br>
#define toupper(c) towupper(btowc(c))<br>
^<br>
<br>
My guess is toupper was a #define with older clang, and is now a function with newer clang.<br>
<br>
Googling finds this has been discussed years ago:<br>
<<a href="http://bugs.python.org/issue10910" rel="noreferrer" target="_blank">http://bugs.python.org/issue10910</a>><br>
<br>
I'm hoping one of you have seen this before or have some idea of how to fix it...<br>
<br>
Cheers,<br></blockquote></div></div></div></div>