首页 > orther > notice > CheckInstall在CentOS6上无法编译使用的解决办法,installwatch.c:3080: error: conflicting types
2013
12-20

CheckInstall在CentOS6上无法编译使用的解决办法,installwatch.c:3080: error: conflicting types

编辑installwatch.c
at line 3080, change:

int scandir(	const char *dir,struct dirent ***namelist,
		int (*select)(const struct dirent *),
		int (*compar)(const void *,const void *)	) {

to:

int scandir(	const char *dir,struct dirent ***namelist,
		int (*select)(const struct dirent *),
		int (*compar)(const struct dirent **,const struct dirent **)	) {

at line 3692, change:

int scandir64(	const char *dir,struct dirent64 ***namelist,
		int (*select)(const struct dirent64 *),
		int (*compar)(const void *,const void *)	) {

to:

int scandir64(	const char *dir,struct dirent64 ***namelist,
		int (*select)(const struct dirent64 *),
		int (*compar)(const struct dirent64 **,const struct dirent64 **)	) {

http://www.patrickmin.com/linux/tip.php?name=checkinstall_fedora_13

最后编辑:
作者:admin
捐 赠如果您觉得这篇文章有用处,请支持作者!鼓励作者写出更好更多的文章!

留下一个回复