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

v1.3版本编译报错,二进制不兼容 #33

Closed
hezhaoye opened this issue Sep 14, 2018 · 1 comment
Closed

v1.3版本编译报错,二进制不兼容 #33

hezhaoye opened this issue Sep 14, 2018 · 1 comment

Comments

@hezhaoye
Copy link

我使用的是nginx-1.10.2版本,在configurate的时候会报错:
traffic-accounting-nginx-module-1.3/src/ngxta_http_statuses.c:30:5: error: ‘NGX_HTTP_PERMANENT_REDIRECT’ undeclared here (not in a function)
traffic-accounting-nginx-module-1.3/src/ngxta_http_statuses.c:45:5: error: ‘NGX_HTTP_TOO_MANY_REQUESTS’ undeclared here (not in a function)
traffic-accounting-nginx-module-1.3/src/ngxta_http_statuses.c:58:5: error: ‘NGX_HTTP_VERSION_NOT_SUPPORTED’ undeclared here (not in a function)
去掉之后,configuratite正常了,编译后生成的so文件,拷贝到同样的系统,会报错:
module "/data/services/nginx-1.10.2.3/modules/ngx_http_accounting_module.so" is not binary compatible in /data/services/nginx-1.10.2.3/conf/nginx.conf:18
加入的内容是:load_module modules/ngx_http_accounting_module.so;,
请问,这是什么问题呢

@Lax
Copy link
Owner

Lax commented Sep 15, 2018

please use v1.1 for nginx-1.10.x

@Lax Lax closed this as completed Apr 15, 2019
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

No branches or pull requests

2 participants