This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Confused by Multilib on AIX


>>>>> 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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]