Opened 12 years ago

Closed 12 years ago

#3285 closed defect (invalid)

Ncurses-5.9: HASHTABSIZE undeclared

Reported by: Rico Sonntag Owned by: lfs-book@…
Priority: normal Milestone: 7.3
Component: Book Version: SVN
Severity: blocker Keywords:
Cc:

Description

Building the ncurses package using your tutorial (http://www.linuxfromscratch.org/lfs/view/development/chapter05/ncurses.html) fails with:

gcc -o make_hash -DHAVE_CONFIG_H -I../ncurses -I. -I./../include -I../include -DUSE_BUILD_CC -DHAVE_CONFIG_H -I../ncurses -I.  -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64  -DNDEBUG -I. -I../include -I/tools/include -O2 --param max-inline-insns-single=1200 ./tinfo/make_hash.c
./tinfo/make_hash.c: In function 'hash_function':
./tinfo/make_hash.c:82:25: error: 'HASHTABSIZE' undeclared (first use in this function)
./tinfo/make_hash.c:82:25: note: each undeclared identifier is reported only once for each function it appears in
./tinfo/make_hash.c: In function '_nc_make_hash_table':
./tinfo/make_hash.c:93:21: error: 'HASHTABSIZE' undeclared (first use in this function)
./tinfo/make_hash.c:96:21: error: 'CAPTABSIZE' undeclared (first use in this function)
./tinfo/make_hash.c: In function 'main':
./tinfo/make_hash.c:164:43: error: 'CAPTABSIZE' undeclared (first use in this function)
./tinfo/make_hash.c:166:29: error: 'HASHTABSIZE' undeclared (first use in this function)
make[1]: *** [make_hash] Error 1
make[1]: Leaving directory `/share/MD0_DATA/Public/src/lfs/sources/ncurses-5.9/ncurses'
make: *** [all] Error 2

It wasn't easy for me to find a fix for this. Finally I found the solution at: http://permalink.gmane.org/gmane.linux.lfs.support/26546 http://svn.cross-lfs.org/svn/repos/cross-lfs/trunk/patches/ncurses-5.7-bash_fix-1.patch

Maybe you should mention it in the ncurses chapter or provide a patch file (http://www.linuxfromscratch.org/lfs/view/development/chapter03/patches.html).

Change History (2)

comment:1 by Rico Sonntag, 12 years ago

Running "make" at the include/Makefile shows the following error:

admin@NAS:/share/MD0_DATA/Public/src/lfs/sources/ncurses-5.9/include> make
sh ./MKhashsize.sh ./Caps >hashsize.h
./MKhashsize.sh: line 38: unexpected EOF while looking for matching ``'
./MKhashsize.sh: line 43: syntax error: unexpected end of file
make: *** [hashsize.h] Error 2

comment:2 by Matthew Burgess, 12 years ago

Resolution: invalid
Status: newclosed

As per http://www.linuxfromscratch.org/lfs/view/development/chapter01/askforhelp.html - please post your issue to the lfs-support mailing list where it can be more easily diagnosed.

Note: See TracTickets for help on using tickets.