Description
Hi,
我正在使用TFS,想使用restapi,发现没办法编译过去。
cc1: warnings being treated as errors
../nginx-tfs-master//ngx_http_tfs_module.c: 在函数‘ngx_http_tfs_tackle_log’中:
../nginx-tfs-master//ngx_http_tfs_module.c:517: 错误:隐式声明函数‘ngx_log_create’
../nginx-tfs-master//ngx_http_tfs_module.c:517: 错误:赋值时将整数赋给指针,未作类型转换
../nginx-tfs-master//ngx_http_tfs_module.c:526: 错误:隐式声明函数‘ngx_log_set_levels’
../nginx-tfs-master//ngx_http_tfs_module.c:526: 错误:返回时将整数赋给指针,未作类型转换
make[1]: *** [objs/addon/nginx-tfs-master/ngx_http_tfs_module.o] 错误 1
make[1]: Leaving directory `/root/tengine-2.1.0'
make: *** [build] 错误 2
去掉MakeFile 的-Werror 选项会出现下面的错误:
objs/addon/nginx-tfs-master/ngx_http_tfs_module.o: In function ngx_http_tfs_tackle_log': /root/tengine-2.1.0/../nginx-tfs-master//ngx_http_tfs_module.c:517: undefined reference to ngx_log_create'
/root/tengine-2.1.0/../nginx-tfs-master//ngx_http_tfs_module.c:526: undefined reference to `ngx_log_set_levels'
请问我该设置什么才能编译过去?