bug-ncurses
[Top][All Lists]
Advanced

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

Re: bug in start_color() affecting extended_pair_content() in version 6.


From: Thomas Dickey
Subject: Re: bug in start_color() affecting extended_pair_content() in version 6.1
Date: Sat, 25 May 2019 19:50:12 -0400
User-agent: Mutt/1.5.23 (2014-03-12)

On Sat, May 25, 2019 at 01:57:14PM -0700, Jeffrey Kintscher wrote:
> On 5/21/19 4:27 PM, Thomas Dickey wrote:
> >I build a copy of your test program, turning on the debug-trace and
> >collecting the output logs, etc. in the attached, but don't see a
> >problem.  I made sure to use the terminfo database which was built
> >with ncurses 6.1:
> Debugging dynamic linkage problems on OS X can be a pain, so I moved to a
> system with Ubuntu 16.04.4 LTS and reproduced the problem.

otool helps...
 
> I started by building everything from scratch. These steps assume
> ncurses.tar.gz and testcolors.zip are in the current directory at start:

I'm using ncurses 6.1.20190525 at the moment.
But ncurses 6.1 has a difference - see below.
 
> 1. tar xzf ncurses.tar.gz
> 2. mkdir -p ncurses-6.1/build/foo
> 3. cd ncurses-6.1/build/foo
> 4. unzip ../../../testcolors.zip
> 5. cd ..
> 6. foo/doit
> 7. make -j 7
> 8. make install
> 9. make -C foo foo
> 
> The "make install" step fails to update /etc/ld.so.cache with the newly
> installed libraries, but that is OK since it isn't being run as root, and
> also helpful since it gives us control of which library gets loaded when
> executing the test program. Running ldd on the foo executable verifies that
> libncursesw.so.6 can't be found:

Actually it's simpler than that: in the misc directory, there's a script
"shlib", which can be used for ad hoc tests in the build-tree.  In step 9,
I did
        cd foo
        shlib make foo
and then

        NCURSES_TRACE=0x224 TERM=xterm-256color shlib ./foo

In my environment, I've more than one terminfo database, so I had to
also unset TERMINFO and TERMINFO_DIRS while configuring/making/testing.

There's an error seen with ncurses 6.1 - see attached testcolors1.zip

But it doesn't occur with current code (6.1 20190525) - testcolors2.zip

Since Ubuntu 16.04 doesn't _have_ ncurses 6.1, I suppose the proper
answer is that you might want to run with current code - see

https://invisible-island.net/datafiles/current/ncurses.tar.gz

-- 
Thomas E. Dickey <address@hidden>
https://invisible-island.net
ftp://ftp.invisible-island.net

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]