Error compiling nginx with --add-module=nginx_tcp_proxy_module #89

Open
Mimikoo opened this Issue Feb 25, 2014 · 3 comments

Comments

Projects
None yet
2 participants

Mimikoo commented Feb 25, 2014

Hello.
I can't compile nginx with this module. This is the make error:
cc -c -I /home/mimiko/src/nginx-modules/ngx_http_js_module/src/ -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I/opt/GeoIP/include -I/opt/gperftools/include -I/opt/ffmpeg/include -Wno-error -DNDK_SET_VAR -DSERF_HTTPS_FETCHING=0 -I/home/mimiko/src/nginx-modules/nginx-rtmp-module -I/home/mimiko/src/nginx-modules/ngx_http_lower_upper_case -DNDK_SET_VAR -DNDK_UPSTREAM_LIST -D_LARGEFILE_SOURCE -DBUILDING_NGINX -I/home/mimiko/src/nginx-modules/ngx_http_php_session -DNDK_SET_VAR -DNDK_SET_VAR -DNDK_SET_VAR -DNDK_SET_VAR -DNDK_SET_VAR -Wno-unused-function -Wno-missing-field-initializers -D_POSIX_C_SOURCE=200112L --std=c99 -Isrc -I src/core -I src/event -I src/event/modules -I src/os/unix -I /home/mimiko/src/nginx-modules/ngx_devel_kit/objs -I objs/addon/ndk -I /home/mimiko/src/nginx-modules/ngx_pagespeed/psol/include -I /home/mimiko/src/nginx-modules/ngx_pagespeed/psol/include/third_party/chromium/src -I /home/mimiko/src/nginx-modules/ngx_pagespeed/psol/include/third_party/google-sparsehash/src -I /home/mimiko/src/nginx-modules/ngx_pagespeed/psol/include/third_party/google-sparsehash/gen/arch/linux/x64/include -I /home/mimiko/src/nginx-modules/ngx_pagespeed/psol/include/third_party/protobuf/src -I /home/mimiko/src/nginx-modules/ngx_pagespeed/psol/include/third_party/re2/src -I /home/mimiko/src/nginx-modules/ngx_pagespeed/psol/include/out/Release/obj/gen -I /home/mimiko/src/nginx-modules/ngx_pagespeed/psol/include/out/Release/obj/gen/protoc_out/instaweb -I /home/mimiko/src/nginx-modules/ngx_pagespeed/psol/include/third_party/apr/src/include -I /home/mimiko/src/nginx-modules/ngx_pagespeed/psol/include/third_party/aprutil/src/include -I /home/mimiko/src/nginx-modules/ngx_pagespeed/psol/include/third_party/apr/gen/arch/linux/x64/include -I /home/mimiko/src/nginx-modules/ngx_pagespeed/psol/include/third_party/aprutil/gen/arch/linux/x64/include -I /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/modules -I /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/parsers -I /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module -I /opt/libpq/include -I /opt/spidermonkey/include -I /home/mimiko/src/nginx-modules/nginx-video-thumbextractor-module/src -I /home/mimiko/src/nginx-modules/nginx-video-thumbextractor-module/include -I /opt/sregex/include -I /opt/luajit/include/luajit-2.0 -I /opt/luajit/include/luajit-2.0 -I /home/mimiko/src/nginx-modules/lua-nginx-module/src/api -I /home/mimiko/src/nginx-modules/nginx-push-stream-module/src -I /home/mimiko/src/nginx-modules/nginx-push-stream-module/include -I /home/mimiko/src/nginx-modules/nginx_http_push_module/src -I /home/mimiko/src/nginx-modules/nginx-selective-cache-purge-module/src -I /home/mimiko/src/nginx-modules/nginx-selective-cache-purge-module/include -I ../pcre -I ../openssl/.openssl/include -I ../zlib -I /usr/include/libxml2 -I objs -I src/http -I src/http/modules -I src/http/modules/perl -I /home/mimiko/src/nginx-modules/ngx_devel_kit/src -I /home/mimiko/src/nginx-modules/nginx-upload-module -I /home/mimiko/src/nginx-modules/healthcheck_nginx_upstreams -I /home/mimiko/src/nginx-modules/nginx-http-sysguard -I src/mail
-o objs/addon/nginx_tcp_proxy_module/ngx_tcp.o
/home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/ngx_tcp.c
In file included from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/ngx_tcp_upstream_check.h:12:0,
from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/ngx_tcp.h:33,
from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/ngx_tcp.c:5:
/home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/parsers/http_request_parser.h:20:3: error: unknown type name Б─≤field_cbБ─≥
/home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/parsers/http_request_parser.h:21:3: error: unknown type name Б─≤element_cbБ─≥
/home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/parsers/http_request_parser.h:22:3: error: unknown type name Б─≤element_cbБ─≥
/home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/parsers/http_request_parser.h:23:3: error: unknown type name Б─≤element_cbБ─≥
/home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/parsers/http_request_parser.h:24:3: error: unknown type name Б─≤element_cbБ─≥
/home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/parsers/http_request_parser.h:25:3: error: unknown type name Б─≤element_cbБ─≥
/home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/parsers/http_request_parser.h:26:3: error: unknown type name Б─≤element_cbБ─≥
/home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/parsers/http_request_parser.h:27:3: error: unknown type name Б─≤element_cbБ─≥
In file included from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/parsers/http_response_parser.h:5:0,
from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/ngx_tcp_upstream_check.h:13,
from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/ngx_tcp.h:33,
from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/ngx_tcp.c:5:
/home/mimiko/src/nginx-modules/ngx_http_php_session/parser.h:9:3: error: conflicting types for Б─≤extract_ctxБ─≥
In file included from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/parsers/http_request_parser.h:5:0,
from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/ngx_tcp_upstream_check.h:12,
from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/ngx_tcp.h:33,
from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/ngx_tcp.c:5:
/home/mimiko/src/nginx-modules/ngx_http_php_session/parser.h:9:3: note: previous declaration of Б─≤extract_ctxБ─≥ was here
In file included from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/parsers/http_response_parser.h:5:0,
from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/ngx_tcp_upstream_check.h:13,
from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/ngx_tcp.h:33,
from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/ngx_tcp.c:5:
/home/mimiko/src/nginx-modules/ngx_http_php_session/parser.h:12:11: error: redefinition of Б─≤element_separatorsБ─≥
In file included from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/parsers/http_request_parser.h:5:0,
from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/ngx_tcp_upstream_check.h:12,
from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/ngx_tcp.h:33,
from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/ngx_tcp.c:5:
/home/mimiko/src/nginx-modules/ngx_http_php_session/parser.h:12:11: note: previous definition of Б─≤element_separatorsБ─≥ was here
In file included from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/parsers/http_response_parser.h:5:0,
from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/ngx_tcp_upstream_check.h:13,
from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/ngx_tcp.h:33,
from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/ngx_tcp.c:5:
/home/mimiko/src/nginx-modules/ngx_http_php_session/parser.h:24:18: error: conflicting types for Б─≤extract_value_loopБ─≥
In file included from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/parsers/http_request_parser.h:5:0,
from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/ngx_tcp_upstream_check.h:12,
from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/ngx_tcp.h:33,
from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/ngx_tcp.c:5:
/home/mimiko/src/nginx-modules/ngx_http_php_session/parser.h:24:18: note: previous declaration of Б─≤extract_value_loopБ─≥ was here
In file included from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/parsers/http_response_parser.h:5:0,
from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/ngx_tcp_upstream_check.h:13,
from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/ngx_tcp.h:33,
from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/ngx_tcp.c:5:
/home/mimiko/src/nginx-modules/ngx_http_php_session/parser.h:28:18: error: conflicting types for Б─≤store_resultБ─≥
In file included from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/parsers/http_request_parser.h:5:0,
from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/ngx_tcp_upstream_check.h:12,
from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/ngx_tcp.h:33,
from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/ngx_tcp.c:5:
/home/mimiko/src/nginx-modules/ngx_http_php_session/parser.h:28:18: note: previous declaration of Б─≤store_resultБ─≥ was here
In file included from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/ngx_tcp_upstream_check.h:13:0,
from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/ngx_tcp.h:33,
from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/ngx_tcp.c:5:
/home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/parsers/http_response_parser.h:19:3: error: unknown type name Б─≤field_cbБ─≥
/home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/parsers/http_response_parser.h:21:3: error: unknown type name Б─≤element_cbБ─≥
/home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/parsers/http_response_parser.h:22:3: error: unknown type name Б─≤element_cbБ─≥
/home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/parsers/http_response_parser.h:23:3: error: unknown type name Б─≤element_cbБ─≥
/home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/parsers/http_response_parser.h:24:3: error: unknown type name Б─≤element_cbБ─≥
In file included from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/parsers/smtp_response_parser.h:5:0,
from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/ngx_tcp_upstream_check.h:14,
from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/ngx_tcp.h:33,
from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/ngx_tcp.c:5:
/home/mimiko/src/nginx-modules/ngx_http_php_session/parser.h:9:3: error: conflicting types for Б─≤extract_ctxБ─≥
In file included from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/parsers/http_response_parser.h:5:0,
from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/ngx_tcp_upstream_check.h:13,
from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/ngx_tcp.h:33,
from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/ngx_tcp.c:5:
/home/mimiko/src/nginx-modules/ngx_http_php_session/parser.h:9:3: note: previous declaration of Б─≤extract_ctxБ─≥ was here
In file included from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/parsers/smtp_response_parser.h:5:0,
from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/ngx_tcp_upstream_check.h:14,
from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/ngx_tcp.h:33,
from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/ngx_tcp.c:5:
/home/mimiko/src/nginx-modules/ngx_http_php_session/parser.h:12:11: error: redefinition of Б─≤element_separatorsБ─≥
In file included from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/parsers/http_request_parser.h:5:0,
from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/ngx_tcp_upstream_check.h:12,
from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/ngx_tcp.h:33,
from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/ngx_tcp.c:5:
/home/mimiko/src/nginx-modules/ngx_http_php_session/parser.h:12:11: note: previous definition of Б─≤element_separatorsБ─≥ was here
In file included from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/parsers/smtp_response_parser.h:5:0,
from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/ngx_tcp_upstream_check.h:14,
from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/ngx_tcp.h:33,
from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/ngx_tcp.c:5:
/home/mimiko/src/nginx-modules/ngx_http_php_session/parser.h:24:18: error: conflicting types for Б─≤extract_value_loopБ─≥
In file included from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/parsers/http_response_parser.h:5:0,
from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/ngx_tcp_upstream_check.h:13,
from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/ngx_tcp.h:33,
from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/ngx_tcp.c:5:
/home/mimiko/src/nginx-modules/ngx_http_php_session/parser.h:24:18: note: previous declaration of Б─≤extract_value_loopБ─≥ was here
In file included from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/parsers/smtp_response_parser.h:5:0,
from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/ngx_tcp_upstream_check.h:14,
from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/ngx_tcp.h:33,
from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/ngx_tcp.c:5:
/home/mimiko/src/nginx-modules/ngx_http_php_session/parser.h:28:18: error: conflicting types for Б─≤store_resultБ─≥
In file included from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/parsers/http_response_parser.h:5:0,
from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/ngx_tcp_upstream_check.h:13,
from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/ngx_tcp.h:33,
from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/ngx_tcp.c:5:
/home/mimiko/src/nginx-modules/ngx_http_php_session/parser.h:28:18: note: previous declaration of Б─≤store_resultБ─≥ was here
In file included from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/ngx_tcp_upstream_check.h:14:0,
from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/ngx_tcp.h:33,
from /home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/ngx_tcp.c:5:
/home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/parsers/smtp_response_parser.h:17:3: error: unknown type name Б─≤element_cbБ─≥
/home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/parsers/smtp_response_parser.h:18:3: error: unknown type name Б─≤element_cbБ─≥
/home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/parsers/smtp_response_parser.h:19:3: error: unknown type name Б─≤element_cbБ─≥
/home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/parsers/smtp_response_parser.h:20:3: error: unknown type name Б─≤element_cbБ─≥
/home/mimiko/src/nginx-modules/nginx_tcp_proxy_module/parsers/smtp_response_parser.h:21:3: error: unknown type name Б─≤element_cbБ─≥
make[1]: *** [objs/addon/nginx_tcp_proxy_module/ngx_tcp.o] Error 1
make[1]: Leaving directory `/home/mimiko/src/nginx'
make: *** [build] Error 2

I use Debian Wheezy x86_64. Nginx and module are latest from git.

Owner

yaoweibin commented Feb 25, 2014

Have you added the patch?
patch -p1 < tcp.patch?

Mimikoo commented Feb 25, 2014

No, I didn't apply this patch. Must this patch be applied to nginx or to module itself. In Readme it's not specified clearly.

Mimikoo commented Feb 27, 2014

I did apply the patch, but still have same errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment