directadmin

如果在尝试编译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

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

来源:未知 作者:张宇 浏览量:200 更新:2018-04-18
如果在尝试编译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

报告的解决方案是安装db4-devel:

yum install db4-devel

部分文章来源与网络,若有侵权请联系站长删除!