首页 > Linux系统 > system > installwatch.c:2942: error: conflicting types for ‘readlink’
2014
05-28

installwatch.c:2942: error: conflicting types for ‘readlink’

下载最新版本的checkinstall:

wget http://asic-linux.com.mx/~izto/checkinstall/files/source/checkinstall-1.6.2.tar.gz
tar -xvzf checkinstall-1.6.2.tar.tar
 cd checkinstall-1.6.2

直接make 会报错

01.installwatch.c:2942: error: conflicting types for 'readlink'  
02./usr/include/unistd.h:828: note: previous declaration of 'readlink' was here  
03.installwatch.c:3080: error: conflicting types for 'scandir'  
04./usr/include/dirent.h:252: note: previous declaration of 'scandir' was here  
05.installwatch.c:3692: error: conflicting types for 'scandir64'  
06./usr/include/dirent.h:275: note: previous declaration of 'scandir64' was here

checkinstall-1.6.2.tar

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

留下一个回复