bug-ncurses
[Top][All Lists]
Advanced

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

Re: ncurses-6.1-20181124 failed to build - undefined reference to `NonEm


From: Sven Joachim
Subject: Re: ncurses-6.1-20181124 failed to build - undefined reference to `NonEmpty'
Date: Sun, 25 Nov 2018 09:36:48 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.90 (gnu/linux)

On 2018-11-25 11:44 +0800, Chih-Hsuan Yen wrote:

> Hi all,
>
> The latest snapshot fails to build with the following message:
>
> lib_mouse.c:(.text+0x59a): undefined reference to `NonEmpty'
>
> Also, there's a warning when compiling lib_mouse.c
>
> gcc -DHAVE_CONFIG_H -I../ncurses -I. -I../include -D_DEFAULT_SOURCE
> -D_XOPEN_SOURCE=600 -DNDEBUG -O2 --param max-inline-insns-single=1200
> -c ../ncurses/./base/lib_mouse.c -o ../objects/lib_mouse.o
> ../ncurses/./base/lib_mouse.c: In function 'initialize_mousetype':
> ../ncurses/./base/lib_mouse.c:719:9: warning: implicit declaration of
> function 'NonEmpty' [-Wimplicit-function-declaration]
>      if (NonEmpty(key_mouse)) {
>          ^~~~~~~~
>
> I'm using GCC 8.2.1. Ncurses is configure with `./configure`.

NonEmpty is #defined in curses.priv.h, but that definition is inside a
#ifdef TRACE ... #endif block, so it's not there unless you configure
--with-trace.

Cheers,
       Sven



reply via email to

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