#3285: Ncurses-5.9: HASHTABSIZE undeclared
---------------------+------------------------------------------------------
 Reporter:  Sunday   |       Owner:  lfs-book@…                   
     Type:  defect   |      Status:  new                          
 Priority:  normal   |   Milestone:  7.3                          
Component:  Book     |     Version:  SVN                          
 Severity:  blocker  |    Keywords:                               
---------------------+------------------------------------------------------
 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).

-- 
Ticket URL: <http://wiki.linuxfromscratch.org/lfs/ticket/3285>
LFS Trac <http://wiki.linuxfromscratch.org/lfs/>
Linux From Scratch: Your Distro, Your Rules.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to