Hi Guo,<br><br>There is a bug in gjs program on 64 bits architectures ... But it was fixed a certain time ago. See the following mail by Samuel Burg who fixed this bug. The patch is attached to this mail.<br><br>Simon<br><br>
---------- Forwarded message ----------
<br><span class="gmail_quote">From: <b class="gmail_sendername">Samuel BURG</b> <<a href="mailto:samuel_burg@yahoo.fr" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">samuel_burg@yahoo.fr</a>>
<br>Date: 2 juil. 2007 13:34<br>Subject: [Gate-users] ClusterTools - GJS jobsplitter - x86_64 patch
<br>To: Users Gate <<a href="mailto:gate-users@lists.healthgrid.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">gate-users@lists.healthgrid.org</a>><br><br></span>Hello Jan De Beenhouwer,
<br>Hello Patrice Descourt,<br><br>thank you very much for your work.<br>
<br><br>Hello everybody else,<br><br>This is a merge of 2 patchs for x86_64 arch :<br><br>patch from Patrice Descourt<br>patch from Jan De Beenhouwer <br><br>everyone who uses the jobsplitter in <span name="st">
64</span> bits architecture <br>should replace 3 lines in src/GateMacFileParser.cc<br><br>in GateMacfileParser::AddPWD(G4String key) replace<br> unsigned int pos=filename.rfind("/");<br>by long unsigned int pos=
filename.rfind("/");<br><br>in void GateMacfileParser::FormatMacline() replace<br> unsigned int size=0;<br>by G4int size=0;<br><br>in void GateMacfileParser::RemoveExtension() replace<br> unsigned int pos=
macline.rfind(".rndm");<br>by long unsigned int pos=macline.rfind(".rndm");<br><br><br>The diff output :<br><br>[lucie@node_2 src]# diff GateMacfileParser.cc.old
GateMacfileParser.cc.new<br>441c441<br>< unsigned int pos=filename.rfind("/");<br>---<br>> long unsigned int pos=filename.rfind("/");<br>519c519<br>< unsigned int size=0;<br>---<br>> G4int size=0;
<br>602c602<br>< unsigned int pos=macline.rfind(".rndm");//the only valid extension<br>---<br>> long unsigned int pos=macline.rfind(".rndm");//the only valid extension<br><br><br>Best regards,
<br>
<span><br>Samuel BURG</span><p><span>
<hr size="1"></span></p><br>