php - mac 上编译安装nginx的时候报错有错误信息
阿神
阿神 2017-04-11 09:11:30
0
2
560

/Library/Developer/CommandLineTools/usr/bin/make -f objs/Makefile install
cc -c -pipe -O -Wall -Wextra -Wpointer-arith -Wconditional-uninitialized -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \

    -o objs/src/core/ngx_file.o \
    src/core/ngx_file.c

src/core/ngx_file.c:323:9: error: 'OSAtomicAdd64' is deprecated: first

  deprecated in macOS 10.12 - Use
  atomic_fetch_add_explicit(memory_order_relaxed) from <stdatomic.h> instead
  [-Werror,-Wdeprecated-declarations]
n = ngx_atomic_fetch_add(ngx_temp_number, add);
    ^

src/os/unix/ngx_atomic.h:68:6: note: expanded from macro 'ngx_atomic_fetch_add'

(OSAtomicAdd64(add, (int64_t *) value) - add)
 ^

/usr/include/libkern/OSAtomicDeprecated.h:231:9: note: 'OSAtomicAdd64' has been

  explicitly marked deprecated here

int64_t OSAtomicAdd64( int64_t __theAmount,

    ^

1 error generated.

阿神
阿神

闭关修行中......

全部回复(2)
大家讲道理

既然是Mac,为何不直接brew install nginx

Peter_Zhu

用homebrew吧

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责声明 Sitemap
PHP中文网:公益在线PHP培训,帮助PHP学习者快速成长!