[ncl-install] Some corrections to NCL installation troubleshooting

Jan Ploski Jan.Ploski at offis.de
Mon Aug 4 02:59:37 MDT 2008


Mary Haley <haley at ucar.edu> schrieb am 08/01/2008 11:57:41 PM:

> 
> Hi Jan,
> 
> Thanks for pointing out these inaccuracies. The HDF one has me a
> little puzzled, because in our current versions of NclHDF.c and
> NclHDFEOS.c, we are not including netcdf.h in any fashion.  I imagine
> there are some changes needed, like to another *.h file.  I'll try to
> track this down.

Hi Mary,

You can see the #include<hdf/netcdf.h> in the 5.0.0 source code downloaded 
from the ESG web site.

> 
> As for the "wrapit.c" problem: when you copied it to
> $NCARG/ni/src/mkwrap, did it have an older date than the other files
> in that directory? I think that might have caused it not to rebuild
> correctly. Still, it's a good idea for us to add to those instructions
> that a "make clean" should be done first.

Unfortunately I can no longer tell what messed up the configuration. 
However, I'm sure that I touched wrapit.c as suggested in the installation 
guide, so it must have been something else.

Today I discovered another build glitch (on another Linux machine). When 
it came to linking in the ni/src/ncl directory:

gcc -ansi -fPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -O  -rdynamic 
-o ncl Ncl.o io.o NclHLUObj.o scanner.o parser.o MathFuncs.o 
NclTypedouble.o NclTypefloat.o                  NclTypeint.o 
NclTypelogical.o                   NclTypelong.o NclTypeobj.o  
NclTypeshort.o NclTypestring.o                  NclTypebyte.o 
NclTypechar.o TypeSupport.o                       NclMultiDValData.o 
AddFileFormats.o AttSupport.o DataSupport.o                  FileSupport.o 
Formats.o GetGrids.o                      InitData.o Memory.o NclAtt.o 
NclCCM.o                   NclCoordVar.o NclData.o NclFile.o NclFileVar.o  
               NclGRIB.o NclHDF.o NclMultiDValnclfileData.o  NclNetCdf.o 
NclOneDValCoordData.o NclType.o                     NclTypelist.o NclVar.o 
VarSupport.o                     ctoiee.o date.o qu2reg3.o rowina3.o 
scm0.o ncepcode.o   AddBuiltIns.o AddHLUObjs.o AddIntrinsics.o Execute.o   
                 Machine.o OpsFuncs.o Printtoken.o SrcTree.o  Symbol.o 
Translate.o                    NclHLUVar.o HLUSupport.o  
NclMultiDValHLUObjData.o                        BuiltInSupport.o 
BuiltInFuncs.o                         HLUFunctions.o yywrap.o craybin.o   
                 complete.o editline.o sysunix.o ListSupport.o  NclList.o 
NclMultiDVallistData.o fortranio.o  -L../../.././ni/src/lib/nfp -lnfp 
-L../../.././ni/src/lib/nfpfort -lnfpfort -L../../.././ni/src/lib/hlu 
-lhlu -L../../.././ncarg2d/src/libncarg -lncarg 
-L../../.././ncarg2d/src/libncarg_gks -lncarg_gks 
-L../../.././common/src/libncarg_c -lncarg_c -L../../.././ngmath/src/lib 
-lngmath -L/usr/local/ncl_ncarg-5.0.0/lib -L/usr/X11R6/lib64 
-L/usr/local/HDF4.2r3/lib -lnetcdf   -lmfhdf -ldf -ljpeg -lz 
-L../../.././external/sphere3.1_dp -lsphere3.1_dp 
-L../../.././external/fftpack5_dp -lfftpack5_dp 
-L../../.././external/lapack -llapack_ncl -L../../.././external/blas 
-lblas_ncl -lX11 -lXext -lgcc -lm -lm  -ldl 
qu2reg3.o: In function `qu2reg3_':
qu2reg3.f:(.text+0xb2): undefined reference to `_gfortran_st_write'
qu2reg3.f:(.text+0xc2): undefined reference to 
`_gfortran_transfer_integer'  qu2reg3.f:(.text+0xca): undefined reference 
to `_gfortran_st_write_done'
...


To fix this error, I ran the above command manually with 'gcc' replaced by 
'gfortran'. I guess this should be corrected somewhere in the makefile 
generation process.

Regards,
Jan Ploski

--
Dipl.-Inform. (FH) Jan Ploski
OFFIS
FuE Bereich Energie | R&D Division Energy
Escherweg 2  - 26121 Oldenburg - Germany
Phone/Fax: +49 441 9722 - 184 / 202
E-Mail: Jan.Ploski at offis.de
URL: http://www.offis.de


More information about the ncl-install mailing list