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 
Return to the default flat view Create a new topic Submit Reply
linkimage difficulties: mixed case and multiple libraries [message #16199] Wed, 07 July 1999 00:00 Go to previous 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
[Message index]
 
Read Message
Read Message
Previous Topic: cross-spectral analysis
Next Topic: Array index bug....

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

Current Time: Fri Oct 10 11:58:48 PDT 2025

Total time taken to generate the page: 0.08190 seconds