[ncl-install] sd_nc* undefined references

Jeff Dusenberry jdusenberry at whoi.edu
Wed Mar 5 07:08:56 MST 2008


I'm getting undefined references to `sd_nc*' errors when attempting to 
build NCL 5.0.0 on a RHEL3 system.  HDF4 was compiled with 
--enable-netcdf turned on.  Can anyone tell me where the references can 
be found, and/or what I might have done incorrectly?

I've cut-and-paste the snippet from the make output below.

Thanks,
Jeff


g\+\+ -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 NclTyp
efloat.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 NclA
tt.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 Nc
lVar.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  BuiltInS
upport.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/nf
p -lnfp -L../../.././ni/src/lib/nfpfort -lnfpfort 
-L../../.././ni/src/lib/hlu -l
hlu -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-5.0.0/lib -L/usr/X11R6/lib 
-L/usr/local/net
cdf-3.6.2-nofortran/lib -L/usr/local/hdf/lib -lnc-dap -ldap -ldapclient 
-lcurl -
lrx -lxml2 -lpthread -lidn -ldl   -lmfhdf -ldf -ljpeg -lz 
-L../../.././extern
al/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 -lm -lm  -ldl
NclHDF.o(.text+0x5d): In function `HDFGetAttrVal':
: undefined reference to `sd_ncattget'
NclHDF.o(.text+0xb9): In function `HDFGetAttrVal':
: undefined reference to `sd_ncattget'
NclHDF.o(.text+0x1113): In function `HDFOpenFile':
: undefined reference to `sd_ncopen'
NclHDF.o(.text+0x1133): In function `HDFOpenFile':
: undefined reference to `sd_ncopen'
etc...



-- 
Jeff Dusenberry                           email: jdusenberry at whoi.edu
Computer and Information Services, MS#46  phone: 508-289-3603
Woods Hole Oceanographic Institution      tty:   508-289-3560
Woods Hole, MA 02543-1543



More information about the ncl-install mailing list