Problem compiling: Undefined reference

From: Francisco Pastor <pastor_fco_at_nyahnyahspammersnyahnyah>
Date: Wed Dec 11 2013 - 00:48:14 MST

Hi everyone

I'm trying to compile a meteorological model and trying to build with
the same environment it was built time ago. I have installed NCAR
4.4.2 and when building the met model under Ubuntu 12.04 with Intel
fortran compiler I get this error messages:

/opt/intel/bin/ifort -o rams-6.0-opt rammain.o rams-6.0-opt.a \
     ./utils/libutils-2.4-opt.a -L/usr/local/ncarg-4.4.2/lib -lncarg
-lncarg_gks -lncarg_c -L/usr/lib/i386-linux-gnu -lpthread -ldl -lc
-lgcc_eh -L/usr/local/mpich2-1.0.5p4/lib/ -lmpich
-L/usr/local/hdf5/lib -lhdf5 -lz -lm
/usr/local/ncarg-4.4.2/lib/libncarg_gks.a(gziqwk.o): In function `gziqwk_':
gziqwk.f:(.text+0x10e): undefined reference to `ggkwdr_'
/usr/local/ncarg-4.4.2/lib/libncarg_gks.a(gztowk.o): In function `gztowk_':
gztowk.f:(.text+0x286): undefined reference to `ggkwdr_'
gztowk.f:(.text+0x4e4): undefined reference to `ggkwdr_'
gztowk.f:(.text+0x830): undefined reference to `ggkwdr_'
make: *** [rams-6.0-opt] Error 1

with this build options for NCARG

LIBNCARG=-L$(NCARG_DIR) -lncarg -lncarg_gks -lncarg_c
-L/usr/lib/i386-linux-gnu -lpthread -ldl -lc -lgcc_eh

Should I use latest NCAR version?

I've found some info on the web about ncarg not properly building but
I'm not sure if this is my case. Any help or hint to solve this
problem will be greatly appreciated.

Francisco Pastor
Meteorology department
Fundación CEAM
Paterna, Valencia, Spain
Usuario Linux registrado: 363952

ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Wed Dec 11 00:48:25 2013

This archive was generated by hypermail 2.1.8 : Fri Dec 13 2013 - 11:39:30 MST