From nobody Fri Apr 21 01:19:25 2023 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Q2cBQ4td2z46sPV for ; Fri, 21 Apr 2023 01:19:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Q2cBQ1Hg7z4L4Y for ; Fri, 21 Apr 2023 01:19:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1682039966; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=MOvIoy2IrCEKL66ojOm8DfiaVf+bI8x1zTgfKFhPHPo=; b=E9BtBtb2fG3wbAgFoMhQebb/KR/OX9YW4BLFdl0xwP17sUPMbiV6UVGu7EPD+ryqGgIKEP 9W9rrnwXzKH6wRDBFjnB0gAWC/2wWy16Jr6G1W+4bavbVKZjGQ5lBStPNbApa+ORTXb626 6t2RQbRWFeZhdtlI6fdSaqbTKbBH3nar3CqnB/HnVQBZZdyvLevoUk1i3PDspPAGpcOtLC IadZOQYLqpirNiKjPqCd9bEzCc8IF0YuhJOCEqEM32JsXx639uIkSYzGPz1VjV1Lc7//xS OPCLQSLsp+eYLnk8hvl7it/TvR0j64Go7z1xpgVzBYyV45ZDqssREY02DuLEDQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1682039966; a=rsa-sha256; cv=none; b=Z79wiOe4f0EpPF9ejdonR2ulvCHFQOIeEiTWiMbRLaF/EVyrG1mr2cHy6CeIMH3vLqo9yq Qieo3z9p2HZwW18zcA3LQ/49y8Fc0nHwxQx6RjTPgmP4jtts9KsZT7qnNMPE/AuO8CaAIn 3HYBz45Pbip4OE11HCQeJNpnbfyhdxCk8ncFYJ8vzFG/lQ62yJ4TsKJwSNc5qIMZ1izt2m xuMf57fT0/A1NCpDCr7srecoJcDBk9n4aDRT4omgVTmqeplNiLkbwYbj1MwZde7d4Z+VHu eWBvTK0GZ6tMQ6l/OmU2nN/sDvIfqVul/WEzd4X04E4FhYleb9hphwQz7ISt8A== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Q2cBQ0J5mz11K2 for ; Fri, 21 Apr 2023 01:19:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 33L1JPAX004625 for ; Fri, 21 Apr 2023 01:19:25 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 33L1JPoq004623 for ports-bugs@FreeBSD.org; Fri, 21 Apr 2023 01:19:25 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 270970] www/nginx: compile error /mod_zip-5b2604b/ngx_http_zip_headers.c Date: Fri, 21 Apr 2023 01:19:25 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: please@forget.me.uk X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: joneum@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D270970 Bug ID: 270970 Summary: www/nginx: compile error /mod_zip-5b2604b/ngx_http_zip_headers.c Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: joneum@FreeBSD.org Reporter: please@forget.me.uk Assignee: joneum@FreeBSD.org Flags: maintainer-feedback?(joneum@FreeBSD.org) Nginx is using an old version (5b2604b) of mod_zip for compilation: https://cgit.freebsd.org/ports/tree/www/nginx/Makefile.extmod#n211 The latest (39dc908) is here: https://github.com/evanmiller/mod_zip/commit/39dc9085d29445ed3238d215e94fbc= beef0131dc Unfortunately, I do not know if that fixes the error below: ``` /wrkdirs/usr/ports/www/nginx/work/mod_zip-5b2604b/ngx_http_zip_headers.c:59= :39: error: member reference type 'ngx_table_elt_t *' (aka 'struct ngx_table_elt= _s *') is a pointer; did you mean to use '->'? ccp =3D r->headers_out.cache_control.elts; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ -> /wrkdirs/usr/ports/www/nginx/work/mod_zip-5b2604b/ngx_http_zip_headers.c:59= :40: error: no member named 'elts' in 'struct ngx_table_elt_s' ccp =3D r->headers_out.cache_control.elts; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ /wrkdirs/usr/ports/www/nginx/work/mod_zip-5b2604b/ngx_http_zip_headers.c:62= :28: warning: incompatible pointer types passing 'ngx_table_elt_t **' (aka 'stru= ct ngx_table_elt_s **') to parameter of type 'ngx_array_t *' [-Wincompatible-pointer-types] if (ngx_array_init(&r->headers_out.cache_control, r->pool, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/core/ngx_array.h:32:29: note: passing argument to parameter 'array' here ngx_array_init(ngx_array_t *array, ngx_pool_t *pool, ngx_uint_t n, size_t s= ize) ^ /wrkdirs/usr/ports/www/nginx/work/mod_zip-5b2604b/ngx_http_zip_headers.c:69= :30: warning: incompatible pointer types passing 'ngx_table_elt_t **' (aka 'stru= ct ngx_table_elt_s **') to parameter of type 'ngx_array_t *' [-Wincompatible-pointer-types] ccp =3D ngx_array_push(&r->headers_out.cache_control); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/core/ngx_array.h:27:35: note: passing argument to parameter 'a' here void *ngx_array_push(ngx_array_t *a); ^ /wrkdirs/usr/ports/www/nginx/work/mod_zip-5b2604b/ngx_http_zip_headers.c:85= :53: error: member reference type 'ngx_table_elt_t *' (aka 'struct ngx_table_elt= _s *') is a pointer; did you mean to use '->'? for (i =3D 1; i < r->headers_out.cache_control.nelts; i++) { ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ -> /wrkdirs/usr/ports/www/nginx/work/mod_zip-5b2604b/ngx_http_zip_headers.c:85= :54: error: no member named 'nelts' in 'struct ngx_table_elt_s' for (i =3D 1; i < r->headers_out.cache_control.nelts; i++) { ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ /wrkdirs/usr/ports/www/nginx/work/mod_zip-5b2604b/ngx_http_zip_headers.c:32= 9:65: error: too few arguments to function call, expected 5, have 4 return ngx_http_variable_unknown_header(v, var, part, prefix); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ src/http/ngx_http_variables.h:60:11: note: 'ngx_http_variable_unknown_heade= r' declared here ngx_int_t ngx_http_variable_unknown_header(ngx_http_request_t *r, ^ 2 warnings and 5 errors generated. ``` --=20 You are receiving this mail because: You are the assignee for the bug.=