[ncl-install] NCL 5.0.0 GCTP compilation

Quang Nguyen quangvnes at yahoo.com
Wed Dec 3 05:04:16 MST 2008


Dear ALL, 

Another issue related to GCTP: 
( http://www.ncl.ucar.edu/Download/build_from_src.shtml )

For gctp, I download and installed gctp version 2.0. However, the result is geolib.a instead of libGctp.a as the suggestion by the support in the above websie. Then I just rename geolib.a by libGctp.a .
After that, I re-compile NCL:

$NCARG/ni/src/ncl # make
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 NclHDFEOS.o NclGRIB2.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/ncarg/lib -L/usr/X11R6/lib -lnetcdf  -lhdfeos -lGctp -lmfhdf -ldf -ljpeg -lz -ludunits -lv5d -lgrib2c -ljasper -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 -lg2c -lgcc -L/opt/intel/fce/10.1.012/lib -lifort -lm -lm  -ldl
/usr/local/lib/libGctp.a(cproj.o): In function `sincos':
cproj.c:(.text+0x0): multiple definition of `sincos'
/usr/local/lib/libhdfeos.a(GDapi.o):GDapi.c:(.text+0x2b19): first defined here
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: cannot find -lg2c
collect2: ld returned 1 exit status
make: *** [ncl] Error 1

Please help me out these errors.
Thanks you
Quang
NCHMF-Vietnam


      


More information about the ncl-install mailing list