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

nginx-1.12.2版本编译安装出现如下错误,求解 #2

Open
527593036 opened this issue Jan 21, 2018 · 3 comments
Open

nginx-1.12.2版本编译安装出现如下错误,求解 #2

527593036 opened this issue Jan 21, 2018 · 3 comments

Comments

@527593036
Copy link

版本: nginx-1.12.2

编译命令:./configure --prefix=/usr/local/nginx-1.12.2 --with-stream --add-module=../nginx-upsync && make -j4

出现如下错误:
../nginx-upsync/nginx-stream-upsync-module/src/ngx_stream_upsync_module.c: In function 'ngx_stream_upsync_replace_peers':
../nginx-upsync/nginx-stream-upsync-module/src/ngx_stream_upsync_module.c:1181:53: error: variable 'tmp_peer' set but not used [-Werror=unused-but-set-variable]
ngx_stream_upstream_rr_peer_t *peer = NULL, *tmp_peer;
^
cc1: all warnings being treated as errors
make[1]: *** [objs/addon/src/ngx_stream_upsync_module.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/usr/local/src/nginx/nginx-1.12.2'
make: *** [build] Error 2

@CallMeFoxie
Copy link
Owner

Try updating the submodules to their git's masters.

@Shulong123
Copy link

版本:nginx-1.12.1

编译命令: ./configure --prefix=/opt/nginx --with-stream --add-module=../nginx-upsync && make

出现如下错误:有遇到吗?
make[1]: *** No rule to make target ../nginx-upsync/nginx-upsync-module/src/ngx_http_upsync_module.h', needed by objs/addon/src/ngx_http_upsync_module.o'. Stop.
make[1]: Leaving directory `/opt/zdd/nginx-1.12.1'
make: *** [build] Error 2

@Shulong123
Copy link

我的错,请忽略上面,感谢CallMeFoxie

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

3 participants