This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
Re: RTLD_NEXT plus LD_LIBRARY_PATH plus LD_PRELOAD doesn't work..?
- To: "Matthias Urlichs" <smurf@noris.de>
- Subject: Re: RTLD_NEXT plus LD_LIBRARY_PATH plus LD_PRELOAD doesn't work..?
- From: Ulrich Drepper <drepper@cygnus.com>
- Date: 18 May 1998 10:31:50 -0700
- Cc: libc-hacker@cygnus.com
- References: <19980517212652.12737@noris.de>
- Reply-To: drepper@cygnus.com (Ulrich Drepper)
"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 `------------------------