Unable to locate sd_nccreate

From: Craig Tierney <Craig.Tierney_at_nyahnyahspammersnyahnyah>
Date: Mon, 12 May 2008 18:14:22 -0600

I am getting closer to building ncl with ifort. The latest
problem is the following:

ifort -nofor-main -ansi -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -O2 -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/opt/ncl/5.0.0_intel_9.1/lib -L/usr/X11R6/lib64 -L/opt/netcdf/3.6.1_intel_9.1/lib
-L/opt/udunits/1.12.4/lib -L/opt/hdf4/2r1_intel_9.1/lib -L/opt/netcdf/3.6.1_intel_9.1/lib -lnetcdf -lmfhdf -ldf -ljpeg -lz
-ludunits -L../../.././external/sphere3.1_dp -lsphere3.1_dp -L../../.././external/fftpack5_dp -lfftpack5_dp
-L../../.././external/lapack -llapack_ncl -L../../.././external/blas -lblas_ncl -lXpm -lX11 -lXext -lm -lifcore -lm -ldl
ifort: Command line warning: ignoring unknown option '-ansi'
/opt/hdf4/2r1_intel_9.1/lib/libmfhdf.a(globdef.o)(.bss+0x0): multiple definition of `ncerr'
/opt/netcdf/3.6.1_intel_9.1/lib/libnetcdf.a(v2i.o)(.bss+0x0): first defined here
/opt/hdf4/2r1_intel_9.1/lib/libmfhdf.a(globdef.o)(.data+0x8): multiple definition of `ncopts'
/opt/netcdf/3.6.1_intel_9.1/lib/libnetcdf.a(v2i.o)(.data+0x0): first defined here
/opt/hdf4/2r1_intel_9.1/lib/libmfhdf.a(putget.o)(.text+0x0): In function `ncvarput1':
: multiple definition of `ncvarput1'

.. a few things deleted....

NclHDF.o(.text+0x1d): In function `HDFCreateFile':
: undefined reference to `sd_nccreate'
NclHDF.o(.text+0x36): In function `HDFCreateFile':
: undefined reference to `sd_ncendef'
NclHDF.o(.text+0x3e): In function `HDFCreateFile':
: undefined reference to `sd_ncclose'
NclHDF.o(.text+0xb6): In function `HDFOpenFile':
: undefined reference to `sd_ncopen'
NclHDF.o(.text+0xf6): In function `HDFOpenFile':
: undefined reference to `sd_ncinquire'
NclHDF.o(.text+0x1a6): In function `HDFOpenFile':
: undefined reference to `sd_ncdiminq'
NclHDF.o(.text+0x3de): In function `HDFOpenFile':
: undefined reference to `sd_ncvarinq'
NclHDF.o(.text+0x496): In function `HDFOpenFile':
: undefined reference to `sd_ncdiminq'
NclHDF.o(.text+0x5ba): In function `HDFOpenFile':
: undefined reference to `sd_ncattname'
NclHDF.o(.text+0x6d6): In function `HDFOpenFile':
: undefined reference to `sd_ncattinq'
NclHDF.o(.text+0x98a): In function `HDFOpenFile':
: undefined reference to `sd_ncattname'
NclHDF.o(.text+0xa0e): In function `HDFOpenFile':
: undefined reference to `sd_ncattinq'

If I remove the library mfhdf, I can get the duplicate symbol problem to go away.
However, I still cannot resolve missing references to sd_nccreate and the other sd_*
functions. I grepped the HDF4 and NETCDF libraries, and I don't find them there.

Thanks,
Craig

-- 
Craig Tierney (craig.tierney_at_noaa.gov)
_______________________________________________
ncl-install mailing list
ncl-install_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-install
Received on Mon May 12 2008 - 18:14:22 MDT

This archive was generated by hypermail 2.2.0 : Thu May 15 2008 - 09:08:53 MDT