#2312 closed defect (invalid)
master does not compile
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | nginx-core | Version: | |
Keywords: | Cc: | ||
uname -a: | Linux nginx 5.13.0-24-generic #24-Ubuntu SMP Wed Jan 5 00:51:12 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux | ||
nginx -V: |
nginx version: nginx/1.21.6
built by gcc 11.2.0 (Ubuntu 11.2.0-7ubuntu2) built with OpenSSL 1.1.1l 24 Aug 2021 TLS SNI support enabled configure arguments: --add-dynamic-module='modules/echo-nginx-module modules/encrypted-session-nginx-module modules/form-input-nginx-module modules/iconv-nginx-module modules/nginx_csrf_prevent modules/nginx-jwt-module modules/nginx-push-stream-module modules/nginx-upload-module modules/nginx-upstream-fair modules/nginx-uuid4-module modules/ngx_brotli/filter modules/ngx_brotli/static modules/ngx_http_auth_basic_ldap_module modules/ngx_http_captcha_module modules/ngx_http_handlebars_module modules/ngx_http_headers_module modules/ngx_http_htmldoc_module modules/ngx_http_json_module modules/ngx_http_mustach_module modules/ngx_http_sign_module modules/ngx_http_substitutions_filter_module modules/ngx_http_upstream_session_sticky_module modules/ngx_http_zip_var_module modules/ngx_postgres modules/set-misc-nginx-module modules/ngx_http_auth_pam_module modules/ngx_http_evaluate_module modules/spnego-http-auth-nginx-module modules/ngx_http_response_body_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 --http-fastcgi-temp-path=/var/tmp/nginx/fastcgi --http-log-path=/var/log/nginx/access.log --http-proxy-temp-path=/var/tmp/nginx/proxy --http-scgi-temp-path=/var/tmp/nginx/scgi --http-uwsgi-temp-path=/var/tmp/nginx/uwsgi --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 -fsanitize=address' --with-compat --with-debug --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-ld-opt=-lasan --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 |
Description
master does not compile under debian:stable-slim and ubuntu:rolling
src/event/ngx_event_udp.h:38:27: error: field ‘pkt6’ has incomplete type 38 | struct in6_pktinfo pkt6; | ^~~~
Change History (5)
comment:1 by , 3 years ago
Component: | documentation → nginx-core |
---|
comment:2 by , 3 years ago
I have the same issue with two modules that are not on RekGRpth config list.
https://github.com/slact/nchan
https://github.com/jamesmarlowe/ngx_json_post_module
A more detailed error:
/usr/src/nginx_modules/ngx_json_post_module/src/ngx_json_post_module.c In file included from src/event/ngx_event.h:526, from src/http/ngx_http_upstream.h:14, from src/http/ngx_http.h:34, from /usr/src/nginx_modules/ngx_json_post_module/src/ngx_json_post_module.c:11: src/event/ngx_event_udp.h:38:27: error: field ‘pkt6’ has incomplete type 38 | struct in6_pktinfo pkt6; | ^~~~
comment:3 by , 3 years ago
Hi,
Both above modules are not a part of nginx distribution. Please contact their authors.
Maxim
follow-up: 5 comment:4 by , 3 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
The issue is caused by modules including system headers prior to nginx ones.
In this particular case, it leads to undefined GNU_SOURCE macro and thus
missing type declaration.
See also http://nginx.org/en/docs/dev/development_guide.html#include_files
comment:5 by , 3 years ago
Replying to vl:
The issue is caused by modules including system headers prior to nginx ones.
In this particular case, it leads to undefined GNU_SOURCE macro and thus
missing type declaration.
Really, https://github.com/jamesmarlowe/ngx_json_post_module/blob/master/src/ngx_json_post_module.c#L7-L11
Builds find here, on both.
You may want to retry without 3rd-party modules or provide details
about some specific OS configuration.