vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| I'm trying to dlopen a library on AIX 5.1 but getting errno == ENOEXEC. dlerror() returns nothing. This library has other dependencies. If I compile the main program without -brtl, the dlopen works. With -brtl, the dlopen fails with ENOEXEC. What does the error mean and how can I resolve this? Also, I tried running truss against the main program to see what libraries it loaded but apparently truss doesn't list the libraries it loads. Sigh! -- albert chin (china @at@ thewrittenword .dot. com) |
| |||
| Albert Chin-A-Young <china@foo.com> wrote: > I'm trying to dlopen a library on AIX 5.1 but getting errno == ENOEXEC. > dlerror() returns nothing. This library has other dependencies. If I > compile the main program without -brtl, the dlopen works. With -brtl, > the dlopen fails with ENOEXEC. What does the error mean and how can I > resolve this? Problem was an unresolved symbol. > Also, I tried running truss against the main program to see what > libraries it loaded but apparently truss doesn't list the libraries it > loads. Sigh! -- albert chin (china @at@ thewrittenword .dot. com) |
| ||||
| Albert Chin-A-Young wrote: >>I'm trying to dlopen a library on AIX 5.1 but getting errno == ENOEXEC. >>dlerror() returns nothing. This library has other dependencies. If I >>compile the main program without -brtl, the dlopen works. With -brtl, >>the dlopen fails with ENOEXEC. What does the error mean and how can I >>resolve this? > > Problem was an unresolved symbol. Correct. Use dump -Tv to look at the loader symbol table, and ensure that all ".." imports are going to be resolved by other modules in the process. This known problem will hopefully be fixed some day (the issue is currently getting some attention, I believe). It works without -brtl because ".." imports are _only_ handled by the runtime linking component, which is only invoked if the main app is linked with -brtl. -- Gary R. Hook / AIX PartnerWorld for Developers / These opinions are MINE __________________________________________________ ______________________ |
| Thread Tools | |
| Display Modes | |
|
|