Chinaunix首页 | 论坛 | 博客
  • 博客访问: 937018
  • 博文数量: 245
  • 博客积分: 11429
  • 博客等级: 上将
  • 技术积分: 2662
  • 用 户 组: 普通用户
  • 注册时间: 2009-08-15 00:16
文章存档

2011年(56)

2010年(174)

2009年(15)

分类: LINUX

2010-10-18 15:17:15

最近升级nginx版本为 0.8.41 在make时提示如下警告:

objs/src/os/unix/ngx_process.o: In function `ngx_process_get_status':
/data/soft/nginx-0.8.42/src/os/unix/ngx_process.c:490: warning: `sys_errlist' is deprecated; use `strerror' or `strerror_r' instead
/data/soft/nginx-0.8.42/src/os/unix/ngx_process.c:490: warning: `sys_nerr' is deprecated; use `strerror' or `strerror_r' instead
 

根据其官方描述,这属于正常现象,没有替换废弃的函数是因为新的为非异步信号安全的函数。

以下为官方说明:

While building nginx version 0.7.66, 0.8.35 or higher on Linux the following warning messages are issued:

warning: `sys_errlist' is deprecated;
use `strerror' or `strerror_r' instead
warning: `sys_nerr' is deprecated;
use `strerror' or `strerror_r' instead

This is normal: nginx has to use the deprecated sys_errlist[] and sys_nerr in signal handlers because strerror() and strerror_r() functions are not Async-Signal-Safe.

阅读(1038) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~