This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.


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

Re: RTLD_NEXT plus LD_LIBRARY_PATH plus LD_PRELOAD doesn't work..?


"Matthias Urlichs" <smurf@noris.de> writes:

> ./miniperl configpm tmp
> 
> instlog.so basically does this:
> [...]
> int __open(const char *a, int b, int c) {
>     static int (*libc_open)(const char *,int,int) = NULL;
> 
>     libc_open = (typeof(libc_open))dlsym (RTLD_NEXT, "open");
>     return (*libc_open)(a,b,c);
> [...]
> }
> int open(const char *a, int b, int c) { return __open(a,b,c); }

Could you provide a little test case showing this problem? And/or
running the program with LD_DEBUG=bindings.

-- Uli
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com   `------------------------


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