[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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 
libreadline's yet).

Sorry for this on debian-user, but I didn't realise this was libc6

joost witteveen, joostje@debian.org
#!/usr/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj
$/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1
#what's this? see http://www.dcs.ex.ac.uk/~aba/rsa/

TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .

Reply to: