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

Home » Public Forums » archive » DLMs & IRIX
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: DLMs & IRIX [message #19758 is a reply to message #19685] Fri, 14 April 2000 00:00 Go to previous messageGo to previous message
Nigel Wade is currently offline  Nigel Wade
Messages: 286
Registered: March 1998
Senior Member
"Robert S. Mallozzi" wrote:
>
> Hi all,
>
> Does anyone have any experience using DLMs under
> IRIX 6.5? I have a DLM that works fine under Linux,
> but fails under IRIX. I then tried the IDL example
> called "testmodule" that comes with the distribution,
> and it fails with the same error under IRIX - the
> DLM cannot be loaded:
>
> % cd test
> % cp /usr/local/rsi/idl/external/dlm/* .
> % vi Makefile <change IRIX to IRIX64>
> % make
> % idl
>
> IDL> DLM_LOAD, 'testmodule'
> % DLM_LOAD: Error loading sharable executable.
> Symbol: IDL_Load, File = /usr/people3/mallors/test/testmodule.so
> 1291373:/usr/local/rsi/idl_5.2/bin/bin.sgi/idl: rld: Fatal Error:
> Cannot Successfully map soname
> '/usr/people3/mallors/test/testmodule.so' under any of the
> filenames /usr/people3/mallors/test/testmodule.so
> % Execution halted at: $MAIN$
> IDL> exit
> %
> % file /usr/people3/mallors/test/testmodule.so
> /usr/people3/mallors/test/testmodule.so:
> ELF N32 MSB mips-4 dynamic lib MIPS - version 1
>
> I did have to change the testmodule Makefile a little
> since it looks for the system called "IRIX", and uname
> on my system is "IRIX64". I tried setting the
> IDL_DLM_PATH environment variable as well (and even
> LD_LIBRARY_PATH), but no luck.
>
> -bob

It's most likely the SGI ABI problem.

IDL used to be a o32 binary, so any external code had to be built
using the -o32 compiler flag. I cannot remember which version
was the first to become N32, 5.1 was o32 and 5.2.1 is n32, but I
don't know what 5.2 is.

You can check by the command :
file /usr/local/rsi/idl_5.2/bin/bin.sgi/idl

If is is listed as ELF 32-bit MSB then you need to build the DLMs
with the -o32 flag.

All I had to change to build the testmodule DLM was to change the
IRIX to IRIX64 in the Makefile. My default compiler options are
abi=n32:isa=mips3:proc=r4k and this worked with IDL 5.2.1.


--
-----------------------------------------------------------
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : nmw@ion.le.ac.uk
Phone : +44 (0)116 2523568, Fax : +44 (0)116 2523555
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: IMDISP update
Next Topic: SPAWN + readU + strings

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

Current Time: Sat Oct 11 10:10:21 PDT 2025

Total time taken to generate the page: 0.31731 seconds