Join the community today
Register Now

Nginx Nginx not compiling...

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by Liam W, Feb 10, 2016.

Tags:
  1. Liam W

    Liam W Member

    62
    17
    8
    Jun 26, 2014
    United Kingdom
    Ratings:
    +22
    Local Time:
    3:33 PM
    nginx
    10.3.x
    First issue in ever...


    I'm getting a few issues with recompiling nginx. Any ideas?

    Code:
    In file included from ../lua-nginx-module-0.9.20/src/ngx_http_lua_util.c:38:
    
    ../lua-nginx-module-0.9.20/src/ngx_http_lua_socket_udp.h:34:5: error: unknown type name 'ngx_resolver_connection_t'; did you mean 'ngx_peer_connection_t'?
    
        ngx_resolver_connection_t        udp_connection;
    
        ^~~~~~~~~~~~~~~~~~~~~~~~~
    
        ngx_peer_connection_t
    
    src/event/ngx_event_connect.h:22:39: note: 'ngx_peer_connection_t' declared here
    
    typedef struct ngx_peer_connection_s  ngx_peer_connection_t;
    
                                          ^
    
    1 error generated.
    
    make[1]: *** [objs/addon/src/ngx_http_lua_util.o] Error 1
    
    make[1]: *** Waiting for unfinished jobs....
    
    make[1]: Leaving directory `/svr-setup/nginx-1.9.10'
    
    make: *** [build] Error 2
    
    
    
    real    0m50.577s
    
    user    2m2.773s
    
    sys     0m33.517s
    
    
    
    strip nginx binary...
    
    ls: cannot access objs/nginx: No such file or directory
    
    strip: 'objs/nginx': No such file
    
    ls: cannot access objs/nginx: No such file or directory
    
    
    
    
    
    Wed Feb 10 12:17:13 GMT 2016
    
    Success: Nginx make ok
    
    
    
    nginx: [emerg] unknown directive "geoip_country" in /usr/local/nginx/conf/geoip.conf:2
    
    
    
    nginx seems to be still running, trying to stop it again...
    
    
    
    make -f objs/Makefile install
    
    make[1]: Entering directory `/svr-setup/nginx-1.9.10'
    
    ccache /usr/bin/clang -ferror-limit=0 -c -I/usr/local/include/luajit-2.1  -pipe  -O -Wall -Wextra -Wpointer-arith -Wconditional-uninitialized -Wno-unused-parameter -Werror -g -m64 -mtune=native -mfpmath=sse -g -O2 -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 -I /opt/pcre/lib/include  -DNDK_SET_VAR -DNDK_UPSTREAM_LIST -DNDK_SET_VAR      -I/opt/include/apr-1       -I/opt/include/apr-1 -I/svr-setup/staticlibssl/lib/include     -I/usr/include/httpd     -I/usr/include/libxml2     -DWITH_LUA       -DWITH_PCRE_STUDY -DMODSEC_PCRE_MATCH_LIMIT=1500 -DMODSEC_PCRE_MATCH_LIMIT_RECURSION=1500 -DWITH_PCRE_JIT -DREQUEST_EARLY  -DCACHE_LUA        -DWITH_APU_CRYPTO -DWITH_REMOTE_RULES     -I/opt/pcre/lib/include          -DWITH_SSDEEP -I/usr/  -I src/core -I src/event -I src/event/modules -I src/os/unix -I ../ngx_pagespeed-release-1.9.32.13-beta/psol/include -I ../ngx_pagespeed-release-1.9.32.13-beta/psol/include/third_party/chromium/src -I ../ngx_pagespeed-release-1.9.32.13-beta/psol/include/third_party/google-sparsehash/src -I ../ngx_pagespeed-release-1.9.32.13-beta/psol/include/third_party/google-sparsehash/gen/arch/linux/x64/include -I ../ngx_pagespeed-release-1.9.32.13-beta/psol/include/third_party/protobuf/src -I ../ngx_pagespeed-release-1.9.32.13-beta/psol/include/third_party/re2/src -I ../ngx_pagespeed-release-1.9.32.13-beta/psol/include/out/Release/obj/gen -I ../ngx_pagespeed-release-1.9.32.13-beta/psol/include/out/Release/obj/gen/protoc_out/instaweb -I ../ngx_pagespeed-release-1.9.32.13-beta/psol/include/third_party/apr/src/include -I ../ngx_pagespeed-release-1.9.32.13-beta/psol/include/third_party/aprutil/src/include -I ../ngx_pagespeed-release-1.9.32.13-beta/psol/include/third_party/apr/gen/arch/linux/x64/include -I ../ngx_pagespeed-release-1.9.32.13-beta/psol/include/third_party/aprutil/gen/arch/linux/x64/include -I ../ngx_devel_kit-0.2.19/objs -I objs/addon/ndk -I /usr/local/include/luajit-2.1 -I ../lua-nginx-module-0.9.20/src/api -I ../nginx_upstream_check_module-0.3.0 -I ../modsecurity-2.9.0/nginx/modsecurity -I ../modsecurity-2.9.0/nginx/modsecurity/../../standalone -I ../modsecurity-2.9.0/nginx/modsecurity/../../apache2 -I ../pcre-8.38 -I ../libressl-2.2.6/.openssl/include -I objs -I src/http -I src/http/modules -I src/http/v2 -I ../ngx_devel_kit-0.2.19/src -I src/mail -I src/stream \
    
                    -o objs/addon/src/ngx_http_lua_util.o \
    
                    ../lua-nginx-module-0.9.20/src/ngx_http_lua_util.c
    
    In file included from ../lua-nginx-module-0.9.20/src/ngx_http_lua_util.c:38:
    
    ../lua-nginx-module-0.9.20/src/ngx_http_lua_socket_udp.h:34:5: error: unknown type name 'ngx_resolver_connection_t'; did you mean 'ngx_peer_connection_t'?
    
        ngx_resolver_connection_t        udp_connection;
    
        ^~~~~~~~~~~~~~~~~~~~~~~~~
    
        ngx_peer_connection_t
    
    src/event/ngx_event_connect.h:22:39: note: 'ngx_peer_connection_t' declared here
    
    typedef struct ngx_peer_connection_s  ngx_peer_connection_t;
    
                                          ^
    
    1 error generated.
    
    make[1]: *** [objs/addon/src/ngx_http_lua_util.o] Error 1
    
    make[1]: Leaving directory `/svr-setup/nginx-1.9.10'
    
    make: *** [install] Error 2
    
    
    
    real    0m0.416s
    
    user    0m0.340s
    
    sys     0m0.071s
    
     
  2. Sunka

    Sunka Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    4:33 PM
    Nginx 1.17.9
    MariaDB 10.3.22
  3. eva2000

    eva2000 Administrator Staff Member

    55,802
    12,272
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,858
    Local Time:
    12:33 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    the errors are with nginx 1.9.11 ?? there's compatibility issues with nginx 1.9.11 and a few nginx modules Centmin Mod uses, lua nginx, ngx_pagespeed and ngx_brotli see Nginx - Nginx 1.9.11 next version with dynamic module support ! | Centmin Mod Community

    for now stick with nginx 1.9.10 until they are sorted out

    FYI, working on a centmin mod newsletter for these kind of notices for forum and site visitors eventually to properly notify Centmin Mod users Any Sendy.co Users ? | Centmin Mod Community