Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openresty 无法编译安装 #31

Closed
m1911 opened this issue Aug 29, 2018 · 3 comments · Fixed by #36
Closed

openresty 无法编译安装 #31

m1911 opened this issue Aug 29, 2018 · 3 comments · Fixed by #36

Comments

@m1911
Copy link

m1911 commented Aug 29, 2018

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 模块进行编译 就会报错,是不是有什么和你的模块重复了

@m1911
Copy link
Author

m1911 commented Aug 29, 2018

我测试了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
也是一样的是缺少什么依赖吗?

@m1911 m1911 closed this as completed Sep 1, 2018
@Lax
Copy link
Owner

Lax commented Sep 2, 2018

抱歉没看到提示,用 --add-dynamic-module 方式编译成动态模块有问题吗?@m1911

@m1911
Copy link
Author

m1911 commented Sep 2, 2018

@Lax 不是是静态编译的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants