<div>Update:</div>
<div>Got a successful compile/link (yay!) with some pretty trivial warnings:</div>
<div> if ( ! yyg->yy_did_buffer_switch_on_eof )<br>........................................^<br>%CXX-W-CODEUNREACHABLE, statement is unreachable<br>at line number 1027 in file ROOT:[
SRC.dev.cmake-2^.4^.7.Bootstrap^.cmk]cmCommandArgumentLex<br>er.cxx;<br> </div>
<p> yyssp = yyss + yysize - 1;<br>......^<br>%CXX-W-CODEUNREACHABLE, statement is unreachable<br>at line number 1072 in file ROOT:[SRC.dev.cmake-2^.4^.7.Bootstrap^.cmk]cmCommandArgumentPar<br>ser.cxx;</p>
<p> goto yyerrorlab;<br>.....^<br>%CXX-W-CODCAUUNR, statement either is unreachable or causes unreachable<br> code<br>at line number 1511 in file ROOT:[SRC.dev.cmake-2^.4^.7.Bootstrap^.cmk]cmCommandArgumentPar
<br>ser.cxx;<br></p>
<div> while ( num_to_read <= 0 )<br>........................^<br>%CC-I-QUESTCOMPARE, In this statement, the unsigned expression "num_to_read" is being compa<br>red with a relational operator to a constant whose value is not greater than zero. This mi
<br>ght not be what you intended.<br>at line number 1212 in file ROOT:[SRC.dev.cmake-2^.4^.7.Bootstrap^.cmk]cmListFileLexer.c;</div>
<div> </div>
<div> newSigChldAction.sa_handler = kwsysProcessesSignalHandler;<br>....^<br>%CC-W-PTRMISMATCH, In this statement, the referenced type of the pointer value "kwsysProces<br>sesSignalHandler" is "function (int, pointer to struct __siginfo, pointer to void) returnin
<br>g void", which is not compatible with "function (int) returning void".<br>at line number 2331 in file ROOT:[SRC.dev.cmake-2^.4^.7.Source.kwsys]ProcessUNIX.c;3</div>
<div><br> return fs.st_ctime >= 0 ? static_cast<long int>(fs.st_ctime) : 0;<br>.......................^<br>%CXX-W-UNSCOMZER, pointless comparison of unsigned integer with zero<br>at line number 1806 in file ROOT:[
SRC.dev.cmake-2^.4^.7.Source.kwsys]SystemTools.cxx;1<br> </div>
<div>The only one that seems serious is the about the signal handler struct. However, I'm going to wait and see if it causes the thing to blow-up.<br>Only change required was to add an #ifdef to ProcessUNIX.c on line 2330 (I'll send along a diff as soon as I can get a unix-compatible diff-utility working)
</div>
<div>#ifdef _VMS<br> newSigChldAction.sa_handler = kwsysProcessesSignalHandler;<br> newSigChldAction.sa_flags = SA_NOCLDSTOP;<br>#else<br> newSigChldAction.sa_sigaction = kwsysProcessesSignalHandler;<br> newSigChldAction.sa_flags
= SA_NOCLDSTOP | SA_SIGINFO;<br>#endif<br> </div>
<div> </div>
<div>New challenges: getting the thing to actually run:</div>
<div>Next issue I run into is getcwd seems to fail which causes an abort early on in the program invocation. Abort seems to cause a OPCCUS failure with a traceback (seems to be an issue with the C-RTL and the abort function):
</div>
<div>%SYSTEM-F-OPCCUS, opcode reserved to customer fault at PC=FFFFFFFF80AA0DF4, PS=0000001B</div>
<div> </div>
<div>Digging into it a bit, the RTL claims there isn't enough space in the buffer for the resulting string - which I don't understand as 2048 is a pretty big buffer even for a string that should look like: "/root/src/dev/cmake-
2.4.7/bootstrap.cmk"</div>
<div> </div>
<div>-Alan<br> </div>
<div><span class="gmail_quote">On 9/28/07, <b class="gmail_sendername">Bill Hoffman</b> <<a href="mailto:bill.hoffman@kitware.com">bill.hoffman@kitware.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Well, either an ifdef VMS, or a try_compile should be used to get the<br>right signature for the handler.<br>
Sounds like you are making good progress. I would recommend getting it<br>to build any way possible,<br>then send diffs to me and we can work out the right way to do it.<br>Sounds like you are making good<br>progress!<br>
<br>-Bill<br><br></blockquote></div><br><br clear="all"><br>-- <br>+––– –– – – – – –<br>| Alan Antonuk<br>| <a href="mailto:antonuka@msu.edu">antonuka@msu.edu</a>, <a href="mailto:aega@umich.edu">aega@umich.edu
</a><br> tel cell: (734) 646-4476<br>| tel work: (734) 647-1386<br> addr: 1705 Morehead Dr., Ann Arbor, MI 48103<br>| aim: alanxz1