2005/10/26, Jeff Johnston <jjohnstn@redhat.com>:
Regarding dl-load.c: I am able to build this
on my FC-4 system. dl-load.c includes ldsodefs.h which then includes
dlfcn.h which is found in libc/sys/linux/include and defines
__RTLD_DLOPEN. Why aren't you picking this up in your build?
-- Jeff J.
It appears as though it is supposed to be that dl-load.c includes
ldsodefs.h, which includes linux/include/dlfcn.h, which includes
linux/dl/dlfcn.h, which includes linux/sys/dlfcn.h. Unfortunately, the
#include <dlfcn.h> statement in ldsodefs.h is pulling in
linux/dl/dlfcn.h instead of linux/include/dlfcn.h. This is also a
problem because the installed include/dlfcn.h includes <dl/dlfcn.h>,
which is not installed.
If I change the #include <dlfcn.h> in ldsodefs.h to #include
<include/dlfcn.h> -- a hack which I certainly don't recommend -- it
works.
Cheers,
Shaun