Dear all,<br><br><p>
I have downloaded the ncl_ncarg-6.0.0.Linux_RedHat_x86_64_nodap_gcc412</p><p>My gfortran version is 4.7.0<br></p>When I try to run the sample NCL script (ng4ex gsun01n) it works fine.
<br>
However, the ncarg sample produces errors:
<br><br>[root@T620 ~]# ncargex cpex08 -clean <br><br>NCAR Graphics Fortran Example <cpex08><br><br> Copying cpex08.f<br><br> Copying cpexcc.f<br><br>Compiling and linking...<br>gfortran -fPIC -fno-second-underscore -O -o cpex08 cpexcc.f cpex08.f -L/usr/local/ncarg/lib -L/usr/X11R6/lib64 -lncarg -lncarg_gks -lncarg_c -lX11 -lXext<br>
/usr/local/ncarg/lib/libncarg.a(cpcldm.o): In function `cpcldm_':<br>cpcldm.f:(.text+0x7e5): undefined reference to `_gfortran_copy_string'<br>cpcldm.f:(.text+0xa17): undefined reference to `_gfortran_pow_r4_i4'<br>
cpcldm.f:(.text+0xa86): undefined reference to `_gfortran_pow_r4_i4'<br>cpcldm.f:(.text+0xdcf): undefined reference to `_gfortran_copy_string'<br>cpcldm.f:(.text+0xe59): undefined reference to `_gfortran_copy_string'<br>
cpcldm.f:(.text+0xf28): undefined reference to `_gfortran_copy_string'<br>cpcldm.f:(.text+0x1014): undefined reference to `_gfortran_copy_string'<br>cpcldm.f:(.text+0x10ad): undefined reference to `_gfortran_copy_string'<br>
/usr/local/ncarg/lib/libncarg.a(cpcldm.o):cpcldm.f:(.text+0x114f): more undefined references to `_gfortran_copy_string' follow<br>/usr/local/ncarg/lib/libncarg.a(cppkcl.o): In function `cppkcl_':<br>cppkcl.f:(.text+0x459): undefined reference to `_gfortran_pow_r4_i4'<br>
cppkcl.f:(.text+0x521): undefined reference to `_gfortran_pow_r4_i4'<br>cppkcl.f:(.text+0x553): undefined reference to `_gfortran_pow_r4_i4'<br>cppkcl.f:(.text+0x704): undefined reference to `_gfortran_copy_string'<br>
cppkcl.f:(.text+0x73f): undefined reference to `_gfortran_copy_string'<br>/usr/local/ncarg/lib/libncarg.a(cppklb.o): In function `cppklb_':<br>cppklb.f:(.text+0x4b1): undefined reference to `_gfortran_pow_r4_i4'<br>
cppklb.f:(.text+0x568): undefined reference to `_gfortran_pow_r4_i4'<br>cppklb.f:(.text+0x5ee): undefined reference to `_gfortran_copy_string'<br>cppklb.f:(.text+0x607): undefined reference to `_gfortran_copy_string'<br>
cppklb.f:(.text+0x861): undefined reference to `_gfortran_copy_string'<br>/usr/local/ncarg/lib/libncarg.a(cpsetr.o): In function `cpsetr_':<br>cpsetr.f:(.text+0x60): undefined reference to `_gfortran_copy_string'<br>
cpsetr.f:(.text+0x77): undefined reference to `_gfortran_copy_string'<br>/usr/local/ncarg/lib/libncarg.a(cpsetr.o):cpsetr.f:(.text+0x39f): more undefined references to `_gfortran_copy_string' follow<br>/usr/local/ncarg/lib/libncarg.a(cpinit.o): In function `cpinit_':<br>
cpinit.f:(.text+0x145a): undefined reference to `_gfortran_pow_r4_i4'<br>/usr/local/ncarg/lib/libncarg.a(cpinrc.o): In function `cpinrc_':<br>cpinrc.f:(.text+0x8d): undefined reference to `_gfortran_pow_r4_i4'<br>
cpinrc.f:(.text+0xb9): undefined reference to `_gfortran_copy_string'<br>cpinrc.f:(.text+0x189): undefined reference to `_gfortran_copy_string'<br>/usr/local/ncarg/lib/libncarg.a(cpnumb.o): In function `cpnumb_':<br>
cpnumb.f:(.text+0xf8): undefined reference to `_gfortran_copy_string'<br>cpnumb.f:(.text+0x41b): undefined reference to `_gfortran_copy_string'<br>cpnumb.f:(.text+0x558): undefined reference to `_gfortran_copy_string'<br>
/usr/local/ncarg/lib/libncarg.a(cpnumb.o):cpnumb.f:(.text+0x9ca): more undefined references to `_gfortran_copy_string' follow<br>/usr/local/ncarg/lib/libncarg.a(dpgetc.o): In function `dpgetc_':<br>dpgetc.f:(.text+0x52): undefined reference to `_gfortran_internal_malloc'<br>
dpgetc.f:(.text+0x83): undefined reference to `_gfortran_copy_string'<br>dpgetc.f:(.text+0x8b): undefined reference to `_gfortran_internal_free'<br>dpgetc.f:(.text+0x10a): undefined reference to `_gfortran_copy_string'<br>
dpgetc.f:(.text+0x16e): undefined reference to `_gfortran_copy_string'<br>dpgetc.f:(.text+0x1d2): undefined reference to `_gfortran_copy_string'<br>dpgetc.f:(.text+0x23e): undefined reference to `_gfortran_copy_string'<br>
dpgetc.f:(.text+0x24a): undefined reference to `_gfortran_internal_malloc'<br>dpgetc.f:(.text+0x27b): undefined reference to `_gfortran_copy_string'<br>dpgetc.f:(.text+0x283): undefined reference to `_gfortran_internal_free'<br>
/usr/local/ncarg/lib/libncarg.a(dpgetr.o): In function `dpgetr_':<br>dpgetr.f:(.text+0x50): undefined reference to `_gfortran_internal_malloc'<br>dpgetr.f:(.text+0x81): undefined reference to `_gfortran_copy_string'<br>
dpgetr.f:(.text+0x89): undefined reference to `_gfortran_internal_free'<br>dpgetr.f:(.text+0x5c6): undefined reference to `_gfortran_internal_malloc'<br>dpgetr.f:(.text+0x5f7): undefined reference to `_gfortran_copy_string'<br>
dpgetr.f:(.text+0x5ff): undefined reference to `_gfortran_internal_free'<br>/usr/local/ncarg/lib/libncarg.a(dpsetc.o): In function `dpsetc_':<br>dpsetc.f:(.text+0x96): undefined reference to `_gfortran_internal_malloc'<br>
dpsetc.f:(.text+0xc7): undefined reference to `_gfortran_copy_string'<br>dpsetc.f:(.text+0xcf): undefined reference to `_gfortran_internal_free'<br>dpsetc.f:(.text+0x146): undefined reference to `_gfortran_copy_string'<br>
dpsetc.f:(.text+0x1a2): undefined reference to `_gfortran_copy_string'<br>dpsetc.f:(.text+0x1fe): undefined reference to `_gfortran_copy_string'<br>dpsetc.f:(.text+0x277): undefined reference to `_gfortran_copy_string'<br>
dpsetc.f:(.text+0x283): undefined reference to `_gfortran_internal_malloc'<br>dpsetc.f:(.text+0x2b4): undefined reference to `_gfortran_copy_string'<br>dpsetc.f:(.text+0x2bc): undefined reference to `_gfortran_internal_free'<br>
/usr/local/ncarg/lib/libncarg.a(dpsetr.o): In function `dpsetr_':<br>dpsetr.f:(.text+0x94): undefined reference to `_gfortran_internal_malloc'<br>dpsetr.f:(.text+0xc5): undefined reference to `_gfortran_copy_string'<br>
dpsetr.f:(.text+0xcd): undefined reference to `_gfortran_internal_free'<br>dpsetr.f:(.text+0x7e7): undefined reference to `_gfortran_internal_malloc'<br>dpsetr.f:(.text+0x818): undefined reference to `_gfortran_copy_string'<br>
dpsetr.f:(.text+0x820): undefined reference to `_gfortran_internal_free'<br>/usr/local/ncarg/lib/libncarg.a(mdpbla.o): In function `mdpbla_':<br>mdpbla.f:(.text+0x31eb): undefined reference to `_gfortran_copy_string'<br>
/usr/local/ncarg/lib/libncarg.a(mdpita.o): In function `mdpita_':<br>mdpita.f:(.text+0x3ce): undefined reference to `_gfortran_pow_r8_i4'<br>mdpita.f:(.text+0x448): undefined reference to `_gfortran_pow_r8_i4'<br>
/usr/local/ncarg/lib/libncarg.a(mdpitm.o): In function `mdpitm_':<br>mdpitm.f:(.text+0x3db): undefined reference to `_gfortran_pow_r8_i4'<br>mdpitm.f:(.text+0x455): undefined reference to `_gfortran_pow_r8_i4'<br>
/usr/local/ncarg/lib/libncarg.a(mdlnam.o): In function `mdlnam_':<br>mdlnam.f:(.text+0x98): undefined reference to `_gfortran_internal_malloc'<br>mdlnam.f:(.text+0xca): undefined reference to `_gfortran_internal_malloc'<br>
mdlnam.f:(.text+0xf3): undefined reference to `_gfortran_internal_free'<br>mdlnam.f:(.text+0x10b): undefined reference to `_gfortran_copy_string'<br>mdlnam.f:(.text+0x113): undefined reference to `_gfortran_internal_free'<br>
mdlnam.f:(.text+0x185): undefined reference to `_gfortran_internal_malloc'<br>mdlnam.f:(.text+0x1b6): undefined reference to `_gfortran_internal_malloc'<br>mdlnam.f:(.text+0x1e3): undefined reference to `_gfortran_internal_free'<br>
mdlnam.f:(.text+0x1ee): undefined reference to `_gfortran_internal_malloc'<br>mdlnam.f:(.text+0x216): undefined reference to `_gfortran_internal_free'<br>mdlnam.f:(.text+0x23c): undefined reference to `_gfortran_copy_string'<br>
mdlnam.f:(.text+0x249): undefined reference to `_gfortran_internal_free'<br>mdlnam.f:(.text+0x354): undefined reference to `_gfortran_copy_string'<br>mdlnam.f:(.text+0x50e): undefined reference to `_gfortran_copy_string'<br>
mdlnam.f:(.text+0x5a5): undefined reference to `_gfortran_copy_string'<br>mdlnam.f:(.text+0x6a6): undefined reference to `_gfortran_copy_string'<br>mdlnam.f:(.text+0x70f): undefined reference to `_gfortran_copy_string'<br>
/usr/local/ncarg/lib/libncarg.a(mdlnam.o):mdlnam.f:(.text+0xc1c): more undefined references to `_gfortran_copy_string' follow<br>/usr/local/ncarg/lib/libncarg.a(mdlndr.o): In function `mdlndr_':<br>mdlndr.f:(.text+0x81): undefined reference to `_gfortran_internal_malloc'<br>
mdlndr.f:(.text+0xb0): undefined reference to `_gfortran_internal_malloc'<br>mdlndr.f:(.text+0xd9): undefined reference to `_gfortran_internal_free'<br>mdlndr.f:(.text+0xf1): undefined reference to `_gfortran_copy_string'<br>
mdlndr.f:(.text+0xf9): undefined reference to `_gfortran_internal_free'<br>mdlndr.f:(.text+0x165): undefined reference to `_gfortran_internal_malloc'<br>mdlndr.f:(.text+0x190): undefined reference to `_gfortran_internal_malloc'<br>
mdlndr.f:(.text+0x1ba): undefined reference to `_gfortran_internal_free'<br>mdlndr.f:(.text+0x1c5): undefined reference to `_gfortran_internal_malloc'<br>mdlndr.f:(.text+0x1ed): undefined reference to `_gfortran_internal_free'<br>
mdlndr.f:(.text+0x213): undefined reference to `_gfortran_copy_string'<br>mdlndr.f:(.text+0x220): undefined reference to `_gfortran_internal_free'<br>mdlndr.f:(.text+0x31e): undefined reference to `_gfortran_copy_string'<br>
mdlndr.f:(.text+0x4d2): undefined reference to `_gfortran_copy_string'<br>mdlndr.f:(.text+0x563): undefined reference to `_gfortran_copy_string'<br>mdlndr.f:(.text+0x5d4): undefined reference to `_gfortran_copy_string'<br>
mdlndr.f:(.text+0x636): undefined reference to `_gfortran_copy_string'<br>/usr/local/ncarg/lib/libncarg.a(lbsetr.o):lbsetr.f:(.text+0x5a): more undefined references to `_gfortran_copy_string' follow<br>/usr/local/ncarg/lib/libncarg.a(plchhq.o): In function `plchhq_':<br>
plchhq.f:(.text+0x262): undefined reference to `_gfortran_pow_r4_i4'<br>/usr/local/ncarg/lib/libncarg.a(pcgetc.o): In function `pcgetc_':<br>pcgetc.f:(.text+0xbd): undefined reference to `_gfortran_copy_string'<br>
pcgetc.f:(.text+0x151): undefined reference to `_gfortran_copy_string'<br>pcgetc.f:(.text+0x17e): undefined reference to `_gfortran_copy_string'<br>/usr/local/ncarg/lib/libncarg.a(pcfopn.o): In function `pcfopn_':<br>
pcfopn.f:(.text+0x39): undefined reference to `_gfortran_copy_string'<br>pcfopn.f:(.text+0xa5): undefined reference to `_gfortran_copy_string'<br>pcfopn.f:(.text+0x123): undefined reference to `_gfortran_internal_malloc'<br>
pcfopn.f:(.text+0x160): undefined reference to `_gfortran_copy_string'<br>pcfopn.f:(.text+0x168): undefined reference to `_gfortran_internal_free'<br>pcfopn.f:(.text+0x295): undefined reference to `_gfortran_copy_string'<br>
pcfopn.f:(.text+0x2bd): undefined reference to `_gfortran_copy_string'<br>pcfopn.f:(.text+0x2f6): undefined reference to `_gfortran_internal_malloc'<br>pcfopn.f:(.text+0x33a): undefined reference to `_gfortran_copy_string'<br>
pcfopn.f:(.text+0x342): undefined reference to `_gfortran_internal_free'<br>pcfopn.f:(.text+0x38d): undefined reference to `_gfortran_copy_string'<br>/usr/local/ncarg/lib/libncarg.a(sfsgfa.o): In function `sfsgfa_':<br>
sfsgfa.f:(.text+0x4c7): undefined reference to `_gfortran_pow_r4_i4'<br>/usr/local/ncarg/lib/libncarg.a(seter.o): In function `seter_':<br>seter.f:(.text+0x31f): undefined reference to `_gfortran_copy_string'<br>
/usr/local/ncarg/lib/libncarg.a(bcgetr.o): In function `bcgetr_':<br>bcgetr.f:(.text+0x25): undefined reference to `_gfortran_copy_string'<br>/usr/local/ncarg/lib/libncarg.a(bcsetr.o): In function `bcsetr_':<br>
bcsetr.f:(.text+0x25): undefined reference to `_gfortran_copy_string'<br>/usr/local/ncarg/lib/libncarg.a(icfell.o): In function `icfell_':<br>icfell.f:(.text+0x9d): undefined reference to `_gfortran_copy_string'<br>
icfell.f:(.text+0xb7): undefined reference to `_gfortran_internal_malloc'<br>icfell.f:(.text+0xe4): undefined reference to `_gfortran_internal_malloc'<br>icfell.f:(.text+0x10a): undefined reference to `_gfortran_internal_free'<br>
icfell.f:(.text+0x11d): undefined reference to `_gfortran_copy_string'<br>icfell.f:(.text+0x125): undefined reference to `_gfortran_internal_free'<br>icfell.f:(.text+0x147): undefined reference to `_gfortran_copy_string'<br>
/usr/local/ncarg/lib/libncarg.a(cpinrk.o): In function `cpinrk_':<br>cpinrk.f:(.text+0x29): undefined reference to `_gfortran_pow_r4_i4'<br>/usr/local/ncarg/lib/libncarg.a(mdgetc.o): In function `mdgetc_':<br>
mdgetc.f:(.text+0x8d): undefined reference to `_gfortran_copy_string'<br>mdgetc.f:(.text+0xdc): undefined reference to `_gfortran_copy_string'<br>mdgetc.f:(.text+0x12f): undefined reference to `_gfortran_copy_string'<br>
mdgetc.f:(.text+0x183): undefined reference to `_gfortran_copy_string'<br>mdgetc.f:(.text+0x1d6): undefined reference to `_gfortran_copy_string'<br>/usr/local/ncarg/lib/libncarg.a(mdgetc.o):mdgetc.f:(.text+0x226): more undefined references to `_gfortran_copy_string' follow<br>
/usr/local/ncarg/lib/libncarg.a(mdpcem.o): In function `mdpcem_':<br>mdpcem.f:(.text+0x42): undefined reference to `_gfortran_internal_malloc'<br>mdpcem.f:(.text+0x72): undefined reference to `_gfortran_copy_string'<br>
mdpcem.f:(.text+0x7a): undefined reference to `_gfortran_internal_free'<br>/usr/local/ncarg/lib/libncarg.a(mdpio.o): In function `mdpio_':<br>mdpio.f:(.text+0xe7): undefined reference to `_gfortran_copy_string'<br>
/usr/local/ncarg/lib/libncarg.a(mdpit.o): In function `mdpit_':<br>mdpit.f:(.text+0x47a): undefined reference to `_gfortran_pow_r8_i4'<br>mdpit.f:(.text+0x4f4): undefined reference to `_gfortran_pow_r8_i4'<br>
/usr/local/ncarg/lib/libncarg.a(mpdbdi.o): In function `mpdbdi_':<br>mpdbdi.f:(.text+0x31): undefined reference to `_gfortran_copy_string'<br>/usr/local/ncarg/lib/libncarg.a(plchmq.o): In function `plchmq_':<br>
plchmq.f:(.text+0x14b): undefined reference to `_gfortran_pow_r4_i4'<br>/usr/local/ncarg/lib/libncarg.a(plchlq.o): In function `plchlq_':<br>plchlq.f:(.text+0x1d9): undefined reference to `_gfortran_pow_r4_i4'<br>
/usr/local/ncarg/lib/libncarg.a(cpux.o): In function `cpux_':<br>cpux.f:(.text+0xc4): undefined reference to `_gfortran_pow_r4_i4'<br>/usr/local/ncarg/lib/libncarg.a(cpuy.o): In function `cpuy_':<br>cpuy.f:(.text+0xc9): undefined reference to `_gfortran_pow_r4_i4'<br>
/usr/local/ncarg/lib/libncarg_gks.a(gerhnd.o): In function `gerhnd_':<br>gerhnd.f:(.text+0xdc): undefined reference to `_gfortran_copy_string'<br>/usr/local/ncarg/lib/libncarg_gks.a(gzgte2.o): In function `gzgte2_':<br>
gzgte2.f:(.text+0x66): undefined reference to `_gfortran_copy_string'<br>/usr/local/ncarg/lib/libncarg_gks.a(gzputs.o): In function `gzputs_':<br>gzputs.f:(.text+0x7c): undefined reference to `_gfortran_copy_string'<br>
gzputs.f:(.text+0xf8): undefined reference to `_gfortran_copy_string'<br>gzputs.f:(.text+0x17d): undefined reference to `_gfortran_copy_string'<br>/usr/local/ncarg/lib/libncarg_gks.a(gzopwk.o):gzopwk.f:(.text+0x516): more undefined references to `_gfortran_copy_string' follow<br>
collect2: error: ld returned 1 exit status<br><br>The compile and link failed.<br><br><br><br>Thanks for your help!<br><br>