Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting build error on nginx stable (1.18.0) with gcc version 10.2.1 20201125 (Red Hat 10.2.1-9) (GCC) #17

Open
rojenzaman opened this issue Feb 19, 2021 · 5 comments

Comments

@rojenzaman
Copy link

Configure Options:

./configure --prefix=/etc/nginx \
            --sbin-path=/usr/sbin/nginx \
            --modules-path=/usr/lib64/nginx/modules \
            --conf-path=/etc/nginx/nginx.conf \
            --error-log-path=/var/log/nginx/error.log \
            --pid-path=/var/run/nginx.pid \
            --lock-path=/var/run/nginx.lock \
            --user=nginx \
            --group=nginx \
            --build=Fedora \
            --builddir=nginx-1.18.0 \
            --with-select_module \
            --with-poll_module \
            --with-threads \
            --with-file-aio \
            --with-http_ssl_module \
            --with-http_v2_module \
            --with-http_realip_module \
            --with-http_addition_module \
            --with-http_xslt_module=dynamic \
            --with-http_image_filter_module=dynamic \
            --with-http_geoip_module=dynamic \
            --with-http_sub_module \
            --with-http_dav_module \
            --with-http_flv_module \
            --with-http_mp4_module \
            --with-http_gunzip_module \
            --with-http_gzip_static_module \
            --with-http_auth_request_module \
            --with-http_random_index_module \
            --with-http_secure_link_module \
            --with-http_degradation_module \
            --with-http_slice_module \
            --with-http_stub_status_module \
            --with-http_perl_module=dynamic \
            --with-perl_modules_path=/usr/lib64/perl5 \
            --with-perl=/usr/bin/perl \
            --http-log-path=/var/log/nginx/access.log \
            --http-client-body-temp-path=/var/cache/nginx/client_temp \
            --http-proxy-temp-path=/var/cache/nginx/proxy_temp \
            --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp \
            --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp \
            --http-scgi-temp-path=/var/cache/nginx/scgi_temp \
            --with-mail=dynamic \
            --with-mail_ssl_module \
            --with-stream=dynamic \
            --with-stream_ssl_module \
            --with-stream_realip_module \
            --with-stream_geoip_module=dynamic \
            --with-stream_ssl_preread_module \
            --with-compat \
            --with-pcre=../pcre-8.44 \
            --with-pcre-jit \
            --with-zlib=../zlib-1.2.11 \
            --with-openssl=../openssl-1.1.1j \
            --with-openssl-opt=no-nextprotoneg \
            --add-module=../socks-nginx-module \
            --with-debug

Error

../socks-nginx-module/src/ngx_http_socks_module.c: In function ‘ngx_http_socks_init_headers’:
../socks-nginx-module/src/ngx_http_socks_module.c:3260:26: error: cast between incompatible function types from ‘size_t (*)(ngx_http_script_engine_t *)’ {aka ‘long unsigned int (*)(ngx_http_script_engine_t *)’} to ‘void (*)(ngx_http_script_engine_t *)’ [-Werror=cast-function-type]
 3260 |             copy->code = (ngx_http_script_code_pt)
      |                          ^
../socks-nginx-module/src/ngx_http_socks_module.c:3295:26: error: cast between incompatible function types from ‘size_t (*)(ngx_http_script_engine_t *)’ {aka ‘long unsigned int (*)(ngx_http_script_engine_t *)’} to ‘void (*)(ngx_http_script_engine_t *)’ [-Werror=cast-function-type]
 3295 |             copy->code = (ngx_http_script_code_pt)
      |                          ^
../socks-nginx-module/src/ngx_http_socks_module.c:3336:26: error: cast between incompatible function types from ‘size_t (*)(ngx_http_script_engine_t *)’ {aka ‘long unsigned int (*)(ngx_http_script_engine_t *)’} to ‘void (*)(ngx_http_script_engine_t *)’ [-Werror=cast-function-type]
 3336 |             copy->code = (ngx_http_script_code_pt)
      |                          ^
cc1: all warnings being treated as errors
make[1]: *** [nginx-1.18.0/Makefile:1540: nginx-1.18.0/addon/src/ngx_http_socks_module.o] Error 1
make[1]: Leaving directory '/root/nginx-1.18.0'
make: *** [Makefile:8: build] Error 2

@dannote
Copy link
Owner

dannote commented Feb 20, 2021

Thank you for your report! I'm working (slowly) on a complete rewrite of this module and a beta is coming soon (perhaps in a couple of weeks). It will support the most recent version of nginx. Until that you can try to build this against some older version of nginx.

@rojenzaman
Copy link
Author

Thank you for your report! I'm working (slowly) on a complete rewrite of this module and a beta is coming soon (perhaps in a couple of weeks). It will support the most recent version of nginx. Until that you can try to build this against some older version of nginx.

Thanks for your respond too! I look forward to beta release.

@LeviMarvin
Copy link

LeviMarvin commented Feb 27, 2021

Thank you for your report! I'm working (slowly) on a complete rewrite of this module and a beta is coming soon (perhaps in a couple of weeks). It will support the most recent version of nginx. Until that you can try to build this against some older version of nginx.

谢谢你的报告!我正在(缓慢地)对这个模块进行全面重写,beta 版很快就会发布(可能几周后)。它将支持最新版本的 nginx。在此之前,您可以尝试针对一些较旧版本的 nginx 构建这个版本。

Hello, I'm from China, a country with a strong national firewall.So to explore the global Internet more easily, I need to forward my Socks5 proxy connection using NGINX. I hope you can help me succeed soon. XD

@shell1986
Copy link

Thank you for your report! I'm working (slowly) on a complete rewrite of this module and a beta is coming soon (perhaps in a couple of weeks). It will support the most recent version of nginx. Until that you can try to build this against some older version of nginx.

Hey!
Have you already released a beta version? Can I try it?

@dannote
Copy link
Owner

dannote commented Oct 10, 2021

@supersh86 Unfortunately not yet, hopefully later this year

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants