vozlt / nginx-module-stream-sts

Nginx stream server traffic status core module
BSD 2-Clause "Simplified" License
70 stars 25 forks source link

Compile failed with nginx 1.12.1 #6

Open nsaeris opened 7 years ago

nsaeris commented 7 years ago

I am building it on ubuntu. Following is the config from debian/rules

full_configure_flags := \ $(common_configure_flags) \ --with-http_addition_module \ --with-http_geoip_module=dynamic \ --with-http_gunzip_module \ --with-http_gzip_static_module \ --with-http_image_filter_module=dynamic \ --with-http_sub_module \ --with-http_xslt_module=dynamic \ --with-stream=dynamic \ --with-stream_ssl_module \ --with-stream_ssl_preread_module \ --with-mail=dynamic \ --with-mail_ssl_module \ --add-dynamic-module=$(MODULESDIR)/nginx-auth-pam \ --add-dynamic-module=$(MODULESDIR)/nginx-dav-ext-module \ --add-dynamic-module=$(MODULESDIR)/nginx-echo \ --add-dynamic-module=$(MODULESDIR)/nginx-upstream-fair \ --add-dynamic-module=$(MODULESDIR)/ngx_http_substitutions_filter_module \ --add-module=/opt/nginx-modules/nginx-module-vts \ --add-module=/opt/nginx-modules/nginx-module-sts \ --add-module=/opt/nginx-modules/nginx-module-stream-sts

objs/addon/src/ngx_stream_server_traffic_status_module.o: In function ngx_stream_server_traffic_status_init_main_conf': /opt/nginx-modules/nginx-module-stream-sts/src/ngx_stream_server_traffic_status_module.c:476: undefined reference tongx_stream_upstream_module' objs/addon/src/ngx_stream_server_traffic_status_module.o: In function ngx_stream_server_traffic_status_init': /opt/nginx-modules/nginx-module-stream-sts/src/ngx_stream_server_traffic_status_module.c:617: undefined reference tongx_stream_core_module' objs/addon/src/ngx_stream_server_traffic_status_shm.o: In function ngx_stream_server_traffic_status_shm_add_filter_node': /opt/nginx-modules/nginx-module-stream-sts/src/ngx_stream_server_traffic_status_shm.c:162: undefined reference tongx_stream_complex_value' /opt/nginx-modules/nginx-module-stream-sts/src/ngx_stream_server_traffic_status_shm.c:166: undefined reference to ngx_stream_complex_value' objs/addon/src/ngx_stream_server_traffic_status_shm.o: In functionngx_stream_server_traffic_status_shm_add_upstream': /opt/nginx-modules/nginx-module-stream-sts/src/ngx_stream_server_traffic_status_shm.c:298: undefined reference to ngx_stream_upstream_module' objs/addon/src/ngx_stream_server_traffic_status_filter.o: In functionngx_stream_server_traffic_status_filter_by_set_key': /opt/nginx-modules/nginx-module-stream-sts/src/ngx_stream_server_traffic_status_filter.c:315: undefined reference to ngx_stream_compile_complex_value' /opt/nginx-modules/nginx-module-stream-sts/src/ngx_stream_server_traffic_status_filter.c:333: undefined reference tongx_stream_compile_complex_value' objs/addon/src/ngx_stream_server_traffic_status_limit.o: In function ngx_stream_server_traffic_status_limit_handler_traffic': /opt/nginx-modules/nginx-module-stream-sts/src/ngx_stream_server_traffic_status_limit.c:100: undefined reference tongx_stream_complex_value' /opt/nginx-modules/nginx-module-stream-sts/src/ngx_stream_server_traffic_status_limit.c:110: undefined reference to ngx_stream_complex_value' objs/addon/src/ngx_stream_server_traffic_status_limit.o: In functionngx_stream_server_traffic_status_limit_traffic': /opt/nginx-modules/nginx-module-stream-sts/src/ngx_stream_server_traffic_status_limit.c:237: undefined reference to ngx_stream_compile_complex_value' objs/addon/src/ngx_stream_server_traffic_status_limit.o: In functionngx_stream_server_traffic_status_limit_traffic_by_set_key': /opt/nginx-modules/nginx-module-stream-sts/src/ngx_stream_server_traffic_status_limit.c:345: undefined reference to ngx_stream_compile_complex_value' /opt/nginx-modules/nginx-module-stream-sts/src/ngx_stream_server_traffic_status_limit.c:358: undefined reference tongx_stream_compile_complex_value' objs/addon/src/ngx_stream_server_traffic_status_variables.o: In function ngx_stream_server_traffic_status_add_variables': /opt/nginx-modules/nginx-module-stream-sts/src/ngx_stream_server_traffic_status_variables.c:140: undefined reference tongx_stream_add_variable'

archfish commented 6 years ago

@nsaeris change --with-stream=dynamic to --with-stream

kloczek commented 5 years ago

Is possible to add dynamic support? I'm trying to build steam dynamic module as well because I want to have that module as loaded optionally. (I'm using nginx 1.16.0)

kloczek commented 5 years ago

Seems it is possible to have dynamic module. All what is necessary to do is use --add-dynamic-module= instead --add-module=