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: Jeffrey Kintscher
Subject: Re: bug in start_color() affecting extended_pair_content() in version 6.1
Date: Sat, 25 May 2019 13:57:14 -0700
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.7.0

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.

I started by building everything from scratch. These steps assume ncurses.tar.gz and testcolors.zip are in the current directory at start:
  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:

address@hidden:~/src/ncurses-6.1/build$ ldd foo/foo
    linux-vdso.so.1 =>  (0x00007fff9b1ec000)
    libncursesw.so.6 => not found
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fd9a8f7a000)
    /lib64/ld-linux-x86-64.so.2 (0x00007fd9a9344000)

Specifying the library path on the command line forces foo to use the library I just built:

address@hidden:~/src/ncurses-6.1/build$ LD_LIBRARY_PATH=/tmp/FOO/lib ldd foo/foo
    linux-vdso.so.1 =>  (0x00007ffc4e9c7000)
    libncursesw.so.6 => /tmp/FOO/lib/libncursesw.so.6 (0x00007f3606417000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f360604d000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f3606698000)

The extended color functions still fail:

address@hidden:~/src/ncurses-6.1/build$ LD_LIBRARY_PATH=/tmp/FOO/lib foo/foo
init_extended_pair(COLOR_PAIRS-1, 1, 1): -1
COLOR_PAIRS: 65536
extended_pair_content(COLOR_PAIRS-1, &f, &b): -1
f: 3276
b: -1749703152

The config.log file is attached. My system details are:

OS:
Ubuntu 16.04.4 LTS

uname -a
Linux albarino.praecino.net 4.4.0-127-generic #153-Ubuntu SMP Sat May 19 10:58:46 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

make --version
GNU Make 4.1
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

gcc --version
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


-- 
-----------------------------------------
>From there to here, from here to there,
funny things are everywhere.
           -- Theodore Geisel

Attachment: config.log.gz
Description: GNU Zip compressed data


reply via email to

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