Hi Folks,
This works on my local system, but I am having trouble getting it to work on a new system. I successfully run WRAPIT:
------
> WRAPIT -d -in -fPIC writeWRFintermediate.stub writeWRFintermediate.f90
WRAPIT Version: 091416
/opt/intel/Compiler/11.1/056/bin/intel64/ifort
OPERATING SYSTEM: Linux
FORTRAN COMPILER (f90c): ifort
FORTRAN COMPILER OPTIONS (fopts): -fPIC -c -CB -V
cc -fPIC -c -I/usr/local/usp/ncarg/ncl_ncarg-5.1.1-intel/include WRAPIT.c
COMPILING writeWRFintermediate.f90
ifort -fPIC -c -CB -V writeWRFintermediate.f90
Intel(R) Fortran Intel(R) 64 Compiler Professional for applications running on Intel(R) 64, Version 11.1 Build 20090827 Package ID: l_cprof_p_11.1.056
Copyright (C) 1985-2009 Intel Corporation. All rights reserved.
Intel(R) Fortran 11.1-2582
SHARED OBJECT NAME (SharedObj): writeWRFintermediate.so
LINKER SUFFIX (ld_suffix): WRAPIT.o writeWRFintermediate.o -o writeWRFintermediate.so
LINKING
ifort -shared WRAPIT.o writeWRFintermediate.o -o writeWRFintermediate.so
END WRAPIT
---- Then when I try to load it with: ---- external fWrite "./writeWRFintermediate.so" ---- I am getting the following error: ---- ncl < NOGAPStoWRFintermediate.ncl inputFile=\"test.inp.tmp\" Copyright (C) 1995-2009 - All Rights Reserved University Corporation for Atmospheric Research NCAR Command Language Version 5.1.1 The use of this software is governed by a License Agreement. See http://www.ncl.ucar.edu/ for more details. ncl 0>warning:An error occurred loading the external file ./writeWRFintermediate.so, file not loaded ./writeWRFintermediate.so: undefined symbol: NclGetArgValue warning:error at line 2 in file writeWRFintermediate.ncl ---- The f90 code is rather simple and there are no additional libraries involved. I can find very little about this anywhere online, but I believe it may be a problem with the NCL installation on this system (e.g. not compiled to allow for dynamic linking). It would make me very happy if I could find a good way to test whether that is the problem, so that I can present solid evidence to the sysadmins. Does anybody have any experience with this, or thoughts about how I can make further tests? In case it matters, here is the system info: ---- > uname -a Linux diamond04 2.6.32.46-0.3-default #1 SMP 2011-09-29 17:49:31 +0200 x86_64 x86_64 x86_64 GNU/Linux ---- And in general I can do everything else I expect to be able to do with NCL on this system. Thanks! Josh -- Joshua Hacker Naval Postgraduate School Department of Meteorology 589 Dyer Rd, Root Hall 254 Monterey, CA 93943 email: jphacker@nps.edu phone: 831-656-2722 fax: 831-656-3061
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Feb 17 10:27:12 2012
This archive was generated by hypermail 2.1.8 : Thu Feb 23 2012 - 10:01:53 MST