bug-ncurses
[Top][All Lists]
Advanced

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

symbol _tracecchar_t2 not defined


From: Thomas Dickey
Subject: symbol _tracecchar_t2 not defined
Date: Fri, 26 Apr 2019 19:47:05 -0400
User-agent: Mutt/1.5.23 (2014-03-12)

> I am writing a program that uses ncurses and I want to check it with
> valgrind. My problem can be illustrated with a simple hello-world program:
> 
> #include <ncurses.h>
> 
> int main() {
>     initscr();
>     printw("Hello World !!!");
>     refresh();
>     getch();
>     endwin();
> 
>     return 0;
> }
> 
> It works fine as long as I compile it with the normal lib:
> 
>   gcc -o example example.c -lncurses
> 
> If I use the wide char lib:
> 
>   gcc -o example example.c -lncursesw
> 
> valgrind produces the following error message and stops before starting my
> program:
> 
> # valgrind ./example
> ==3435== Memcheck, a memory error detector
> ==3435== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
> ==3435== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info
> ==3435== Command: ./example
> ==3435==
> ./example: relocation error: /usr/lib/debug/libncursesw.so.5: symbol
> _tracecchar_t2 version NCURSES_TINFO_5.4.20040208 not defined in file
> libtinfo.so.5 with link time reference

...
> I am using Ubuntu 18.04 with:
> 
>     libncursesw5-dev    6.1-1ubuntu1.18.04
> 
>     libtinfo5-dbg            6.1-1ubuntu1.18.04
> 
> I am not sure if this is a ncurses problem or a problem of the tinfo lib or
> a problem of packaging the right libs. I hope you can help me.

It's an Ubuntu-specific problem with their packaging.
You'll have to pursue the problem in their bug-tracking system.

-- 
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]