Reuben Thomas wrote:
> >     This is because AIX has <dlfcn.h> but does not have dladdr().
> >
> 
> I guess that means we need to guard the use of dladdr against AIX? Given
> that it's now standardized, one can hope that the number of systems that
> have dlopen but not dladdr will not grow. Or should we actually test
> explicitly for this function in configure.ac?

I have already added a test for dladdr() in relocatable-lib.m4, thus fixing
the compilation error on AIX.

> I see that someone has made an apparently partial implementation of dladdr
> for AIX: https://root.cern.ch/d/blog/aix-and-dladdr.html

Interesting. And a more complete implementation is at
https://gist.github.com/NattyNarwhal/76190b940e5259194677875578e3349b
It's under the ISC license; this means that we could borrow it for Gnulib
and thus create a module 'dladdr'.
But we would need to make the buffer resizable, to avoid an error as seen
e.g. in
https://bugs.openjdk.org/browse/JDK-8226468

Doc of AIX loadquery():
https://www.ibm.com/docs/en/aix/7.2.0?topic=l-loadquery-subroutine

Bruno




Reply via email to