解压 chkrootkit 后,进入 chkrootkit 目录执行 make sense 出现如下错误信息

cc -DHAVE_LASTLOG_H -o chklastlog chklastlog.c
cc -DHAVE_LASTLOG_H -o chkwtmp chkwtmp.c
cc -DHAVE_LASTLOG_H   -D_FILE_OFFSET_BITS=64 -o ifpromisc ifpromisc.c
cc  -o chkproc chkproc.c
cc  -o chkdirs chkdirs.c
cc  -o check_wtmpx check_wtmpx.c
cc -static  -o strings-static strings.c
/usr/bin/ld: cannot find -lc
collect2: error: ld returned 1 exit status
make: *** [strings-static] Error 1

解决方法,安装 glibc-static

yum install glibc-static

重新执行 make sense ,成功后输出:

cc -static  -o strings-static strings.c
cc  -o chkutmp chkutmp.c

标签: CentOS