[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-ncurses] ncurses 6.0 and cur_term function
From: |
Dr. Werner Fink |
Subject: |
Re: [bug-ncurses] ncurses 6.0 and cur_term function |
Date: |
Mon, 21 Sep 2015 10:47:54 +0200 |
User-agent: |
Mutt/1.5.24 (2015-08-30) |
On Sun, Sep 20, 2015 at 03:53:01PM -0400, Thomas Dickey wrote:
> On Sun, Sep 20, 2015 at 06:13:03PM +0200, Ondřej Súkup wrote:
> > hello,
> >
> > why is in ncurses-6.0:
> >
> > $ readelf -a libncurses.so.6 | grep cur_term
> > 000000228328 006d00000007 R_X86_64_JUMP_SLO 0000000000000000 _nc_cur_term
> > + 0
> > 109: 0000000000000000 0 FUNC GLOBAL DEFAULT UND
> > address@hidden (24)
> >
> > $ readelf -a libncurses.so.5 | grep cur_term
> > 000000225f70 003900000006 R_X86_64_GLOB_DAT 0000000000000000 cur_term + 0
> > 57: 0000000000000000 0 OBJECT GLOBAL DEFAULT UND
> > address@hidden (29)
>
> Compare with the source code:
>
> > fgrep -n cur_term *.map
> ncurses.map:879: cur_term;
> ncursest.map:344: _nc_cur_term;
> ncursest.map:446: _nc_get_cur_term;
> ncursest.map:447: _nc_get_cur_term_sp;
> ncursestw.map:344: _nc_cur_term;
> ncursestw.map:452: _nc_get_cur_term;
> ncursestw.map:453: _nc_get_cur_term_sp;
> ncursesw.map:186: cur_term;
>
> For instance, you may be using ncurses 6.0 on OpenSUSE, where they've
> bent the rules a little to make tinfo the same as for the threaded
> (libncursest) library. There are as usual pros/cons about doing that.
>
> (I didn't make it easy to do this, but I didn't make it impossible...)
Does this mean I should switch over to use several tinfo libraries, one
for threaded and one for wide+threaded?
On OpenSUSE the libncurses6 is threaded as well as libncursesw6. IMHO
it makes no sence to use a third library which is none threaded as this
will make users more disoriented.
And what does `bent the rules' mean here? AFAICS and AFAIK the libtinfo
for both libncurses6 (which is threaded) as wel las libncursesw6 are
binary comptible.
Curious
Werner
--
"Having a smoking section in a restaurant is like having
a peeing section in a swimming pool." -- Edward Burr
signature.asc
Description: Digital signature