Re: Compilation Issue for NCAR Graphics

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Fri Apr 05 2013 - 09:21:00 MDT

Hi Richard,

I *think* when you see the "undefined reference to main" it means that you are using a gfortran that's a different version than what NCAR Graphics was compiled with.

The fix might be to simply include -lgfortran at the end of your compile line.

Or, you may need to make sure you have your environment set up correctly so that when you invoke "gfortran", it is grabbing the right libgfortran.a. According to the error message, it is trying to pull in:

/usr/lib/gcc/x86_64-redhat-linux/4.4.7/libgfortranbegin.a

which indicates this is version 4.4.7 of gfortran. If you type:

   gfortran --version

does it say 4.4.7?

Which NCL/NCAR Graphics binary did you download?

The other error "cannot find -lcairo" means that either you don't have the cairo library installed on your system, or it can't find it.

If you have it installed, then you may need to include a "-L/path/to/cairo/lib" before the "-lcairo", where "/path/to/cairo/lib" should be replaced by wherever "libcairo.a" or "libcairo.so" resides.

--Mary

On Apr 4, 2013, at 6:57 AM, Richard Schmalz - NOAA Federal wrote:

> To Whom it May Concern,
>
> I am having difficulty compiling the NCAR graphics on a 64-bit RedHat Linux machine. Please find enclosed:
>
> 1. script file evaldp_plot.sh
> 2. listing of the contents of /usr/lib64
> 3. listing of the diag.out.1 file, which contains results
> from running ncargf77 command as well as ifort compilation
>
> Any assistance would be much appreciated. Thanks for your help.
>
> Dick Schmalz
> <evaldp_plot.sh><list.lib64><diag.out.1>_______________________________________________
> ncarg-talk mailing list
> ncarg-talk@ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncarg-talk

_______________________________________________
ncarg-talk mailing list
ncarg-talk@ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncarg-talk
Received on Fri Apr 5 09:21:13 2013

This archive was generated by hypermail 2.1.8 : Wed May 15 2013 - 10:21:23 MDT