Opened 12 years ago
Closed 12 years ago
#3285 closed defect (invalid)
Ncurses-5.9: HASHTABSIZE undeclared
Reported by: | Rico Sonntag | Owned by: | |
---|---|---|---|
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 , 12 years ago
comment:2 by , 12 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
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.
Running "make" at the include/Makefile shows the following error: