title: Error with Dwarf version when compile program associated with netcdf
body: <p>I'm trying to compile a program which is a chemical emission preprocessor.</p>
  <p>This is the offical tutorial of its compile process.</p>
  <hr />
  <p><a href="https://i.stack.imgur.com/Ez2MB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ez2MB.png" alt="enter image description here" /></a></p>
  <hr />
  <p>I have already upload the original source code <a href="https://drive.google.com/open?id=0B7FE0kxAL8kQdnN0NEJ3Z1d3a0E" rel="nofollow noreferrer">here</a>.</p>
  <p>With predefine the <code>netcdf_dir</code>, the source code should be compiled well.</p>
  <p>But when I use <code>./make_util megan_bio_emiss</code>, the error appear showing like:</p>
  <pre><code>=========================================================================
  Using gfortran fortran compiler
  =============================================================================
  =============================================================================
  netcdf top level directory = /disk2/hyf/lib/netcdf
  =============================================================================
  gfortran -g -ffree-line-length-none  -c -I/disk2/hyf/lib/netcdf/include misc_definitions_module.f90
  gfortran -g -ffree-line-length-none  -c -I/disk2/hyf/lib/netcdf/include constants_module.f90
  gfortran -g -ffree-line-length-none  -c -I/disk2/hyf/lib/netcdf/include bio_types.f90 
  ......
  ...... 
  ......
  
  gfortran -o megan_bio_emiss misc_definitions_module.o constants_module.o   bio_types.o area_mapper.o bio_emiss.o -L/disk2/hyf/lib/netcdf/lib -lnetcdf -lnetcdff 
  /usr/bin/ld: Dwarf Error: found dwarf version '4', this reader only handles version 2 information.
  /disk2/hyf/lib/netcdf/lib/libnetcdff.a(fort-attio.o): In function `nf_put_att_text_':
  fort-attio.c:(.text+0x11c): undefined reference to `nc_put_att_text'
  ......
  </code></pre>
  <p>It seems that something(<em>dwarf?</em>) on the source code is uncompatiable with my system.</p>
  <blockquote>
  <p>usr/bin/ld: Dwarf Error: found dwarf version '4', this reader only handles version 2 information.</p>
  </blockquote>
  <p>By the way, the operation system I'm using is CentOS 5.0 &amp; I have installed netCDF-4.1.3(The last version that C &amp; Fortran binary code are combined ) with GCC-4.9.2</p>
  <p>Is there something I can change in the <strong>Makefile</strong> of the <strong>megan_bio_emiss</strong> to successfully compile?</p>
  <p>Any advice will be appreciate!</p>
  <p>-------------------------------- 2016-9-10 ADD --------------------------------</p>
  <p>I add the <code>-gdwarf-2</code> swith to the specific line of Makefile.
  <a href="https://i.stack.imgur.com/kWARP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kWARP.png" alt="enter image description here" /></a></p>
  <p>The compilation still got wrong.</p>
  <p><a href="https://i.stack.imgur.com/t3M5V.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/t3M5V.png" alt="enter image description here" /></a></p>