[Met_help] Compilation failed MET v2.0

ISMAEL MARIN CARRION Ismael.Marin at uclm.es
Wed May 12 16:55:22 MDT 2010


Dear staff of MET HELP,

I'm trying to install MET v.2.0. First, I compile BUFRLIB such as:

In preproc.sh:74 cpp -P -traditional-cpp -D$byte_order $i $bnf
It generates wrdlen.g and irev.f

$ f77 -c -DUNDERSCORE -fno-second-underscore *.f

$c++ -c -DUNDERSCORE *.c
crbmg.c: In function ‘void crbmg_(char*, f77int*, f77int*, f77int*)’:
crbmg.c:73: warning: deprecated conversion from string constant to ‘char*’
crbmg.c:83: warning: deprecated conversion from string constant to ‘char*’
crbmg.c:89: warning: deprecated conversion from string constant to ‘char*’
crbmg.c:106: warning: deprecated conversion from string constant to ‘char*’
crbmg.c:115: warning: deprecated conversion from string constant to ‘char*’
crbmg.c:147: warning: deprecated conversion from string constant to ‘char*’
restd.c: In function ‘void restd_(f77int*, f77int*, f77int*, f77int*)’:
restd.c:85: warning: deprecated conversion from string constant to ‘char*’
restd.c:86: warning: deprecated conversion from string constant to ‘char*’
restd.c:98: warning: deprecated conversion from string constant to ‘char*’

$ ar crv /usr/local/lib/libbufr.a *.o

After this, when I compile MET v2.0 with variables in Makefile:
CXX = c++
FC = f77
BUFR_BASE = /usr/local
BUFR_INCS = -I$(BUFR_BASE)/include
BUFR_LIBS = -L$(BUFR_BASE)/lib
GSL_BASE = /usr/local
GSL_INCS = -I$(GSL_BASE)/include
GSL_LIBS = -L$(GSL_BASE)/lib
F2C_BASE =
F2C_INCS =
F2C_LIBS =
F2C_LIBNAME =

I get:

*** Making the Model Evaluation Tools Project ***

*** Making vx_afm Library ***

cp libvx_afm.a ../.
...

cp libvx_wrfmode.a ../.

*** Making pcp_combine application ***

*** Finished Making pcp_combine application ***
....
*** Making pb2nc application ***

c++ -o pb2nc pb2nc.cc pb2nc_Conf.o numpbmsg.o openpb.o readpb.o dumppb.o \
-Wall -Wshadow -static   -DMET_BASE=\"/usr/local/METv2.0\" \
-I../../lib -I/usr/local/include -I/usr/local/include -I/usr/local/include  \
-L../../lib -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib  \
-lbufr -lvx_pb_util \
-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 \
  -lgfortran
openpb.o(.text+0x35): In function `openpb_':
: undefined reference to `f_open'
dumppb.o(.text+0x132): In function `dumppb_':
: undefined reference to `s_cat'
dumppb.o(.text+0x15c): In function `dumppb_':
: undefined reference to `f_open'
dumppb.o(.text+0x190): In function `dumppb_':
: undefined reference to `f_open'
...
/usr/local/lib/libbufr.a(valx.o)(.text+0x2f4): In function `valx_':
: undefined reference to `e_wsfi'
/usr/local/lib/libbufr.a(rjust.o)(.text+0x2e): In function `rjust_':
: undefined reference to `s_cmp'
/usr/local/lib/libbufr.a(rjust.o)(.text+0x69): In function `rjust_':
: undefined reference to `s_cmp'
/usr/local/lib/libbufr.a(rjust.o)(.text+0xdd): In function `rjust_':
: undefined reference to `s_copy'
collect2: ld returned 1 exit status
make[3]: *** [pb2nc] Error 1
make[2]: *** [all] Error 2
make[1]: *** [targets] Error 2
make: *** [all] Error 2

Moreover, I've tested with gfortran (it doesn't compile all .f of BUFRLIB), g++ and gcc with similar or worst results.



Best regards and thanks in advance.
Ms. Isma Marín Carrión
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/met_help/attachments/20100513/ded20fd2/attachment.html 


More information about the Met_help mailing list