[ncl-install] identifier "int_p_NULL" is undefined when Making ./ncarg2d/src/libncarg/ezmap

brick brickflying at gmail.com
Fri Mar 19 20:24:36 MDT 2010


Thank you. Following your advice, I install libpng-1.2.43. The error gone.
And there is a new error:

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

On Fri, Mar 19, 2010 at 9:01 AM, Mary Haley <haley at ucar.edu> wrote:

>
> On Mar 18, 2010, at 10:53 PM, brick wrote:
>
>
> *Hi*
> *I met this Error when compile ncl with icc and ifort on CentOS.*
> *I choose png/zlib hdf4 netcdf grib2 when configure.*
>
> ..................................
> ..................................
> ifort  -O2    -c -o mdqtrn.o mdqtrn.f
> ifort  -O2    -c -o aiproj.o aiproj.f
> ifort  -O2    -c -o aiprin.o aiprin.f
> ifort  -O2    -c -o haproj.o haproj.f
> ifort  -O2    -c -o haprin.o haprin.f
> ifort  -O2    -c -o moproj.o moproj.f
> ifort  -O2    -c -o moprin.o moprin.f
> ifort  -O2    -c -o wtproj.o wtproj.f
> ifort  -O2    -c -o wtprin.o wtprin.f
> ifort  -O2    -c -o mpdbdi.o mpdbdi.f
> icc -ansi  -O2  -I../../../.././include -I/usr/include -I/usr/include/X11
> -I/mnt/home/xqiu/Program/IntelCompiled/include
> -I/opt/intel/Compiler/11.1/064/include
> -I/mnt/home/xqiu/Program/IntelCompiled/include/usr_include_linux  -DBuildPNG
>  -DSYSV -D_POSIX_SOURCE -D_XOPEN_SOURCE -DByteSwapped -DNeedFuncProto    -c
> -o mapnga.o mapnga.c
> icc -ansi  -O2  -I../../../.././include -I/usr/include -I/usr/include/X11
> -I/mnt/home/xqiu/Program/IntelCompiled/include
> -I/opt/intel/Compiler/11.1/064/include
> -I/mnt/home/xqiu/Program/IntelCompiled/include/usr_include_linux  -DBuildPNG
>  -DSYSV -D_POSIX_SOURCE -D_XOPEN_SOURCE -DByteSwapped -DNeedFuncProto    -c
> -o mapngb.o mapngb.c
> mapngb.c(81): error: identifier "int_p_NULL" is undefined
>                  &color_type,&interlace_type,int_p_NULL,int_p_NULL);
>                                              ^
>
> compilation aborted for mapngb.c (code 2)
> make[5]: *** [mapngb.o] Error 2
> make[5]: Leaving directory
> `/mnt/home/xqiu/Program/IntelCompiled/Temp/ncl_ncarg-5.1.1/ncarg2d/src/libncarg/ezmap'
>
>
> One of our developers ran into this, and said it was due to having a newer
> version of PNG (1.4 or later) that doesn't define "int_p_NULL".
>
> You can either download and install an older libpng (1.2), or you will need
> to edit the affected file:
>
> $NCARG/ncarg2d/src/libncarg/ezmap/mapngb.c
>
> and add this line:
>
> #define int_p_NULL                (int *)NULL
>
> after:
>
> #include <png.h>
>
>
> You are correct that the rest of the errors that follow are due to the
> "libncarg.a" not being fully built.
>
> Once you make the above change, you can start the build from where you left
> off by cd-ing to the top level NCAR Graphics tree (which I refer to as
> $NCARG)
> and type:
>
>  make all install  >&! make-output
>
> --Mary
>
>
> *After this error, there are 5 additional errors. I think all are caused
> by the error above. The rest errors are listed below:*
>
> 1
>  Making ./ncarg2d/src/bin/ncargworld
> make[5]: Entering directory
> `/mnt/home/xqiu/Program/IntelCompiled/Temp/ncl_ncarg-5.1.1/ncarg2d/src/bin/ncargworld'
> ifort  -O2    -c -o ncargworld.o ncargworld.f
> ifort  -O2    -o ncargworld ncargworld.o
> ../../../.././ncarg2d/src/libncarg_gks/awi/ggkwdr_stub.o
>  -L../../../.././ncarg2d/src/libncarg -lncarg
> -L../../../.././ncarg2d/src/libncarg_gks -lncarg_gks
> -L../../../.././common/src/libncarg_c -lncarg_c
> -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
> ncargworld.o: In function `MAIN__':
> ncargworld.f:(.text+0x166): undefined reference to `maproj_'
> ncargworld.f:(.text+0x195): undefined reference to `mapstr_'
> ncargworld.f:(.text+0x1a6): undefined reference to `mapstr_'
> ncargworld.f:(.text+0x1b7): undefined reference to `mapstr_'
> ncargworld.f:(.text+0x1da): undefined reference to `mapset_'
> ncargworld.f:(.text+0x1eb): undefined reference to `mapsti_'
> ncargworld.f:(.text+0x1fc): undefined reference to `mapsti_'
> ncargworld.f:(.text+0x20d): undefined reference to `mapsti_'
> ncargworld.f:(.text+0x215): undefined reference to `mapint_'
> ncargworld.f:(.text+0x2fb): undefined reference to `maptri_'
> ncargworld.f:(.text+0x48c): undefined reference to `mapdrw_'
> ../../../.././ncarg2d/src/libncarg/libncarg.a(pcmpxy.o): In function
> `pcmpxy_':
> pcmpxy.f:(.text+0x1f5): undefined reference to `maptra_'
> pcmpxy.f:(.text+0x37e): undefined reference to `maptra_'
> pcmpxy.f:(.text+0x3a4): undefined reference to `maptri_'
> make[5]: *** [ncargworld] Error 1
> make[5]: Leaving directory
> `/mnt/home/xqiu/Program/IntelCompiled/Temp/ncl_ncarg-5.1.1/ncarg2d/src/bin/ncargworld'
>
> 2
> Making ./ncarg2d/src/bin/tdpackdemo
> make[5]: Entering directory
> `/mnt/home/xqiu/Program/IntelCompiled/Temp/ncl_ncarg-5.1.1/ncarg2d/src/bin/tdpackdemo'
> ifort  -O2    -c -o TdpackDemo.o TdpackDemo.f
> ifort  -O2    -o tdpackdemo TdpackDemo.o
> -L../../../.././ncarg2d/src/libncarg -lncarg
> -L../../../.././ncarg2d/src/libncarg_gks -lncarg_gks
> -L../../../.././common/src/libncarg_c -lncarg_c -lpng -lz
>  -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  -lXpm -lX11 -lXext
> ../../../.././ncarg2d/src/libncarg/libncarg.a(pcmpxy.o): In function
> `pcmpxy_':
> pcmpxy.f:(.text+0x1f5): undefined reference to `maptra_'
> pcmpxy.f:(.text+0x37e): undefined reference to `maptra_'
> pcmpxy.f:(.text+0x3a4): undefined reference to `maptri_'
> make[5]: *** [tdpackdemo] Error 1
> make[5]: Leaving directory
> `/mnt/home/xqiu/Program/IntelCompiled/Temp/ncl_ncarg-5.1.1/ncarg2d/src/bin/tdpackdemo'
>
> 3
> ................................
> mdlndr.f:(.text+0x50d): undefined reference to `mapit_'
> mdlndr.f:(.text+0x555): undefined reference to `mapit_'
> mdlndr.f:(.text+0x5a5): undefined reference to `mapit_'
> mdlndr.f:(.text+0x5c2): undefined reference to `mapiq_'
> mdlndr.f:(.text+0x75d): undefined reference to `mdpchi_'
> mdlndr.f:(.text+0x78a): undefined reference to `mdgetr_'
> mdlndr.f:(.text+0x7a1): undefined reference to `mdplmb_'
> ../../../.././ncarg2d/src/libncarg/libncarg.a(mdutin.o): In function
> `mdutin_':
> mdutin.f:(.text+0xe0): undefined reference to `mdpin2_'
> mdutin.f:(.text+0x4a0): undefined reference to `mdpint_'
> make[5]: *** [ezmapdemo] Error 1
> make[5]: Leaving directory
> `/mnt/home/xqiu/Program/IntelCompiled/Temp/ncl_ncarg-5.1.1/ncarg2d/src/bin/ezmapdemo'
>
> 4
> Making ./ngmath/src/bin/nnalg
> make[5]: Entering directory
> `/mnt/home/xqiu/Program/IntelCompiled/Temp/ncl_ncarg-5.1.1/ngmath/src/bin/nnalg'
> ifort  -O2   -c nadisp.f
> ifort  -O2    -c -o nadraw.o nadraw.f
> ifort  -O2    -c -o naskln.o naskln.f
> ifort  -O2    -c -o nasort.o nasort.f
> ifort  -O2    -o nnalg nadisp.o  nadraw.o  naskln.o  nasort.o
> -L../../../.././ncarg2d/src/libncarg -lncarg
> -L../../../.././ncarg2d/src/libncarg_gks -lncarg_gks
> -L../../../.././common/src/libncarg_c -lncarg_c -lpng -lz
>  -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  -lXpm -lX11 -lXext
> ../../../.././ncarg2d/src/libncarg/libncarg.a(pcmpxy.o): In function
> `pcmpxy_':
> pcmpxy.f:(.text+0x1f5): undefined reference to `maptra_'
> pcmpxy.f:(.text+0x37e): undefined reference to `maptra_'
> pcmpxy.f:(.text+0x3a4): undefined reference to `maptri_'
> make[5]: *** [nnalg] Error 1
> make[5]: Leaving directory
> `/mnt/home/xqiu/Program/IntelCompiled/Temp/ncl_ncarg-5.1.1/ngmath/src/bin/nnalg'
>
> 5
> .........................................
> mdlndr.f:(.text+0x472): undefined reference to `mdpchi_'
> mdlndr.f:(.text+0x4d6): undefined reference to `mdpchi_'
> mdlndr.f:(.text+0x50d): undefined reference to `mapit_'
> mdlndr.f:(.text+0x555): undefined reference to `mapit_'
> mdlndr.f:(.text+0x5a5): undefined reference to `mapit_'
> mdlndr.f:(.text+0x5c2): undefined reference to `mapiq_'
> mdlndr.f:(.text+0x75d): undefined reference to `mdpchi_'
> mdlndr.f:(.text+0x78a): undefined reference to `mdgetr_'
> mdlndr.f:(.text+0x7a1): undefined reference to `mdplmb_'
> ../../.././ncarg2d/src/libncarg/libncarg.a(mdlnri.o): In function
> `mdlnri_':
> mdlnri.f:(.text+0xc6): undefined reference to `mpdbdi_'
> make[4]: *** [ncl] Error 1
>
> I need help to fix it.
> Thanks.
>
> brick
>
> _______________________________________________
> ncl-install mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-install
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-install/attachments/20100319/55f49098/attachment-0001.html 


More information about the ncl-install mailing list