Re: LD_PRELOAD=lib using ldopen: can't resolve symbol '_dl_open'
OK, replying to my own post,
> I'm trying to LD_PRELOAD a library that in turn uses ldopen.
> this works OK, as long as I don't try to run (with LD_PRELOAD
> set) any binaries that use libdl themselves.
> $ gcc -shared -Wl,-soname,libfoo.so.0 -o libfoo.so.0.0 -fPIC libfoo.c -ldl
> $ export LD_PRELOAD=./libfoo.so.0.0
> $ bash
> bash: can't resolve symbol '_dl_open'
> bash: can't resolve symbol '_dl_close'
> bash: can't resolve symbol '_dl_catch_error'
Hopefully, this is caused by the nice mix of libc5/libc6 libraries I'm
forcing bash to use now: ./libfoo.so.0.0 was libc6, whereas bash
is (still) libc5 on my system. I'll _have_ to get that new
bash, but alas, master is still down (and I don't have those new
Sorry for this on debian-user, but I didn't realise this was libc6
joost witteveen, email@example.com
#what's this? see http://www.dcs.ex.ac.uk/~aba/rsa/
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
Trouble? e-mail to firstname.lastname@example.org .