This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Linux fixes [PATCH]


2005/10/26, Jeff Johnston <jjohnstn@redhat.com>:
> Patch checked in, thanks.  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


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