[ncl-install] Build NCL 6.3.0 with proj4 / gdal
Mike Chen
mike.scchen at gmail.com
Mon Feb 13 23:57:08 MST 2017
Hi,
I tried to build NCL without the mentioned proj4 / gdal and succeed.
(My group is working with MPAS and saved the output with pnetcdf/cdf5, so I
need NCL built with NetCDF above 4.4...)
This time, I'm trying to build it with proj4 and gdal.
I'm mostly successful, but have the following error during building the
"ncl" itself:
Making ./ni/src/ncl
make[3]: Entering directory `/opt/bld/ncl_ncarg-6.3.0/ni/src/ncl'
g\+\+ -ansi -fPIC -fopenmp -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -O
-rdynamic -o ncl Ncl.o io.o NclHLUObj.o NclApi.o guiFuncs.o NclDriver.o
scanner.o parser.o MathFuncs.o NclTypedouble.o NclTypefloat.o NclTypeint.o
NclTypelogical.o NclTypelong.o NclTypeobj.o NclTypeshort.o NclTypestring.o
NclTypeint64.o NclTypeuint64.o NclTypeubyte.o NclTypeushort.o NclTypeuint.o
NclTypeulong.o NclTypebyte.o NclTypechar.o TypeSupport.o NclMultiDValData.o
AddFileFormats.o AttSupport.o DataSupport.o FileSupport.o Formats.o
GetGrids.o AdvancedFileSupport.o NclAdvancedFile.o NclAdvancedGroup.o
InitData.o Memory.o NclAtt.o NclCCM.o NclCoordVar.o NclData.o NclGroup.o
NclFile.o NclFileVar.o NclGRIB.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 NclHDF.o
NclHDFEOS5.o NclNewHDFEOS5.o NclNewHDF5.o NclHDF5.o h5reader.o h5writer.o
NclNetCDF4.o NclGRIB2.o NclOGR.o NclAdvancedOGR.o AddBuiltIns.o
AddHLUObjs.o AddIntrinsics.o Execute.o Machine.o OpsFuncs.o SrcTree.o
Symbol.o Translate.o NclHLUVar.o HLUSupport.o NclMultiDValHLUObjData.o
BuiltInSupport.o BuiltInFuncs.o javaAddProto.o javaAddFuncs.o
userAddProto.o userAddFuncs.o HLUFunctions.o yywrap.o craybin.o complete.o
editline.o sysunix.o ListSupport.o NclList.o NclMultiDVallistData.o
NclProf.o NclTime.o PrintToken.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/opt/ncl_ncarg-6.3.0/lib -L/usr/lib64 -L/opt/cairo/lib
-L/opt/supplibs/lib -lnetcdf -lcurl -lhe5_hdfeos -lGctp -lhdf5_hl -lhdf5
-lsz -lhdfeos -lGctp -lmfhdf -ldf -ljpeg -lz -lhdf5_hl -lhdf5 -lsz -lz
-lgdal -lproj -ljpeg -ludunits2 -lexpat -lgrib2c -ljasper -lpng -lz
-ljpeg -lpng -lz -lcairo -lfontconfig -lpixman-1 -lfreetype -lexpat -lpng
-lz -lpthread -lXrender -lbz2 -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 -lgfortran -lm -lm -ldl
/opt/supplibs/lib/libproj.a(PJ_healpix.o): In function `sign':
/opt/bld/proj.4-4.8.0/src/PJ_healpix.c:81: multiple definition of `sign'
/opt/supplibs/lib/libGctp.a(cproj.o):/opt/bld/hdfeos/gctp/src/cproj.c:333:
first defined here
collect2: ld returned 1 exit status
make[3]: *** [ncl] Error 1
The build was on CentOS 6.8 x64, gcc / gfortran 4.4.7.
The particular libraries in question are:
PROJ4 4.8.0
GDAL 1.11.2
HDFEOS 2.19v1.00 (w/o szip)
Can someone shed some light on this or just tell me to give up? lol
Mike
Dept. of Atmospheric Science
National Taiwan University
mike.scchen [at] gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-install/attachments/20170214/08fd155b/attachment-0001.html
More information about the ncl-install
mailing list