[ncl-install] NCARG-6.0 on CENTOS6

Mary Haley haley at ucar.edu
Wed Jan 4 08:06:09 MST 2012


Hi Vic,

Normally I would tell you to include "-lgfortran" at the end of the compile line, but the "gfortran" compiler
should be doing this for you behind-the-scenes.

It looks like you may be using a different version of the gfortran compiler than what the version of NCL was built with.

Which ncl-6.0 binary did you download?   What does the following report:

    gfortran --version
    

It looks like you may have two different versions of gfortran on your system. You will need to make sure
you are using the correct one, if that's the case.

--Mary

On Jan 3, 2012, at 2:32 PM, Vic Tisone wrote:

> I have installed ncl-6.0 64 bit binaries on our main file server for our 
> LINUX systems--The "ncl gsun01n.ncl" and "ncargex cpex08 -clean" run 
> fine for our Centos 5 systems for checking the installation of the new 
> ncl-6.0--When I run these tests on our new Centos 6 system, the ncl test
> runs fine but the ncargex fails with the following errors below--I only 
> included a few at the top of the error list but many more appear. Was 
> hoping someone might have a clue as to what I am missing or need to fix.
> 
> [tisone at aster ~]$ ncargex cpex08 -clean
> 
> NCAR Graphics Fortran  Example <cpex08>
> 
>   Copying cpex08.f
> 
>   Copying cpexcc.f
> 
> Compiling and linking...
> gfortran -fPIC -fno-second-underscore -O -o cpex08 cpexcc.f cpex08.f 
> -L/opt/local/ncarg-6.0/linux86-64/lib -L/usr/X11R6/lib64 -lncarg 
> -lncarg_gks -lncarg_c -lX11 -lXext
> /opt/local/ncarg-6.0/linux86-64/lib/libncarg.a(cpcldm.o): In function 
> `cpcldm_':
> cpcldm.f:(.text+0x7e5): undefined reference to `_gfortran_copy_string'
> cpcldm.f:(.text+0xa17): undefined reference to `_gfortran_pow_r4_i4'
> cpcldm.f:(.text+0xa86): undefined reference to `_gfortran_pow_r4_i4'
> cpcldm.f:(.text+0xdcf): undefined reference to `_gfortran_copy_string'
> cpcldm.f:(.text+0xe59): undefined reference to `_gfortran_copy_string'
> cpcldm.f:(.text+0xf28): undefined reference to `_gfortran_copy_string'
> cpcldm.f:(.text+0x1014): undefined reference to `_gfortran_copy_string'
> cpcldm.f:(.text+0x10ad): undefined reference to `_gfortran_copy_string'
> /opt/local/ncarg-6.0/linux86-64/lib/libncarg.a(cpcldm.o):cpcldm.f:(.text+0x114f): 
> more undefined references to `_gfortran_copy_string' follow
> /opt/local/ncarg-6.0/linux86-64/lib/libncarg.a(cppkcl.o): In function 
> `cppkcl_':
> 
> I have checked the gfortran pkgs loaded and I have the following 
> installed which I hoped might clear up the problem.
> 
> [tisone at aster ~]$ yum list all|grep gfortran
> 
> compat-libgfortran-41.i686             4.1.2-39.el6 @base
> compat-libgfortran-41.x86_64           4.1.2-39.el6
>                  @anaconda-CentOS-201106060106.x86_64/6.0
> gcc-gfortran.x86_64                    4.4.6-3.el6 @base
> libgfortran.i686                       4.4.6-3.el6  @base
> libgfortran.x86_64                     4.4.6-3.el6  @base
> 
> 
> 
> -- 
>   Vic
> 
> Victor P. Tisone           Computer System Management Team (CSMT)
> tisone at ucar.edu            voice: (303)497-1519  fax: (303)497-1589
> High Altitude Observatory  P.O. Box 3000 Boulder CO 80307  USA
> _______________________________________________
> ncl-install mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-install



More information about the ncl-install mailing list