<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Dear Arthur and others who've posted on my question regarding intel mac, fortran, and sac,<DIV><BR class="khtml-block-placeholder"></DIV><DIV>Thanks very much for the recent posts on this topic. </DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>It is very useful for me to know that sacio.a should not work on the intel mac. (As I wasn't sure whether the problems were with the compilers I was using.)</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I will try sac version 100.1, and will write the list about whether it works or not on the intel mac.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I got my gfortran compiler from <A href="http://hpc.sourceforge.net">http://hpc.sourceforge.net</A>.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>The installation instructions are pretty straighforward (just download and untar).</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>It did not work for me immediately upon installation. At first, I got the following errors:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>gfortran hello.f90</DIV><DIV>/usr/bin/ld: Undefined symbols:</DIV><DIV>___dso_handle</DIV><DIV>collect2: ld returned 1 exit status</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I googled these errors, and tried updating my cctools, as suggested in the help listings on this site: <A href="http://gcc.gnu.org/ml/gcc-bugs/2006-04/msg00895.html">http://gcc.gnu.org/ml/gcc-bugs/2006-04/msg00895.html</A>.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>There is a link for cctools for darwin on: <A href="http://gcc.gnu.org/ml/gcc/2006-03/msg00507.html">http://gcc.gnu.org/ml/gcc/2006-03/msg00507.html</A></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>gfortran seemed to work for me after this (or at least, compiled a simple hello world program)</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Thanks again,</DIV><DIV>Georgia</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><DIV><DIV><DIV>On Aug 19, 2006, at 6:53 PM, Arthur Snoke wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Georgia,</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Before I get to your question/situation, please share where you got your gfortran compiler from.<SPAN class="Apple-converted-space">  </SPAN>I am told that this version is the first one that has "acceptably fast" I/O.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">1.<SPAN class="Apple-converted-space">  </SPAN>I am told that applications written for a PPC can run on the Intel mac.<SPAN class="Apple-converted-space">  </SPAN>The translation is done using "Rosetta."<SPAN class="Apple-converted-space">  </SPAN>Applications will probably run much slower, but they will run.<SPAN class="Apple-converted-space">  </SPAN>Hence you are able to run the PPC compiled version of sac 100.0 from March 2005 on your intel mac.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Version 100.1 that came out in July 2005 has command-line editing using the libedit package.<SPAN class="Apple-converted-space">  </SPAN>Libedit has at least one dynamically loaded library. It would be interesting to see if that version, compiled on a PPC, could run on the intel mac.<SPAN class="Apple-converted-space">  </SPAN>That version can be gotten from IRIS by the same procedure as you got 100.0.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">2.<SPAN class="Apple-converted-space">  </SPAN>I do not think the emulation capabilities goes to the extent of libraries, like sacio.a.<SPAN class="Apple-converted-space">  </SPAN>That is, sacio.a built on a PPC cannot be used to build programs on an intel mac.<SPAN class="Apple-converted-space">  </SPAN>In addition to the endian difference, one has to use a Fortran compiler configured with a gcc 3 compiler, as that binary version of sac 100.0 was built using gcc 3.<SPAN class="Apple-converted-space">  </SPAN>George Hellfrich sent a link to a URL that should allow you to build a g77 that is configured with gcc 3, but that will not help you until you get a sacio.a library built on an intel mac.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">3.<SPAN class="Apple-converted-space">  </SPAN>An earlier posting reported failure in an attempt to build sac from sources on an intel mac.<SPAN class="Apple-converted-space">  </SPAN>Researchers at IRIS are looking into this.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">4.<SPAN class="Apple-converted-space">  </SPAN>I have a PPC with 10.4.7.<SPAN class="Apple-converted-space">  </SPAN>I am using gcc 3.3 and g77 configured with gcc 3.4.6.<SPAN class="Apple-converted-space">  </SPAN>I am told that g77 will not be supported in the future so that one will eventually need to go to gfortran.<SPAN class="Apple-converted-space">  </SPAN>Hence my question above about the source of gfortran configured with gcc 4.2 (experimental).<SPAN class="Apple-converted-space">  </SPAN>I think there is no getting around the fact that one needs a sacio.a built with the same level of gcc (3 or 4) as your Fortran compiler -- and with the same endian.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Not sure how much help this is.<SPAN class="Apple-converted-space">  </SPAN>If you or anyone else see flaws with what I have written, please share.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Arthur</DIV> </BLOCKQUOTE></DIV><BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>-----------------------------</DIV><DIV>Dr. Georgia Cua</DIV><DIV>Swiss Seismological Service</DIV><DIV>Institute of Geophysics</DIV><DIV>ETH Hoenggerberg HPP P</DIV><DIV>CH-8093 Zurich</DIV><DIV>Switzerland</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Tel:  +41-044-633-7574   </DIV><DIV>Fax: +41-044-633-1065   </DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><A href="mailto:georgia.cua@sed.ethz.ch">georgia.cua@sed.ethz.ch</A></DIV><DIV>-----------------------------</DIV><BR class="Apple-interchange-newline"></SPAN></SPAN></SPAN> </DIV><BR></DIV></DIV></BODY></HTML>