[Met_help] help with METv1.1 gmake on Linux system

dfeijat dfeijat at gmail.com
Thu Mar 5 08:55:30 MST 2009


Dear met_help,

I am trying to compile the METv1.1 on Linux.
However, something errors happened as followings,
Can you give me some advices to fix it?
Thanks in advance.

Sincerely,
ZhenCai, DU
http://cmsr.iap.ac.cn
Center for Monsoon System Research,
Institute of Atmospheric Physics,
Chinese Academy of Sciences

2009-03-05 

==============================
The Linux System I use:
wrfpost/METv1.1> uname -a
Linux XE1300 2.6.16.27-0.9-smp #1 SMP Tue Feb 13 09:35:18 UTC 2007 x86_64 x86_64 x86_64 GNU/Linux

wrfpost/METv1.1> cat /proc/version
Linux version 2.6.16.27-0.9-smp (geeko at buildhost) (gcc version 4.1.0 (SUSE Linux)) #1 SMP Tue Feb 13 09:35:18 UTC 2007
===========================
errors during gmake METv1.1:

interest.cc:
/disk2/hg/dzc/pgi716/linux86-64/7.1-6/bin/pgCC set.cc -Bstatic   -c -I.. -I/disk2/hg/dzc/netcdf/include
set.cc:
ar -rs libvx_wrfmode.a WrfMode_Conf.o engine.o interest.o set.o
ar: creating libvx_wrfmode.a
ranlib libvx_wrfmode.a

cp libvx_wrfmode.a ../.

*** Making pcp_combine application ***


/disk2/hg/dzc/pgi716/linux86-64/7.1-6/bin/pgCC -o pcp_combine pcp_combine.cc \
-Bstatic   -DMET_BASE=\"/disk2/hg/dzc/wrfpost/METv1.1\" \
-I../../lib -I/disk2/hg/dzc/netcdf/include -I/disk2/hg/dzc/wrfpost/gsl112/include \
-L../../lib -L/disk2/hg/dzc/netcdf/lib -L/disk2/hg/dzc/wrfpost/gsl112/lib \
-lvx_met_util -lvx_analysis_util -lvx_wrfdata -lvx_met_util \
        -lvx_contable -lvx_grib_classes \
-lvx_econfig -lvx_gsl_prob -lgsl \
-lvx_plot_util  -lvx_render -lvx_pxm -lvx_color -lvx_ps -lvx_afm \
-lvx_data_grids -lvx_gnomon -lvx_nav -lvx_cal -lvx_util -lvx_math -lm \
-lnetcdf_c++ -lnetcdf \

pcp_combine.cc:
pcp_combine.o: In function `write_netcdf__FLT1iR10GribRecord':
pcp_combine.cc:(.text+0x2830): undefined reference to `NcFile::__ct(char const *, NcFile::FileMode, unsigned long *, unsigned long, NcFile::FileFormat)'
pcp_combine.cc:(.text+0x285e): undefined reference to `NcFile::is_valid( const(void))'
pcp_combine.cc:(.text+0x28dd): undefined reference to `NcFile::close(void)'
pcp_combine.cc:(.text+0x29f3): undefined reference to `NcFile::add_att(char const *, char const *)'
pcp_combine.cc:(.text+0x2b10): undefined reference to `NcFile::add_att(char const *, char const *)'
pcp_combine.cc:(.text+0x2b35): undefined reference to `NcFile::add_att(char const *, char const *)'
pcp_combine.cc:(.text+0x2b93): undefined reference to `NcFile::add_att(char const *, char const *)'
pcp_combine.cc:(.text+0x2bcd): undefined reference to `NcFile::add_att(char const *, char const *)'
pcp_combine.o:pcp_combine.cc:(.text+0x2bff): more undefined references to `NcFile::add_att(char const *, char const *)' follow
pcp_combine.o: In function `write_netcdf__FLT1iR10GribRecord':
pcp_combine.cc:(.text+0x32c2): undefined reference to `NcVar::add_att(char const *, char const *)'
pcp_combine.cc:(.text+0x32d4): undefined reference to `NcVar::add_att(char const *, char const *)'
pcp_combine.cc:(.text+0x32e9): undefined reference to `NcVar::add_att(char const *, float)'
pcp_combine.cc:(.text+0x32ff): undefined reference to `NcVar::add_att(char const *, char const *)'
pcp_combine.cc:(.text+0x3315): undefined reference to `NcVar::add_att(char const *, char const *)'
pcp_combine.cc:(.text+0x332e): undefined reference to `NcVar::add_att(char const *, float)'
pcp_combine.cc:(.text+0x3341): undefined reference to `NcVar::add_att(char const *, int)'
pcp_combine.cc:(.text+0x336c): undefined reference to `NcVar::add_att(char const *, char const *)'
pcp_combine.cc:(.text+0x3397): undefined reference to `NcVar::add_att(char const *, char const *)'
pcp_combine.cc:(.text+0x33cf): undefined reference to `NcVar::add_att(char const *, char const *)'
pcp_combine.cc:(.text+0x33e4): undefined reference to `NcVar::add_att(char const *, float)'
pcp_combine.cc:(.text+0x349a): undefined reference to `NcVar::add_att(char const *, char const *)'
pcp_combine.cc:(.text+0x34ae): undefined reference to `NcVar::add_att(char const *, long)'
pcp_combine.cc:(.text+0x354c): undefined reference to `NcVar::add_att(char const *, char const *)'
pcp_combine.cc:(.text+0x3560): undefined reference to `NcVar::add_att(char const *, long)'
pcp_combine.cc:(.text+0x35a5): undefined reference to `NcVar::add_att(char const *, char const *)'
pcp_combine.cc:(.text+0x3756): undefined reference to `NcVar::put(float const *, long, long, long, long, long)'
pcp_combine.cc:(.text+0x37b4): undefined reference to `NcVar::put(float const *, long, long, long, long, long)'
pcp_combine.cc:(.text+0x380e): undefined reference to `NcVar::put(float const *, long, long, long, long, long)'
pcp_combine.cc:(.text+0x389e): undefined reference to `NcFile::close(void)'
gmake[3]: *** [pcp_combine] Error 2
gmake[2]: *** [all] Error 2
gmake[1]: *** [targets] Error 2
gmake: *** [all] Error 2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/met_help/attachments/20090305/20402b19/attachment-0001.html 


More information about the Met_help mailing list