Re: shared lib can't be loaded

From: Rick Grubin <grubin_at_nyahnyahspammersnyahnyah>
Date: Thu, 16 Feb 2006 09:44:19 -0700

Hi Leilei,

A caveat: I have some familiarity with the Lahey Fortran compiler,
though not on the same configuration on which you're running. The
version of Lahey's compiler I've worked with is v6.2.

> NCL binary ncl-4.2.0.a033.Linux_i686 is installed on our RedHat
> Linux with Intel Xeon archetecture. And we have lf95 Fortran compiler
> from Lahey Inc. I'm trying to use the shared library
> wrf_user_fortran_util_0.so in NCL script but got the following error:
>
> #######################################################################
> ####################
> $ ncl < wrf_bwave.ncl
> Copyright (C) 1995-2006 - All Rights Reserved
> University Corporation for Atmospheric Research
> NCAR Command Language Version 4.2.0.a033
> The use of this software is governed by a License Agreement.
> See http://www.ncl.ucar.edu/ for more details.
> warning:An error occurred loading the external file
> ./wrf_user_fortran_util_0.so, file not loaded
> ./wrf_user_fortran_util_0.so: undefined symbol: g_arxr
> fatal:syntax error: line 152 in file WRFUserARW.ncl before or near :
> wrf_user_fortran_util_0 :

There is a routine in the Lahey-supplied libraries called g_arxr -- I
found it in the following libraries:

     libfj9f6.a
     libfj9fpp.a
     libfj9fsse2.a
     libfj9fsse2p.a
     liblapackmt.a
     libssl2.a
     libssl2mt.a
     libssl2mtp4.a

I can't say with any certainty which library defines the routine. You
may have to experiment to determine which you really need. I believe
you'll need to compile your Fortran routine (below) with one or more of
these libraries.

> compile fortran routine...
> lf95 -c wrf_user_fortran_util_0.f -L/home/lwang/ncarg/lib
> -L/usr/X11R6/lib -L/usr/local/lib -I/home/lwang/ncarg/include
> -I/usr/X11R6/include -lhlu -lncarg -lncarg_gks -lncarg_c -lX11
> -L/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66 -lg2c -lm
> Encountered 0 errors, 0 warnings in file wrf_user_fortran_util_0.f.
> fortran routine compiled

-Rick.

----
Rick Grubin      NCAR/CISL/SCD/VETS
Visualization + Enabling Technologies
grubin_at_ucar.edu             303.497.1832
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Feb 16 2006 - 09:44:19 MST

This archive was generated by hypermail 2.2.0 : Fri Feb 17 2006 - 15:24:09 MST