Hi,
As this is a WRF compile problem, I moved your topic here to the appropriate place.
Take a look at this page:
http://www2.mmm.ucar.edu/wrf/OnLineTutorial/compilation_tutorial.php
This is a compilation tutorial page that we put together to help WRF users to get the code compiled on their machines. It helps to ensure that your environment is set up correctly and that everything is up to date. It also helps you to install the libraries, and then to perform compatibility tests. We suggest that even if you have these libraries built already, you follow this word-for-word and rebuild them exactly as is indicated (they don’t take long), to ensure a greater chance of a successful compilation. If you are able to get through this with no errors in the tests, and then still run into trouble with the compilation, then please let us know. If you have any errors with the compatibility tests, you will need to discuss those with your systems administrator because it means there is a problem with your particular environment and/or the libraries (which we do not have the resources to support).