nginx-1.11.3

George nginx-forum at forum.nginx.org
Tue Jul 26 18:38:19 UTC 2016


trying to enable ngx_stream_geoip_module as a dynamic module and getting
this error ONLY on SOME servers and not others all compiled with same
settings ?

nginx -t
nginx: [emerg] dlopen()
"/usr/local/nginx/modules/ngx_stream_geoip_module.so" failed
(/usr/local/nginx/modules/ngx_stream_geoip_module.so: undefined symbol:
ngx_stream_add_variable) in /usr/local/nginx/conf/dynamic-modules.conf:3
nginx: configuration file /usr/local/nginx/conf/nginx.conf test failed

/usr/local/nginx/conf/dynamic-modules.conf include file in nginx.conf

load_module "modules/ngx_http_image_filter_module.so";
load_module "modules/ngx_http_fancyindex_module.so";
load_module "modules/ngx_stream_geoip_module.so";
load_module "modules/ngx_http_geoip_module.so";
load_module "modules/ngx_stream_module.so";

configure

./configure --with-ld-opt="-lrt -ljemalloc -Wl,-z,relro
-Wl,-rpath,/usr/local/lib" --with-cc-opt="-m64 -mtune=native -mfpmath=sse -g
-O3 -fstack-protector --param=ssp-buffer-size=4 -Wformat
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wno-sign-compare
-Wno-string-plus-int -Wno-deprecated-declarations -Wno-unused-parameter
-Wno-unused-const-variable -Wno-conditional-uninitialized
-Wno-mismatched-tags -Wno-c++11-extensions -Wno-sometimes-uninitialized
-Wno-parentheses-equality -Wno-tautological-compare -Wno-self-assign
-Wno-deprecated-register -Wno-deprecated -Wno-invalid-source-encoding
-Wno-pointer-sign -Wno-parentheses -Wno-enum-conversion
-Wno-c++11-compat-deprecated-writable-strings -Wno-write-strings"
--sbin-path=/usr/local/sbin/nginx
--conf-path=/usr/local/nginx/conf/nginx.conf --with-http_stub_status_module
--with-http_secure_link_module --with-openssl-opt="enable-tlsext"
--add-module=../nginx-module-vts --with-libatomic --with-threads
--with-stream=dynamic --with-stream_ssl_module
--with-http_gzip_static_module --with-http_sub_module
--with-http_addition_module --with-http_image_filter_module=dynamic
--with-http_geoip_module=dynamic --with-stream_geoip_module=dynamic
--with-http_realip_module --add-dynamic-module=../ngx-fancyindex-0.4.0
--add-module=../ngx_cache_purge-2.3 --add-module=../ngx_devel_kit-0.3.0
--add-module=../set-misc-nginx-module-0.30
--add-module=../echo-nginx-module-0.59
--add-module=../redis2-nginx-module-0.13
--add-module=../ngx_http_redis-0.3.7 --add-module=../memc-nginx-module-0.17
--add-module=../srcache-nginx-module-0.31
--add-module=../headers-more-nginx-module-0.30 --with-pcre=../pcre-8.39
--with-pcre-jit --with-http_ssl_module --with-http_v2_module
--with-openssl=../libressl-2.3.6
checking for OS
 + Linux 4.5.5-x86_64-linode69 x86_64
checking for C compiler ... found
 + using Clang C compiler
 + clang version: 3.4.2 (tags/RELEASE_34/dot2-final)
