编译totd-1.5.1 DNS PORXY出现有错误

gcc -g -O2 -DHAVE_CONFIG_H  -Werror -Wall -DTOTCONF=/"/usr/local/etc/totd.conf/" -DSCOPED_REWRITE -DUSE_INET4 -DUSE_INET6       -c -o request.o request.c
cc1: warnings being treated as errors
request.c: In function ‘request_start’:
request.c:73: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
request.c:148: warning: pointer targets in passing argument 2 of ‘sprint_inet’ differ in signedness
request.c: In function ‘do_forward’:
request.c:175: warning: pointer targets in passing argument 1 of ‘strlcpy’ differ in signedness
request.c:175: warning: pointer targets in passing argument 2 of ‘strlcpy’ differ in signedness
request.c: In function ‘request_retry’:
request.c:245: warning: pointer targets in passing argument 1 of ‘dname_decompress’ differ in signedness
request.c: In function ‘recursive_process’:
request.c:318: warning: pointer targets in passing argument 1 of ‘strlcpy’ differ in signedness
request.c:318: warning: pointer targets in passing argument 2 of ‘strlcpy’ differ in signedness
request.c:413: warning: pointer targets in passing argument 1 of ‘strlcpy’ differ in signedness
request.c:413: warning: pointer targets in passing argument 2 of ‘strlcpy’ differ in signedness
make: *** [request.o] Error 1

解决:形参和实参类型不一致所致,要么强制转换实参,要么修改形参的定义。

你可能感兴趣的:(编译totd-1.5.1 DNS PORXY出现有错误)