comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » linkimage difficulties: mixed case and multiple libraries
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
linkimage difficulties: mixed case and multiple libraries [message #16199] Wed, 07 July 1999 00:00 Go to next message
Fred Knight is currently offline  Fred Knight
Messages: 6
Registered: May 1996
Junior Member
I'd appreciate hearing about solutions to these problems.

1. I can't get linkimage to use a mixed-case function name under Solaris 2.
Here's a simple test:

name = 'openprot__7filebuf'
image = '/usr/lib/libC.so.3'
type = 1 ; function
linkimage,name,image,type
name = 'oct__Fli'
image = '/usr/lib/libC.so.3'
type = 1 ; function
linkimage,name,image,type

The first linkimage call works, but the second gives the error:

% LINKIMAGE: Error loading sharable executable.
Symbol: oct__fli, File = /usr/lib/libC.so.3
ld.so.1: /usr/local/idl/bin/bin.solaris2.sparc/idl: fatal:
oct__fli:
can't find symbol

I think the problem is the uppercase F.

2. I can't get linkimage to work when symbols aren't completely resolved in one
library. Here's a simple test with a local library that calls other libraries

name = 'sdv_waitdone'
image = '/usr/local/astb/lib/libairi.so'
type = 1 ; function
linkimage,name,image,type

The error message is:

% LINKIMAGE: Error loading sharable executable.
Symbol: sdv_waitdone, File = /usr/local/astb/lib/libairi.so
ld.so.1: /usr/local/idl/bin/bin.solaris2.sparc/idl: fatal:
relocation
error: file /usr/local/astb/lib/libairi.so: symbol
error_message_all_threads: referenced symbol not found

I don't have a solution for the first, except to use all lowercase. I can only
solve the second by putting all symbols in one library, but I would be
interested in a solution using LD_LIBRARY_PATH or something else. Possibly
answers to these questions are in the "Advanced Development Guide," which I
don't have, but I can't find any answers in the linkimage description in the
"Reference Guide."

Thanks, Fred
--
Fred Knight | knight@ll.mit.edu | 781 981 1053 | fax: 781 981 5359
C-490 | MIT Lincoln Laboratory | 244 Wood St. | Lexington, MA 02420-9108
Re: linkimage difficulties: mixed case and multiple libraries [message #16277 is a reply to message #16199] Fri, 09 July 1999 00:00 Go to previous message
m.konijnenburg is currently offline  m.konijnenburg
Messages: 3
Registered: July 1999
Junior Member
Hi,

In article <37837A15.D0681D93@ll.mit.edu>,
Fred Knight <knight@ll.mit.edu> wrote:
> I'd appreciate hearing about solutions to these problems.
>
> I don't have a solution for the first, except to use all lowercase. I
can only
> solve the second by putting all symbols in one library, but I would be
> interested in a solution using LD_LIBRARY_PATH or something else.
Possibly
> answers to these questions are in the "Advanced Development Guide,"
which I
> don't have, but I can't find any answers in the linkimage description
in the
> "Reference Guide."
@Sorry, I can't help you with the linkimage problem. The documentation
however can be downloaded from RSI's ftp server.
(ftp://ftp.rsinc.com/pub/idl_5.2/info/docs/)
The name has changed from "advanced development guide" to "external
development guide" (edg.pdf).
If you have the sourcecode of the library you want to include, consider
making a dynamic loadable module. It is a bit more work, but it works
easier in IDL. This is the same way RSI incorporates new routines in
IDL.

Best regards,

Marco

------------------------------------------------------------ ----
ing. Marco Konijnenburg FOM instituut AMOLF
_ _ Kruislaan 407
/\ |\/| / \ | |_ 1098 SJ Amsterdam
/--\ | | \_/ |_ | Nederland
Tel: (+31) 020 6081234
mailto:m.konijnenburg@amolf.nl Fax: (+31) 020 6684106
------------------------------------------------------------ ----


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: cross-spectral analysis
Next Topic: Array index bug....

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 07:25:56 PDT 2025

Total time taken to generate the page: 0.39853 seconds