Webalizer compile: hashtab.c:71: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'hash'


Enter Your Query:
Use '%' for wildcards and quotes for "exact phrases"


Top Level » CustomBuild

Webalizer compile: hashtab.c:71: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'hash'Last Modified: Nov 15, 2010, 2:35 pm
If you get the following error when trying to compile webalizer:

hashtab.c: In function 'put_hnode':
hashtab.c:160: error: 'uint32_t' undeclared (first use in this function)
hashtab.c:160: error: (Each undeclared identifier is reported only once
hashtab.c:160: error: for each function it appears in.)
hashtab.c:160: error: expected ';' before 'hval'
hashtab.c:163: error: 'hval' undeclared (first use in this function)
hashtab.c:163: warning: implicit declaration of function 'hash'
hashtab.c: In function 'put_unode':
hashtab.c:362: error: 'uint32_t' undeclared (first use in this function)
hashtab.c:362: error: expected ';' before 'hval'
hashtab.c:366: error: 'hval' undeclared (first use in this function)
hashtab.c: In function 'put_rnode':
hashtab.c:491: error: 'uint32_t' undeclared (first use in this function)
hashtab.c:491: error: expected ';' before 'hval'
hashtab.c:495: error: 'hval' undeclared (first use in this function)
hashtab.c: In function 'put_anode':
hashtab.c:617: error: 'uint32_t' undeclared (first use in this function)
hashtab.c:617: error: expected ';' before 'hval'
hashtab.c:621: error: 'hval' undeclared (first use in this function)
hashtab.c: In function 'put_snode':
hashtab.c:734: error: 'uint32_t' undeclared (first use in this function)
hashtab.c:734: error: expected ';' before 'hval'
hashtab.c:738: error: 'hval' undeclared (first use in this function)
hashtab.c: In function 'put_inode':
hashtab.c:850: error: 'uint32_t' undeclared (first use in this function)
hashtab.c:850: error: expected ';' before 'hval'
hashtab.c:854: error: 'hval' undeclared (first use in this function)
hashtab.c: At top level:
hashtab.c:1231: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'hash'
make: *** [hashtab.o] Error 1

a reported solution is to install db4-devel:

yum install db4-devel

2003 JBMC Software, Suite 173  3-11 Bellerose Drive, St Albert, AB  T8N 1P7  Canada.  Mon-Fri 9AM-5PM MST