Re: dlopen() returns EACCESS

From: Gary R. Hook (nospam_at_nospammers.net)
Date: 01/05/04


Date: Mon, 05 Jan 2004 17:52:42 GMT

Allan Chandler wrote:

> I'm having trouble loading dynamic modules using dlopen. These (both the
> executable and the modules) were built with compilers under AIX 4.x

AIX 4.*what*? It matters.

> and
> we're trying to run them on AIX 5.2.

In general, this is a supported configuration, albeit with some minor
restrictions.

> The dlopen() call is returning EACCESS (13) which, according to the man
> pages for load, means either (1) not a valid object, (2) not executable or
> (3) component of path is not searchable.

Does dlerror() return anything useful? Have you checked the dependents
of that module (i.e. everything listed by "dump -Hv <file>" and so on
down the tree? Perhaps a dependent is inaccessible?

-- 
Gary R. Hook / AIX PartnerWorld for Developers / These opinions are MINE
________________________________________________________________________


Relevant Pages

  • dlopen() returns EACCESS
    ... executable and the modules) were built with compilers under AIX 4.x and ... we're trying to run them on AIX 5.2. ... problems mixing new executables with old shared libraries but in this case I ... beleive both were built with the same compiler. ...
    (comp.unix.aix)
  • Re: IBM S/390 memory model amd COBOL
    ... compiler option option are built on ... I am not certain about AIX or OS/400. ... > the compilers do this or OS/400, ... > Program Section for the code which subsequently gets built into a read-only ...
    (comp.lang.cobol)
  • Re: Checking for unresolved symbols
    ... linking takes a long time in my case (I have some 60 libraries) I want ... I want to relink executable only if needed. ... Is it possible to do something like this on AIX? ... > do you mean you've built a shared module? ...
    (comp.unix.aix)
  • Re: Can some AIX machines build both 32 and 64 bit binaries?
    ... As for versions of operating system, I would be limited to testing on ... AIX issues that might exist. ... The native IBM compilers generate 32 or 64 bit code regardless ...
    (comp.unix.aix)
  • Inetd services mysteriously turning back on
    ... We have a few AIX 5.3 servers that were built without the telnet and shell ... During a recent audit, we discovered ... patches would turn on services that were previously turned off. ...
    (AIX-L)