bug-ncurses
[Top][All Lists]
Advanced

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

"term.h and comp_captab.c disagree" problem


From: Hal Finkel
Subject: "term.h and comp_captab.c disagree" problem
Date: Wed, 20 Jun 2001 16:27:27 -0400

I have used this package (as an end-user) for a long time - and have
successfuly compiled version 5.2 on my Linux machine.
Last week I conducted a major upgrade of my software. I upgraded from Linux
2.2.13 to 2.4.5 and to glibc 2.2.3 (libc6) and to gcc version 2.95.3. I have
run into a problem when compiling (configuring actually, I suppose) ncurses
5.2 now that I did not have before.

When I compile I now get:

cd ../objects;
 gcc -I../ncurses -I.  -DNDEBUG -I. -I../include -DHAVE_CONFIG_H -O2  -c
../ncurses/comp_captab.c
../ncurses/comp_captab.c:1038: #error --> term.h and comp_captab.c disagree
about the <--
../ncurses/comp_captab.c:1039: #error --> numbers of booleans, numbers
and/or strings <--
../ncurses/comp_captab.c:2069: #error --> term.h and comp_captab.c disagree
about the <--
../ncurses/comp_captab.c:2070: #error --> numbers of booleans, numbers
and/or strings <--
make[1]: *** [../objects/comp_captab.o] Error 1
make[1]: Leaving directory `/sources/ncurses-5.2/ncurses'
make: *** [all] Error 2
gateway:/sources/ncurses-5.2#

term.h : // this is the same as how my previous (pre-upgrade) version looked
/*
 * Predefined terminfo array sizes
 */
#define BOOLCOUNT 44
#define NUMCOUNT  39
#define STRCOUNT  414

comp_captab.c: // this is different from the way it compiled before - but
the numbers are right for this file
#if (BOOLCOUNT!=37)||(NUMCOUNT!=33)||(STRCOUNT!=269)
#error  --> term.h and comp_captab.c disagree about the <--
#error  --> numbers of booleans, numbers and/or strings <--
#endif
// my pre-upgrade generated com_captab.c file had table entries consistent
with the term.h - now the newly generated file does not.

I do not understand how this works as both files seem to be generated from
the Caps file which is in the package. Normally I can figure this type of
stuff out but I get lost in the awk stuff.

I would appreciate any insights into my current situation.

Thanks in advance,
Hal




reply via email to

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