[oi-dev] readline and termcap question

Andy Stormont andyjstormont at gmail.com
Tue Aug 20 09:40:25 UTC 2013


Hi,

On 20 Aug 2013, at 10:18, Joerg Schilling <Joerg.Schilling at fokus.fraunhofer.de> wrote:

> 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 term info?

Thats true for the illumos provided libtermcap, but libreadline is linked to ncurses.

The change looks good to me.

Andy.

> 
> 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
> 
> _______________________________________________
> oi-dev mailing list
> oi-dev at openindiana.org
> http://openindiana.org/mailman/listinfo/oi-dev





More information about the oi-dev mailing list