undefined reference to `flush_' when compile writematrix.f

From: brick <brickflying_at_nyahnyahspammersnyahnyah>
Date: Sat Mar 20 2010 - 22:10:57 MDT

Hi
I use icc and ifort to compile ncl. The system is CentOS.
There is an error when make ncl:
icc -ansi -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/usr/local/include
-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 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 userAddProto.o userAddFuncs.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/mnt/home/xqiu/Program/IntelCompiled/Ncl_ncarg-5.1.1/lib
-L/usr/lib -L/usr/lib/X11 -L/mnt/home/xqiu/Program/IntelCompiled/lib
-L/opt/intel/Compiler/11.1/064/lib/ia32 -lnetcdf -lhdf5_hl -lhdf5 -lsz
 -lmfhdf -ldf -ljpeg -lz -lsz -lgrib2c -ljasper -lpng -lz -lpng -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 -lXpm -lX11 -lXext
-lifcore -lm -ldl
/mnt/home/xqiu/Program/IntelCompiled/lib/libjasper.a(jas_stream.o): In
function `jas_stream_tmpfile':
jas_stream.c:(.text+0x528): warning: the use of `tmpnam' is dangerous,
better use `mkstemp'
../../.././ni/src/lib/nfpfort/libnfpfort.a(writematrix.o): In function
`writematrixi_':
writematrix.f:(.text+0x45b): undefined reference to `flush_'
../../.././ni/src/lib/nfpfort/libnfpfort.a(writematrix.o): In function
`writematrixf_':
writematrix.f:(.text+0xcbb): undefined reference to `flush_'
../../.././ni/src/lib/nfpfort/libnfpfort.a(writematrix.o): In function
`writematrixd_':
writematrix.f:(.text+0x151b): undefined reference to `flush_'
../../.././ni/src/lib/nfpfort/libnfpfort.a(writematrix.o): In function
`writematrixb_':
writematrix.f:(.text+0x1d52): undefined reference to `flush_'
../../.././ni/src/lib/nfpfort/libnfpfort.a(writematrix.o): In function
`writematrixs_':
writematrix.f:(.text+0x2597): undefined reference to `flush_'
make[3]: *** [ncl] Error 1
make[3]: Leaving directory
`/mnt/home/xqiu/Program/IntelCompiled/Temp/ncl_ncarg-5.1.1/ni/src/ncl'

There is a subroutine named "flush" in writematrix.f. I read the README
file.
But it only provides method for xlf. How about icc ?
Thanks.

brick

_______________________________________________
ncl-install mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-install
Received on Sat Mar 20 22:11:03 2010

This archive was generated by hypermail 2.1.8 : Thu Apr 01 2010 - 11:31:26 MDT