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

点赞