[ncl-install] Installing opendap-enabled NCL

Mateus Teixeira mateus.teixeira at gmail.com
Fri Sep 18 12:11:21 MDT 2009


Mary,

I did what you have suggested and it works. I could successfuly
compile my program and use OPeNDAP functionality of NCL. Thanks a lot.

Just to inform you, below are the errors I getting when compiling
programs with opendap-enabled NCL binaries compiled with gcc 421.

Here is the line that compile the program:

ifort   -o terrain.exe -i_dynamic ia.o anal2.o bint.o bndry.o crlnd.o
crter.o dfclrs.o exaint.o finprt.o fudger.o interp.o label.o lakes.o
latlon.o llxy.o mxmnll.o nestll.o oned.o outpt.o output.o pltter.o
rdldtr.o replace.o rflp.o setup.o sint.o smth121.o smther.o smthtr.o
terdrv.o terrain.o tfudge.o vtran.o xyobsll.o hiresmap.o plots.o
crvst.o crvst30s.o nestbdy.o crsoil.o  equate.o  labels.o  labelv.o
patch.o plotcon.o watercheck.o crlwmsk.o soil_tg.o water_vfr.o
check_data.o terrestial_info.o write_fieldrec.o
-L/usr/local/ncarg_opendap//lib -lncarg -lncarg_gks -lncarg_c
-L/usr/lib -lpng -lgfortran -lX11
-L/usr/lib/gcc/i386-redhat-linux/3.4.6 -lg2c

And here are some lines of the errors:

/usr/local/ncarg_opendap//lib/libncarg.a(cpcldm.o): In function
`cpcldm_':
cpcldm.f:(.text+0x8ab): undefined reference to `_gfortran_copy_string'
cpcldm.f:(.text+0xaf5): undefined reference to `_gfortran_pow_r4_i4'
cpcldm.f:(.text+0xb79): undefined reference to `_gfortran_pow_r4_i4'
cpcldm.f:(.text+0xf36): undefined reference to `_gfortran_copy_string'

....
....
....

   /usr/local/ncarg_opendap//lib/libncarg_gks.a(gcrsg.o): In function `gcrsg_':
gcrsg.f:(.text+0x16c): undefined reference to `_gfortran_copy_string'
gcrsg.f:(.text+0x723): undefined reference to `_gfortran_copy_string'
/usr/local/ncarg_opendap//lib/libncarg_gks.a(gcsgwk.o): In function `gcsgwk_':
gcsgwk.f:(.text+0x2b6): undefined reference to `_gfortran_copy_string'
gcsgwk.f:(.text+0x2ec): undefined reference to `_gfortran_copy_string'
/usr/local/ncarg_opendap//lib/libncarg_gks.a(gdsg.o): In function `gdsg_':
gdsg.f:(.text+0x16e): undefined reference to `_gfortran_copy_string'
/usr/local/ncarg_opendap//lib/libncarg_gks.a(gdsg.o):gdsg.f:(.text+0x1b2):
more undefined references to `_gfortran_copy_string' follow
make[1]: [terrain.exe] Erro 1 (ignorado)


Best regards,

Mateus


2009/9/18 Mary Haley <haley at ucar.edu>:
>
> Mateus,
>
> I assume you want a 32-bit binary, because we do have a 64-bit opendap
> binary built with V4.3.2.  Unfortunately, I don't have a 32-bit
> version.
>
> We might be able to fix the compilation problems with the current
> version that you have. What exact error messages are you getting?
>
> If the V4.2.1 version of "ncl" is working for you, then the other
> possibility is that you can keep the 4.3.2 version of the NCL package
> installed, but then copy over just the "ncl" executable from the
> V4.2.1 package.
>
> For example, let's say V4.3.2 of the non-opendap enabled NCL is
> installed in /usr/local/{bin,lib,include}. This means that
> /usr/local/bin/ncl is not opendap-enabled.
>
> Then, assume you have the opendap V4.2.1 installed in
> /home/mateus/{bin,include,lib}.  The /home/mateus/bin/ncl is thus
> opendap-enabled.
>
> You can simply do the following:
>
>  mv /usr/local/bin/ncl /usr/local/bin/ncl.nondap
>  cp /home/mateus/bin/ncl /usr/local/bin/.
>
>
> --Mary
>
> On Fri, 18 Sep 2009, Mateus Teixeira wrote:
>
>> Dear NCL maintainers,
>>
>> I would like to install the opendap-enabled NCL in my Fedora 10
>> system. It has gcc version 4.3.2.
>> I have installed the binaries compiled with gcc 4.2.1, but I'm having
>> a lot of compilation errors in programs that use ncar graphics.
>> These compilation problems disappear when I use the
>> non-opendap-enabled NCL compiled with gcc version 4.3.2.
>>
>> Could be possible to make available a version of opendap-enabled NCL
>> binaries compiled with gcc version 4.3.2?
>>
>> Best regards,
>>
>>
>> --
>> Mateus da Silva Teixeira
>> Meteorologista
>> Instituto de Pesquisas Meteorológicas - IPMet
>> Universidade Estadual Paulista - UNESP
>> Av. Luis Edmundo Carrijo Coube, 14-01 - Cx. Postal 281 - CEP 17033-360
>> Bauru - SP - Brasil
>> Fone: +55 14 3103-6030 / fax: 3203-3649
>>
>> Registered Linux User #466740 (http://counter.li.org/)
>> _______________________________________________
>> ncl-install mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-install
>



-- 
Mateus da Silva Teixeira
Meteorologista
Instituto de Pesquisas Meteorológicas - IPMet
Universidade Estadual Paulista - UNESP
Av. Luis Edmundo Carrijo Coube, 14-01 - Cx. Postal 281 - CEP 17033-360
Bauru - SP - Brasil
Fone: +55 14 3103-6030 / fax: 3203-3649

Registered Linux User #466740 (http://counter.li.org/)


More information about the ncl-install mailing list