openresty 无法编译安装
m1911 opened this issue · 3 comments
configure arguments: --prefix=/opt/openresty/nginx --with-cc-opt=-O2 --add-module=../ngx_devel_kit-0.3.0 --add-module=../echo-nginx-module-0.61 --add-module=../xss-nginx-module-0.06 --add-module=../ngx_coolkit-0.2rc3 --add-module=../set-misc-nginx-module-0.32 --add-module=../form-input-nginx-module-0.12 --add-module=../encrypted-session-nginx-module-0.08 --add-module=../srcache-nginx-module-0.31 --add-module=../ngx_lua-0.10.13 --add-module=../ngx_lua_upstream-0.07 --add-module=../headers-more-nginx-module-0.33 --add-module=../array-var-nginx-module-0.05 --add-module=../memc-nginx-module-0.19 --add-module=../redis2-nginx-module-0.15 --add-module=../redis-nginx-module-0.3.7 --add-module=../rds-json-nginx-module-0.15 --add-module=../rds-csv-nginx-module-0.09 --add-module=../ngx_stream_lua-0.0.5 --with-ld-opt=-Wl,-rpath,/opt/openresty/luajit/lib --with-stream --with-http_stub_status_module --with-http_ssl_module --with-http_v2_module --with-http_gzip_static_module --with-http_gunzip_module --with-http_realip_module --with-pcre --with-openssl=/opt/src/libressl-2.7.4 --with-stream --with-stream_ssl_module
这是编译了的模块,添加这个traffic-accounting-nginx-module 模块进行编译 就会报错,是不是有什么和你的模块重复了
我测试了nginx14 版本的
报错objs/addon/src/ngx_traffic_accounting_statuses.o: In function bsearch': /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h:27: multiple definition of
ngx_status_bsearch'
objs/addon/src/ngx_traffic_accounting_statuses.o:/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h:27: first defined here
collect2: error: ld returned 1 exit status
objs/Makefile:301: recipe for target 'objs/nginx' failed
make[1]: *** [objs/nginx] Error 1
make[1]: Leaving directory '/root/nginx-1.14.0'
Makefile:8: recipe for target 'build' failed
make: *** [build] Error 2
也是一样的是缺少什么依赖吗?