<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">The issue has been solved but I'm not sure if this is a standard solution or a problem. In both the SunSolaris Sparc and MACOSx systems, static linking of libraries may be an issue. I<b>f I remove the lines 188-190</b>, given below, in the file <b>installFlow.py</b> ( in seatree-1.9.2-071110/python/seatree/modules/hc) which writes out the Makefile.include &nbsp;(or remove the line LDFLAGS='-static' manually from Makefile.include), it compiles correctly. &nbsp;<div><br></div><div><div><span class="Apple-tab-span" style="white-space:pre">                        </span><i>if (flags.find("-static") &lt; 0):</i></div><div><span class="Apple-tab-span" style="white-space:pre"><i>                        </i></span><i>makes.append("LDFLAGS = " + flags + " -static");</i></div><div><span class="Apple-tab-span" style="white-space:pre"><i>                        </i></span><i>makes.append("\n")</i></div><div><br></div><div>I am not sure if the addition of the '-static' flag should be made platform dependent by putting another 'if' check for self.arch before line 188. But I thought I should let you know in case I am doing something wrong-It is working now.</div><div><br></div><div>Thanks,</div><div>Raj</div><div>201C Seismology</div><div>LDEO, Palisades, NY</div><div><br></div><div><div>On Nov 2, 2010, at 7:12 PM, Thorsten Becker wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>first problem looks like a fortran/C mixing linking issue, i.e. some compiler <br>expects some routine to be present which is not automatically supplied. we've <br>had students successfully compile the code on Macs, so not sure where this <br>problem comes from. <br><br>the SUN example is odd, there it looks like -lm the math library isn't found?<br><br>eh's suggestion is a good one<br><br><br><br>On Wednesday, November 03, 2010 03:49:08 Eh Tan wrote:<br><blockquote type="cite">Hi Pritwiraj,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">As far as I can tell, hc Makefile doesn't have the "-lcrt0.o" flag. Do<br></blockquote><blockquote type="cite">you know where the flag comes from?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">For the SUN machine, it looks like the problem is in your environment<br></blockquote><blockquote type="cite">setup. Can you compile a "hello world" problem on that machine?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Eh<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">On 11/02/2010 03:59 AM, Pritwiraj Moulik wrote:<br></blockquote><blockquote type="cite"><blockquote type="cite">*/Dear Sir,<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">/*<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">*/<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">/*<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">*/I am a graduate student at Lamont and am interested in your SEATREE<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">tool. I have tried repeatedly to install it on my MAC and Sun machine<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">here with a few issues. For the MAC/(Darwin<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Pritwiraj-Mouliks-MacBook-Pro.local 10.4.0 Darwin Kernel Version<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">10.4.0: Fri Apr 23 18:28:53 PDT 2010; root:xnu-1504.7.4~1/RELEASE_I386<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">i386),/it gives the following error while compiling the HC module/*<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">ar: creating archive objects/i386/libhc.a<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">prem_util.c: In function 'prem_read_model':<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">prem_util.c:243: warning: format not a string literal and no format<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">arguments<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">ar: creating archive objects/i386/libggrd.a<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">ar: creating archive objects/i386/libggrd.dfast.a<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">ar: creating archive objects/i386/libggrd.dbg.a<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">ar: creating archive objects/i386/librick.a<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">ar: creating archive objects/i386/librick.dbg.a<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">ld: library not found for -lcrt0.o<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">collect2: ld returned 1 exit status<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">make: *** [bin/i386/hc] Error 1<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">*/It looks like crt0.o is a static library no longer in use /(<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><a href="http://developer.apple.com/library/mac/#qa/qa2001/qa1118.html">http://developer.apple.com/library/mac/#qa/qa2001/qa1118.html</a> )/for<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">the MAC platform. Is there any fix that will be useful? /*<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">*/<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">/*<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">*/For the SUN machine (SunOS povel 5.10 Generic_118833-36 sun4u sparc<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">SUNW,Sun-Fire-V890) , I am getting similar errors but for different<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">libraries:/*<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">ar: creating objects/sun4/libhc.a<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">ar: writing objects/sun4/libhc.a<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">ar: creating objects/sun4/libggrd.a<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">ar: writing objects/sun4/libggrd.a<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">ar: creating objects/sun4/libggrd.dfast.a<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">ar: writing objects/sun4/libggrd.dfast.a<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">ar: creating objects/sun4/libggrd.dbg.a<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">ar: writing objects/sun4/libggrd.dbg.a<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">ar: creating objects/sun4/librick.a<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">ar: writing objects/sun4/librick.a<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">ar: creating objects/sun4/librick.dbg.a<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">ar: writing objects/sun4/librick.dbg.a<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">ld: fatal: library -lm: not found<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">ld: fatal: library -lc: not found<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">ld: fatal: File processing errors. No output written to bin/sun4/hc<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">collect2: ld returned 1 exit status<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">make: *** [bin/sun4/hc] Error 1<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">*/Any advice on how to compile these will be useful. CC is set to gcc<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">and F77 to gfortran for both the machines. /*<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">*/Thanks,/*<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">*/Raj/*<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">*/201C-Seismology/*<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">*/LDEO,Palisades, New York/*<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">_______________________________________________<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">CIG-MC mailing list<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><a href="mailto:CIG-MC@geodynamics.org">CIG-MC@geodynamics.org</a><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><a href="http://geodynamics.org/cgi-bin/mailman/listinfo/cig-mc">http://geodynamics.org/cgi-bin/mailman/listinfo/cig-mc</a><br></blockquote></blockquote><br>-- <br>Thorsten Becker &nbsp;- University of Southern California<br><a href="http://geodynamics.usc.edu/~becker/">http://geodynamics.usc.edu/~becker/</a><br></div></blockquote></div><br></div></body></html>