checking for --with-ld-opt="-lrt -ljemalloc -Wl,-z,relro
-Wl,-rpath,/usr/local/lib" ... found
checking for -Wl,-E switch ... found
checking for gcc builtin atomic operations ... found
checking for C99 variadic macros ... found
checking for gcc variadic macros ... found
checking for gcc builtin 64 bit byteswap ... found
checking for unistd.h ... found
checking for inttypes.h ... found
checking for limits.h ... found
checking for sys/filio.h ... not found
checking for sys/param.h ... found
checking for sys/mount.h ... found
checking for sys/statvfs.h ... found
checking for crypt.h ... found
checking for Linux specific features
checking for epoll ... found
checking for EPOLLRDHUP ... found
checking for EPOLLEXCLUSIVE ... not found
checking for O_PATH ... found
checking for sendfile() ... found
checking for sendfile64() ... found
checking for sys/prctl.h ... found
checking for prctl(PR_SET_DUMPABLE) ... found
checking for sched_setaffinity() ... found
checking for crypt_r() ... found
checking for sys/vfs.h ... found
checking for nobody group ... found
checking for poll() ... found
checking for /dev/poll ... not found
checking for kqueue ... not found
checking for crypt() ... not found
checking for crypt() in libcrypt ... found
checking for F_READAHEAD ... not found
checking for posix_fadvise() ... found
checking for O_DIRECT ... found
checking for F_NOCACHE ... not found
checking for directio() ... not found
checking for statfs() ... found
checking for statvfs() ... found
checking for dlopen() ... not found
checking for dlopen() in libdl ... found
checking for sched_yield() ... found
checking for SO_SETFIB ... not found
checking for SO_REUSEPORT ... found
checking for SO_ACCEPTFILTER ... not found
checking for SO_BINDANY ... not found
checking for IP_BIND_ADDRESS_NO_PORT ... not found
checking for IP_TRANSPARENT ... found
checking for IP_BINDANY ... not found
checking for IP_RECVDSTADDR ... not found
checking for IP_PKTINFO ... found
checking for IPV6_RECVPKTINFO ... found
checking for TCP_DEFER_ACCEPT ... found
checking for TCP_KEEPIDLE ... found
checking for TCP_FASTOPEN ... found
checking for TCP_INFO ... found
checking for accept4() ... found
checking for eventfd() ... found
checking for int size ... 4 bytes
checking for long size ... 8 bytes
checking for long long size ... 8 bytes
checking for void * size ... 8 bytes
checking for uint32_t ... found
checking for uint64_t ... found
checking for sig_atomic_t ... found
checking for sig_atomic_t size ... 4 bytes
checking for socklen_t ... found
checking for in_addr_t ... found
checking for in_port_t ... found
checking for rlim_t ... found
checking for uintptr_t ... uintptr_t found
checking for system byte ordering ... little endian
checking for size_t size ... 8 bytes
checking for off_t size ... 8 bytes
checking for time_t size ... 8 bytes
checking for setproctitle() ... not found
checking for pread() ... found
checking for pwrite() ... found
checking for pwritev() ... found
checking for sys_nerr ... found
checking for localtime_r() ... found
checking for posix_memalign() ... found
checking for memalign() ... found
checking for mmap(MAP_ANON|MAP_SHARED) ... found
checking for mmap("/dev/zero", MAP_SHARED) ... found
checking for System V shared memory ... found
checking for POSIX semaphores ... not found
checking for POSIX semaphores in libpthread ... found
checking for struct msghdr.msg_control ... found
checking for ioctl(FIONBIO) ... found
checking for struct tm.tm_gmtoff ... found
checking for struct dirent.d_namlen ... not found
checking for struct dirent.d_type ... found
checking for sysconf(_SC_NPROCESSORS_ONLN) ... found
checking for openat(), fstatat() ... found
checking for getaddrinfo() ... found
configuring additional modules
adding module in ../nginx-module-vts
 + ngx_http_vhost_traffic_status_module was configured
adding module in ../ngx_cache_purge-2.3
 + ngx_http_cache_purge_module was configured
adding module in ../ngx_devel_kit-0.3.0
 + ngx_devel_kit was configured
adding module in ../set-misc-nginx-module-0.30
found ngx_devel_kit for ngx_set_misc; looks good.
 + ngx_http_set_misc_module was configured
adding module in ../echo-nginx-module-0.59
 + ngx_http_echo_module was configured
adding module in ../redis2-nginx-module-0.13
 + ngx_http_redis2_module was configured
adding module in ../ngx_http_redis-0.3.7
 + ngx_http_redis_module was configured
adding module in ../memc-nginx-module-0.17
 + ngx_http_memc_module was configured
adding module in ../srcache-nginx-module-0.31
 + ngx_http_srcache_filter_module was configured
adding module in ../headers-more-nginx-module-0.30
 + ngx_http_headers_more_filter_module was configured
configuring additional dynamic modules
adding module in ../ngx-fancyindex-0.4.0
 + ngx_http_fancyindex_module was configured
checking for zlib library ... found
checking for GD library ... found
checking for GeoIP library ... found
checking for atomic_ops library ... found
creating objs/Makefile

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,268473,268514#msg-268514



More information about the nginx mailing list