Re: Problem compiling: Undefined reference

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Wed Dec 11 2013 - 07:49:16 MST

Dear Francisco,

The "ggkwdr" symbol should be defined in your "libncarg_gks.a" library.

The version you have is about 6 years old, so yes, I would recommend upgrading.

However, if this is a problem for you, then this posting might help:

http://www.ncl.ucar.edu/Support/install_archives/2007/0010.html

If this doesn't help, then if you can send me the full output from your "make Everything" command,
I might be able to determine the root of the problem.

--Mary

On Dec 11, 2013, at 12:48 AM, Francisco Pastor <pastor_fco@gva.es> wrote:

> 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
>
> NCARG_DIR=/usr/local/ncarg-4.4.2/lib
> 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
> paco@ceam.es
> http://www.ceam.es/ceamet
> http://www.ceam.es/
> Paterna, Valencia, Spain
> ___________________________________________________________________________________________________
> Usuario Linux registrado: 363952
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Dec 11 07:49:29 2013

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