This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Confused by Multilib on AIX
- To: Frank Pilhofer <fp at informatik dot uni-frankfurt dot de>
- Subject: Re: Confused by Multilib on AIX
- From: David Edelsohn <dje at watson dot ibm dot com>
- Date: Fri, 09 Oct 1998 01:06:32 -0400
- Cc: egcs at cygnus dot com
>>>>> Frank Pilhofer writes:
Frank> My problem is that these libraries refuse to load at runtime. If you
Frank> want to dynamically load a module that is linked against one of the
Frank> afore-mentioned libstdc++ versions into a main program that is *not*
Frank> linked against libstdc++ (meaning that libstdc++ is supposed to be
Frank> loaded at runtime), dlopen() reports "Exec format error."
Frank> The same happens when you try to dlopen() libstdc++ directly.
One thing that comes to mind is this is AIX, not Solaris. AIX's
original runtime loading functionality is supplied by the load() system
call, not dlopen(). I thought that dlopen() was suppose to work with
shared objects, but maybe it requires additional / different shared
library linking options. Have you used the AIX "dump" command to inspect
the shared object to see what it contains?
David