[uClibc] Re: dyn lib dependency question

Erik Andersen andersen at codepoet.org
Tue Nov 16 06:00:39 UTC 2004


On Tue Nov 16, 2004 at 01:12:13AM +0100, Tjernlund Hemma wrote:
> 
> libreadline.so needs a symbol(tgetent) which is defined
> in libncurses.so and libcurses.so, but libreadline.so does
> NOT have a dependency(no DT_NEEDED entry) on either libncurses.so or libcurses.so.
> 
> Is this allowed? 
> 
> Current libdl assumes that all dlopened libs has a complete dependency list and
> therfore fails to resolve the tgetent symbol for libreadline.so when libreadline.so
> is dlopened with RTLD_LOCAL scope. This makes python fail if you build python
> with readline support.
> 
>  Jocke

I consider that to be a bug in libreadline then, since it
apparently needs a -lncurses added when linking.

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--



More information about the uClibc mailing list