[oi-dev] readline and termcap question

Joerg Schilling Joerg.Schilling at fokus.fraunhofer.de
Tue Aug 20 09:18:48 UTC 2013


Alexander Pyhalov <alp at rsu.ru> wrote:

> On 08/19/2013 19:46, Alexander Pyhalov wrote:
> > Hello.
> > Our current libreadline in /hipster is not linked to libtermcap.so. This
> > causes issues when applications don't add "-ltermcap" linker flag.
> > We have the following patch
> > https://hg.openindiana.org/sustaining/oi_151a/sfw-gate/rev/1d4f978df141
> > applied in /dev.
>
> Currently I applied patch from /dev...

BTW: what do you like to achieve?

Do you know that -ltermcap on Solaris does not give you a real termcap library
but a termcap emulation using terminfo?

If you like to check whether your binaries would work with a real termcap 
library, you could test with with libxtermcap from the schily source bundle at:

ftp://ftp.berlios.de/pub/schily/

compile with smake LINKMODE=dynamic if you like to get dynamic libs.

But note that this does not check for 100% termcap compatibility as libxtermcap 
supports arbitrary entry sizes in case you supply a NULL pointer for the entry 
buffer.

Jörg

-- 
 EMail:joerg at schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
       js at cs.tu-berlin.de                (uni)  
       joerg.schilling at fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily




More information about the oi-dev mailing list