openresty / memc-nginx-module

An extended version of the standard memcached module that supports set, add, delete, and many more memcached commands.
http://wiki.nginx.org/NginxHttpMemcModule
213 stars 56 forks source link

nginx 1.11.6 compile issues #26

Closed centminmod closed 7 years ago

centminmod commented 7 years ago

seems 1.11.6 changes broke memc-nginx-module ! similar error to redis2 module too https://github.com/openresty/redis2-nginx-module/issues/41

../redis2-nginx-module-0.13/src/ngx_http_redis2_util.c: In function ‘ngx_http_redis2_upstream_add’:
../redis2-nginx-module-0.13/src/ngx_http_redis2_util.c:80:21: error: ‘ngx_http_upstream_srv_conf_t {aka struct ngx_http_upstream_srv_conf_s}’ has no member named ‘default_port’
         if (uscfp[i]->default_port
                     ^
../redis2-nginx-module-0.13/src/ngx_http_redis2_util.c:82:24: error: ‘ngx_http_upstream_srv_conf_t {aka struct ngx_http_upstream_srv_conf_s}’ has no member named ‘default_port’
             && uscfp[i]->default_port != url->default_port)
                        ^
make[1]: *** [objs/addon/src/ngx_http_redis2_util.o] Error 1
make[1]: *** Waiting for unfinished jobs....
../memc-nginx-module-0.17/src/ngx_http_memc_util.c: In function ‘ngx_http_memc_upstream_add’:
../memc-nginx-module-0.17/src/ngx_http_memc_util.c:144:21: error: ‘ngx_http_upstream_srv_conf_t {aka struct ngx_http_upstream_srv_conf_s}’ has no member named ‘default_port’
         if (uscfp[i]->default_port && url->default_port
                     ^
../memc-nginx-module-0.17/src/ngx_http_memc_util.c:145:24: error: ‘ngx_http_upstream_srv_conf_t {aka struct ngx_http_upstream_srv_conf_s}’ has no member named ‘default_port’
             && uscfp[i]->default_port != url->default_port)
                        ^
make[1]: *** [objs/addon/src/ngx_http_memc_util.o] Error 1
make[1]: Leaving directory `/svr-setup/nginx-1.11.6'
make: *** [build] Error 2

./configure --with-ld-opt="-lrt -ljemalloc -Wl,-z,relro -Wl,-rpath,/usr/local/lib" --with-cc-opt="-m64 -march=native -g -O3 -fstack-protector-strong --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wno-deprecated-declarations" --sbin-path=/usr/local/sbin/nginx --conf-path=/usr/local/nginx/conf/nginx.conf --with-ipv6 --with-http_stub_status_module --with-http_secure_link_module --add-module=../nginx-module-vts --with-libatomic --with-http_gzip_static_module --add-dynamic-module=../ngx_brotli --with-http_sub_module --with-http_addition_module --with-http_image_filter_module=dynamic --with-http_geoip_module --with-stream_geoip_module --with-stream_realip_module --with-threads --with-stream=dynamic --with-stream_ssl_module --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.31 --add-module=../echo-nginx-module-0.60 --add-module=../redis2-nginx-module-0.13 --add-module=../ngx_http_redis-0.3.7 --add-module=../nginx-sticky-module-master --add-module=../memc-nginx-module-0.17 --add-module=../srcache-nginx-module-0.31 --add-module=../headers-more-nginx-module-0.32 --with-pcre=../pcre-8.39 --with-pcre-jit --with-http_ssl_module --with-http_v2_module --with-openssl=../libressl-2.4.4 checking for OS

  • Linux 4.7.5-1.el7.elrepo.x86_64 x86_64 checking for C compiler ... found
  • using GNU C compiler
  • gcc version: 5.2.1 20150902 (Red Hat 5.2.1-2) (GCC) checking for gcc -pipe switch ... found 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 AF_INET6 ... found 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.31 found ngx_devel_kit for ngx_set_misc; looks good.
  • ngx_http_set_misc_module was configured adding module in ../echo-nginx-module-0.60
  • 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 ../nginx-sticky-module-master
  • ngx_http_sticky_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.32
  • ngx_http_headers_more_filter_module was configured configuring additional dynamic modules adding module in ../ngx_brotli checking for Brotli library ... found
  • ngx_brotli was configured 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 GD WebP support ... not found checking for GeoIP library ... found checking for GeoIP IPv6 support ... found checking for atomic_ops library ... found creating objs/Makefile
Whissi commented 7 years ago

Caused by the following upstream change: http://hg.nginx.org/nginx/rev/4dea01cf49e8

Whissi commented 7 years ago

Think we should apply the same fix like http://hg.nginx.org/nginx/rev/3fa5983b6b44

agentzh commented 7 years ago

I think this is already fixed in #27.