leev / ngx_http_geoip2_module

Nginx GeoIP2 module
BSD 2-Clause "Simplified" License
960 stars 182 forks source link

Build issue #66

Closed AndriiZ closed 5 years ago

AndriiZ commented 5 years ago

Linux bananapi 4.14.84-sunxi #3 SMP Sat Dec 1 07:18:41 CET 2018 armv7l GNU/Linux

-ldl -lpthread -lpthread -lcrypt -lmaxminddb -lmaxminddb ../pcre-8.42/.libs/libpcre.a ../openssl-1.1.0h/.openssl/lib/libssl.a ../openssl-1.1.0h/.openssl/lib/libcrypto.a -ldl -lpthread ../zlib-1.2.11/libz.a \ -Wl,-E objs/addon/ngx_http_geoip2_module/ngx_stream_geoip2_module.o: In function ngx_stream_geoip2_init': /media/usb/src/nginx/ngx_http_geoip2_module/ngx_stream_geoip2_module.c:697: undefined reference tongx_stream_core_module' objs/addon/ngx_http_geoip2_module/ngx_stream_geoip2_module.o: In function ngx_stream_geoip2_add_variable_metadata': /media/usb/src/nginx/ngx_http_geoip2_module/ngx_stream_geoip2_module.c:478: undefined reference tongx_stream_add_variable' objs/addon/ngx_http_geoip2_module/ngx_stream_geoip2_module.o: In function ngx_stream_geoip2_add_variable_geodata': /media/usb/src/nginx/ngx_http_geoip2_module/ngx_stream_geoip2_module.c:550: undefined reference tongx_stream_compile_complex_value' /media/usb/src/nginx/ngx_http_geoip2_module/ngx_stream_geoip2_module.c:566: undefined reference to ngx_stream_add_variable' objs/addon/ngx_http_geoip2_module/ngx_stream_geoip2_module.o: In functionngx_stream_geoip2_variable': /media/usb/src/nginx/ngx_http_geoip2_module/ngx_stream_geoip2_module.c:136: undefined reference to `ngx_stream_complex_value' collect2: error: ld returned 1 exit status objs/Makefile:348: recipe for target 'objs/nginx' failed make[1]: [objs/nginx] Error 1 make[1]: Leaving directory '/media/usb/src/nginx/nginx-1.15.8' Makefile:8: recipe for target 'build' failed make: [build] Error 2

fabiosussetto commented 5 years ago

@AndriiZ Did you manage to fix this? getting the same error on Ubuntu 16.04. Thanks.

sc0rp10 commented 4 years ago

@fabiosussetto use --with-stream instead of --with-stream=dynamic

fabiosussetto commented 4 years ago

@sc0rp10 thanks, I don't have the chance to try it out now, but appreciate you answer!

sc0rp10 commented 4 years ago

my comment is for the googlers :)