Git Product home page Git Product logo

Comments (9)

VBart avatar VBart commented on May 17, 2024

Could you please provide configure arguments, platform, operating system and compiler version?

from angie.

RekGRpth avatar RekGRpth commented on May 17, 2024

configure arguments

./configure '--add-dynamic-module=modules/ngx_devel_kit modules/ngx_http_sign_module modules/ngx_http_include_server_module modules/ngx_http_json_module modules/ngx_http_captcha_module modules/ngx_http_time_var_module modules/nginx-upload-module modules/ngx_http_upstream_queue_module modules/nginx_csrf_prevent modules/ngx_http_headers_module modules/ngx_http_remote_passwd modules/nginx-uuid4-module modules/ngx_http_response_body_module modules/ngx_http_auth_pam_module modules/ngx_http_error_page_inherit_module modules/iconv-nginx-module modules/ngx_http_zip_var_module modules/ngx_http_evaluate_module modules/ngx_http_json_var_module modules/ngx_http_auth_basic_ldap_module modules/nginx-upstream-fair modules/ngx_upstream_jdomain modules/set-misc-nginx-module modules/ngx_pq_module modules/ngx_http_htmldoc_module modules/encrypted-session-nginx-module modules/form-input-nginx-module modules/nginx-ejwt-module modules/ngx_http_mustach_module modules/echo-nginx-module modules/ngx_brotli/static modules/ngx_brotli/filter modules/headers-more-nginx-module modules/nginx-push-stream-module modules/ngx_http_substitutions_filter_module ' '--conf-path=/etc/nginx/nginx.conf' '--error-log-path=/var/log/nginx/error.log' '--group=nginx' '--http-client-body-temp-path=/var/tmp/nginx/client_body_temp' '--http-fastcgi-temp-path=/var/tmp/nginx/fastcgi_temp' '--http-log-path=/var/log/nginx/access.log' '--http-proxy-temp-path=/var/tmp/nginx/proxy_temp' '--http-scgi-temp-path=/var/tmp/nginx/scgi_temp' '--http-uwsgi-temp-path=/var/tmp/nginx/uwsgi_temp' '--lock-path=/run/nginx/nginx.lock' '--modules-path=/usr/local/lib/nginx' '--pid-path=/run/nginx/nginx.pid' '--prefix=/etc/nginx' '--sbin-path=/usr/local/bin/nginx' '--user=nginx' '--with-cc-opt=-Wextra -Wwrite-strings -Wmissing-prototypes -Werror -Wno-discarded-qualifiers' --with-compat --with-file-aio --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_degradation_module --with-http_flv_module '--with-http_geoip_module=dynamic' --with-http_gunzip_module --with-http_gzip_static_module '--with-http_image_filter_module=dynamic' --with-http_mp4_module --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_slice_module --with-http_ssl_module --with-http_stub_status_module --with-http_sub_module --with-http_v2_module '--with-http_xslt_module=dynamic' --with-pcre --with-pcre-jit --with-poll_module --with-select_module '--with-stream=dynamic' '--with-stream_geoip_module=dynamic' --with-stream_realip_module --with-stream_ssl_module --with-stream_ssl_preread_module --with-threads

from angie.

RekGRpth avatar RekGRpth commented on May 17, 2024

I try in docker on alpine 3.18 with gcc 12, ubuntu jammy with gcc 11 and debian sid with gcc 12

from angie.

VBart avatar VBart commented on May 17, 2024

It fails because of additional warnings, you've specified using the --with-cc-opt= option. Notably this error is cased by -Wmissing-prototypes. What is the reason to specify this compiler option?

from angie.

RekGRpth avatar RekGRpth commented on May 17, 2024

Notably this error is cased by -Wmissing-prototypes. What is the reason to specify this compiler option?

To check missing prototypes

from angie.

VBart avatar VBart commented on May 17, 2024

Notably this error is cased by -Wmissing-prototypes. What is the reason to specify this compiler option?

To check missing prototypes

Why do you need to check it? In C it's ok to have a function call without visible prototype. Moreover, nginx coding style doesn't mandate prototypes for each function and, hence, doesn't enable this warning by default during compilation.

The prototype of this particular function has been intentionally not put into a header file as it's considered not a part of public API.

from angie.

RekGRpth avatar RekGRpth commented on May 17, 2024

Moreover, nginx coding style doesn't mandate prototypes for each function and, hence, doesn't enable this warning by default during compilation

I always compile nginx with -Wmissing-prototypes and it is OK.
I will try to compile angie without it...

from angie.

VBart avatar VBart commented on May 17, 2024

In my configuration it failed even earlier, because I also include NJS module from nginx into the compilation process:

../njs/nginx/ngx_js_fetch.c:655:1: error: no previous prototype for ‘ngx_js_ext_fetch’ [-Werror=missing-prototypes]
  655 | ngx_js_ext_fetch(njs_vm_t *vm, njs_value_t *args, njs_uint_t nargs,
      | ^~~~~~~~~~~~~~~~
../njs/nginx/ngx_js_fetch.c:4017:1: error: no previous prototype for ‘ngx_js_fetch_init’ [-Werror=missing-prototypes]
 4017 | ngx_js_fetch_init(njs_vm_t *vm, ngx_log_t *log)
      | ^~~~~~~~~~~~~~~~~

And it will fail with nginx as well.

from angie.

RekGRpth avatar RekGRpth commented on May 17, 2024

without -Wmissing-prototypes everything is OK, thanx

from angie.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.