Hi David, <br><br>I friend of my told me about an answer in NCL&#39;s FAQ section, more specifically:<br><br><a href="http://www.ncl.ucar.edu/FAQ/#misc_003">http://www.ncl.ucar.edu/FAQ/#misc_003</a><br><br>At home, on my Fedora 8 installation, the suggestions given in this link works perfectly. I could compile MM5&#39;s TERRAIN program without problem. But, there is a issue not covered by this answer: the problem with PNG library. This problem was solved when I included -lpng in the list of libraries used in compilation (in fact, I saw something related with PNG library on site about building NCL from source). I suggest include a tip about -lpng in this same answer to make it more complete.<br>
<br>At work, the same didn&#39;t happen. I&#39;m using Fedora 10 and even including -lgfortran it continues giving undefined references related with &#39;_gfortran.....&#39;. The problem with PNG library didn&#39;t happen because -lpng did work.<br>
<br>It appears that newer libraries provided by Fedora 10 aren&#39;t compatible with NCL/NCARG precompiled version.<br><br>I think that I&#39;ll have to compile NCARG with intel compiler in order to compile successfully.<br>
<br>Best regards,<br><br>Mateus<br><br>PS.: Below, gfortran, gcc, and libgfortran installed on Fedora 10:<br><br>$ gfortran -v<br>Using built-in specs.<br>Target: i386-redhat-linux<br>Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=<a href="http://bugzilla.redhat.com/bugzilla">http://bugzilla.redhat.com/bugzilla</a> --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-cpu=generic --build=i386-redhat-linux<br>
Thread model: posix<br>gcc version 4.3.2 20081105 (Red Hat 4.3.2-7) (GCC) <br><br>$ yum list installed |grep libgfortran<br>compat-libgfortran-41.i386              4.1.2-36                       installed<br>libgfortran.i386                        4.3.2-7                        installed<br>
<br>$ gcc -v<br>Using built-in specs.<br>Target: i386-redhat-linux<br>Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=<a href="http://bugzilla.redhat.com/bugzilla">http://bugzilla.redhat.com/bugzilla</a> --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-cpu=generic --build=i386-redhat-linux<br>
Thread model: posix<br>gcc version 4.3.2 20081105 (Red Hat 4.3.2-7) (GCC) <br><br><br><br><br><br><div class="gmail_quote">2009/3/31 David Brown <span dir="ltr">&lt;<a href="mailto:dbrown@ucar.edu">dbrown@ucar.edu</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Mateus,<br>
<br>
Mary Haley is really the expert on compiling using other compilers such as the Intel compilers on Linux. She is on vacation for the next week.<br>
<br>
I don&#39;t really know the answers to your questions, but one question have is do you get any of these linking errors if you try to compile a<br>
a simple C or Fortran example program just using the system compilers.<br>
<br>
 -dave<div><div></div><div class="h5"><br>
<br>
On Mar 29, 2009, at 1:50 PM, Mateus Teixeira wrote:<br>
<br>
</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">
Dear NCL/NCARG users,<br>
<br>
I&#39;m trying to compile MM5 model with NCARG using NCL/NCARG binaries, but I&#39;m getting the following errors when I compile MM5&#39;s TERRAIN program:<br>
<br>
a lot of undefined references to &#39;_gfortran.....<br>
<br>
please see below:<br>
<br>
gesc.f:(.text+0x2820): undefined reference to `_gfortran_copy_string&#39;<br>
gesc.f:(.text+0x28e6): undefined reference to `_gfortran_copy_string&#39;<br>
gesc.f:(.text+0x2959): undefined reference to `_gfortran_copy_string&#39;<br>
gesc.f:(.text+0x2a27): undefined reference to `_gfortran_st_read&#39;<br>
gesc.f:(.text+0x2a3e): undefined reference to `_gfortran_transfer_integer&#39;<br>
gesc.f:(.text+0x2a46): undefined reference to `_gfortran_st_read_done&#39;<br>
<br>
and problems with libpng<br>
<br>
/usr/local/ncarg/lib/libncarg_gks.a(pixwrite_png.o): In function `write_png&#39;:<br>
pixwrite_png.c:(.text+0x64): undefined reference to `png_create_write_struct&#39;<br>
pixwrite_png.c:(.text+0x8d): undefined reference to `png_create_info_struct&#39;<br>
pixwrite_png.c:(.text+0xa7): undefined reference to `png_destroy_write_struct&#39;<br>
pixwrite_png.c:(.text+0xe2): undefined reference to `png_destroy_write_struct&#39;<br>
pixwrite_png.c:(.text+0x119): undefined reference to `png_init_io&#39;<br>
pixwrite_png.c:(.text+0x12e): undefined reference to `png_malloc&#39;<br>
pixwrite_png.c:(.text+0x16d): undefined reference to `png_set_rows&#39;<br>
pixwrite_png.c:(.text+0x1b4): undefined reference to `png_set_IHDR&#39;<br>
pixwrite_png.c:(.text+0x1dd): undefined reference to `png_write_png&#39;<br>
pixwrite_png.c:(.text+0x1ef): undefined reference to `png_destroy_write_struct&#39;<br>
<br>
I have installed the following package in fedora 10:         libpng.1.2.35-1.fc10<br>
<br>
It seems that because I&#39;m using intel compiler with MM5, it isn&#39;t working with libraries compiled with other compilers. My questions are:<br>
<br>
1) Can I compile NCAR Graphics with intel compiler and install it above the files provided with NCL/NCARG binaries download from Earth System Grid site? Could this procedure affect the functioning of NCL?<br>
<br>
2) In the case of png libraries, can this error be associated with the compilation with other compiler instead of intel&#39;s?<br>
<br>
<br>
Best regards,<br>
<br>
-- <br>
Mateus da Silva Teixeira<br>
<br>
Registered Linux User #466740<br></div></div>
_______________________________________________<br>
ncl-install mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-install" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-install</a><br>
</blockquote>
<br>
</blockquote></div><br><br clear="all"><br>-- <br>Mateus da Silva Teixeira<br><br>Registered Linux User #466740<br>