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: balducci
Subject: Re: ncurses-6.1-20181124 failed to build - undefined reference to `NonEmpty'
Date: Sun, 25 Nov 2018 12:30:16 +0100

> > Hi all,
> >
> > The latest snapshot fails to build with the following message:
> >
> > lib_mouse.c:(.text+0x59a): undefined reference to `NonEmpty'
> >

I get the same build failure

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

Building with --with-trace allows the build to complete successfully;
but shouldn't ncurses build cleanly (as always) also when running with
--without-trace?

ciao
-gabriele



reply via email to

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