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

tengine 2.2.2 compile error #158

Open
laoshancun opened this issue Mar 19, 2018 · 1 comment
Open

tengine 2.2.2 compile error #158

laoshancun opened this issue Mar 19, 2018 · 1 comment

Comments

@laoshancun
Copy link

tcp_1_8.patch already patched.
tengine version v2.2.2

cc -c -I/usr/local/include/luajit-2.0/  -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DTCP_FASTOPEN=23 -DNDK_SET_VAR -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free  -I -I -I ./modules/ngx_debug_pool -I src/core -I src/event -I src/event/modules -I src/os/unix -I /usr/local/include/luajit-2.0/ -I ./modules/ngx_http_lua_module/src/api -I deps/ngx_devel_kit-0.2.19/objs -I objs/addon/ndk -I deps/nginx_tcp_proxy_module/modules -I deps/nginx_tcp_proxy_module/parsers -I deps/nginx_tcp_proxy_module -I deps/pcre-8.36 -I deps/openssl-1.0.2n/.openssl/include -I objs -I src/http -I src/http/modules -I src/http/v2 -I deps/ngx_devel_kit-0.2.19/src -I src/mail \
        -o objs/addon/modules/ngx_tcp_generic_proxy_module.o \
        deps/nginx_tcp_proxy_module/modules/ngx_tcp_generic_proxy_module.c
deps/nginx_tcp_proxy_module/ngx_tcp_upstream_round_robin.c: In function ‘ngx_tcp_upstream_get_round_robin_peer’:
deps/nginx_tcp_proxy_module/ngx_tcp_upstream_round_robin.c:459:16: error: ‘ngx_event_t’ has no member named ‘lock’
         c->read->lock = c->read->own_lock;
                ^
deps/nginx_tcp_proxy_module/ngx_tcp_upstream_round_robin.c:459:32: error: ‘ngx_event_t’ has no member named ‘own_lock’
         c->read->lock = c->read->own_lock;
                                ^
deps/nginx_tcp_proxy_module/ngx_tcp_upstream_round_robin.c:460:17: error: ‘ngx_event_t’ has no member named ‘lock’
         c->write->lock = c->write->own_lock;
                 ^
deps/nginx_tcp_proxy_module/ngx_tcp_upstream_round_robin.c:460:34: error: ‘ngx_event_t’ has no member named ‘own_lock’
         c->write->lock = c->write->own_lock;
                                  ^
make[1]: *** [objs/addon/nginx_tcp_proxy_module/ngx_tcp_upstream_round_robin.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/nas/software/tengine'
make: *** [build] Error 2
@laoshancun
Copy link
Author

laoshancun commented Apr 3, 2018

if remove option --with-threads,it's ok.

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

1 participant