<font color='black' size='2' face='arial'>Y<font size="2">ou're gonna have to <font size="2">dig fa<font size="2">rther back than that to figure out where the flags c<font size="2">ome from..... I just added doub<font size="2">le quo<font size="2">tes around the thing in my commit so that it would work properly. I have no idea why those flags are necessary there.<br>
</font></font></font></font></font></font><font size="2" color="black" face="arial">
<div> <br>
</div>
<div> <br>
</div>
<div> <br>
</div>
<div style="font-family:arial,helvetica;font-size:10pt;color:black">-----Original Message-----<br>
From: Sean McBride <sean@rogue-research.com><br>
To: vtk-developers <vtk-developers@vtk.org><br>
Cc: Sebastien Jourdain <sebastien.jourdain@kitware.com>; David Cole <dlrdave@aol.com><br>
Sent: Mon, Feb 11, 2013 3:40 pm<br>
Subject: Only 2 warnings left on my dashboards...<br>
<br>
<div id="AOLMsgPart_0_3ba81b6c-f034-45c3-a591-d9b932c3812b" style="margin: 0px;font-family: Tahoma, Verdana, Arial, Sans-Serif;font-size: 12px;color: #000;background-color: #fff;">
<pre style="font-size: 9pt;"><tt>Hi all,
Only 2 warnings left on my dashboards, but I'm not sure how to fix them:
<<a href="http://open.cdash.org/viewBuildError.php?type=1&buildid=2807871" target="_blank">http://open.cdash.org/viewBuildError.php?type=1&buildid=2807871</a>>
(1)
ld: warning: -read_only_relocs cannot be used with x86_64
I guess the first question is is -read_only_relocs really needed? Looks like
David Cole added it recently:
bf339e85 Utilities/vtkoggtheora/CMakeLists.txt (Dave Demarle
2009-12-01 08:30:17 -0500 123) # set up linker flags
bf339e85 Utilities/vtkoggtheora/CMakeLists.txt (Dave Demarle
2009-12-01 08:30:17 -0500 124) IF(APPLE)
bf339e85 Utilities/vtkoggtheora/CMakeLists.txt (Dave Demarle
2009-12-01 08:30:17 -0500 125) SET( VTKOGGTHEORA_SHARED_LINKER_FLAGS
c993f3fc ThirdParty/oggtheora/vtkoggtheora/CMakeLists.txt (David Cole
2012-04-11 07:34:52 -0400 126) "-read_only_relocs suppress
-Wl,-exported_symbols_list,\"${VTKOGGTHEOR
bf339e85 Utilities/vtkoggtheora/CMakeLists.txt (Dave Demarle
2009-12-01 08:30:17 -0500 127) )
(2)
/Users/builder/external/VTK/Wrapping/Java/vtkJavaAwt.h:57:7: warning:
'JAWT_GetAWT' is deprecated [-Wdeprecated-declarations]
if (JAWT_GetAWT(env, &awt) == JNI_FALSE)
^
This one we just need to suppress. I see from git history that Sebastien
Jourdain tried:
abaa75c2 CMake/CTestCustom.cmake.in (Sebastien Jourdain 2012-10-08 15:32:22
-0400 286)
abaa75c2 CMake/CTestCustom.cmake.in (Sebastien Jourdain 2012-10-08 15:32:22
-0400 287) # Mac OS X and Java moving to Oracle, Apple is deprecating their
own Java Implem
abaa75c2 CMake/CTestCustom.cmake.in (Sebastien Jourdain 2012-10-08 15:32:22
-0400 288) "warning: 'JAWT_GetAWT' is deprecated"
But his technique is not working for whatever reason. An alternative would be
to wrap the use of that API in:
#if __APPLE__ && (MAC_OS_X_VERSION_MAX_ALLOWED >= 1080)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
// use JAWT_GetAWT
#pragma GCC diagnostic pop
#endif
Thoughts?
Thanks,
--
____________________________________________________________
Sean McBride, B. Eng <a href="mailto:sean@rogue-research.com">sean@rogue-research.com</a>
Rogue Research <a href="http://www.rogue-research.com" target="_blank">www.rogue-research.com</a>
Mac Software Developer Montréal, Québec, Canada
</tt></pre>
</div>
<!-- end of AOLMsgPart_0_3ba81b6c-f034-45c3-a591-d9b932c3812b -->
</div>
</font></font>