Re: xspec local model library

From: John Houck <houck_at_email.domain.hidden>
Date: Tue, 16 Feb 2010 19:23:04 -0500
On Tue, Feb 16, 2010 at 17:12 -0600, Leutenegger, Maurice A. (GSFC-662.0)[OAK RIDGE ASSOCIATED UNIVERSITIES  (ORAU)] wrote:
> Hi,
>
> I'm having a problem getting my Xspec local models library to
> load in isis. I definitely had it working before on the same
> computer, with earlier versions of the software.
>
> Recently, I lost my hard drive, and although I recovered all
> important data, I decided to update fink (including gcc), as
> well as xspec, slang, and isis. So it's possible that I'm
> either doing something stupid in my installation of any of
> these pieces of software; or that there's a bug introduced
> somewhere in recent updates of Xspec or isis.
>
> I'm currently using:
>
> OS X 10.5.8 on Intel Mac (same as before)
> gcc 4.4.2 from fink
> Xspec 12.5.1n, built as a part of heasoft 6.8
> slang 2.2.2
> isis 1.5.0-20
>
> Xspec, slang, and isis were all built using gcc 4.4.2 from fink.

What fortran compiler did you use?  Was it gfortran-4.4.2?

>
> The actual bug is this: I start up isis, type
>
> require ("xspec");
>
> and I get an error message like:
>
> loading /path/to/local/models/liblocalmodels.dylib
> Link error: dlsym(0x1224d50, model_name): symbol not found
> (last line repeats for all model_name in the library)
>
> I know that liblocalmodels.dylib works, because I can use local
> models in xspec.
>
> Any suggestions? Thanks,

I'm assuming that the xspec module loaded successfully and the
problem is with the loading of your local models.  

Does liblocalmodels.dylib provide "C" linkage symbols for all
the models that it provides?  Isis is a C program and does not
support direct loading of C++ mangled symbols.

What output does this produce?:

   otool -L /path/to/local/models/liblocalmodels.dylib

How about this?:

   nm /path/to/local/models/liblocalmodels.dylib

Thanks,
-John
----
You received this message because you are
subscribed to the isis-users list.
To unsubscribe, send a message to
isis-users-request_at_email.domain.hiddenwith the first line of the message as:
unsubscribe
Received on Tue Feb 16 2010 - 19:23:10 EST

This archive was generated by hypermail 2.3.0 : Fri May 02 2014 - 08:35:46 EDT