From nobody Sat Sep 28 13:33:42 2024 X-Original-To: dev-commits-ports-main@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 4XG7Zv1GNyz5XMGJ; Sat, 28 Sep 2024 13:33:43 +0000 (UTC) (envelope-from git@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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XG7Zv0g2Dz4Tdv; Sat, 28 Sep 2024 13:33:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727530423; 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=4i9fgYNNrFPrQSOWsRv5h8rCAPqYQUCHaIp94yZRbY0=; b=Su3w73ZQxokrUJLqa74wmj3eH2Qa3mD96T71bLm+f4DfgmDUoCHFzBIHQFYwjqBCzWjmso 8PHNKBgxQJ0RLJN26bj/aLW/WnT56JGa8Qf5mmR39SM9wRC2O1Rb/FGJSuXHdILirNYHWc hCKhpgSFXgm1TCaVjQnKBXjA8RClWZhaYcMbI0cWdXA/CkrhGLWMqMFRworgXEANQxZ3iQ kp7/kOLU4SfTR4NRTlKdF375X0BGQdHpHAHKLoyZb4DdddKP8J9ysk/m7KrDl2ZQ+XzEfy xJdryaaxh8VRMB17a1Ub/ZM6dRQcCPvZcI+wYEksg8DmxUwFlAPCcqOauzO4Zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727530423; 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=4i9fgYNNrFPrQSOWsRv5h8rCAPqYQUCHaIp94yZRbY0=; b=mVBUZd0tG/WZyA9wzksAa8nt44xLnHyZMvYN8zKTjOCe1W1w1YYYpnrfrPbKP9EtTNvSrJ kwFE48dg1nQb0lp4R4auwH2CMPodt1GbUwuga7tTu/JhZyigJR4lvnZFz425QVmb2369mW Pt6TcrIQr+6z1quP7nHU+9XzjRHSIk4xyUdQBLYiA40J4SxN+AD4n8AGUVpOxwRSHmYZ3u cFNdw/DhduvKfCSbzjUwZFlQL1kgnjPi+Mt25TV8bIfkArgKBaA+TMthsYnKVMLc97Wf6t GTNvNz9Z0j/thMWfg692J11UyMfHPibLHxhO3dZsaV8qQIGLPNNrq5xiZCe/aw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727530423; a=rsa-sha256; cv=none; b=MwE6K0xUp7oT4GQoXDYd3wpJQ0MYthSTGoq2MimxmFqyCx4DzMu7zRkr2hY+nOciNF0DCO q6eWHYGGCBzmbczfZrKutoRqWVkqV8gOoUVE6c/3156fi7+AEboiHd3CFuW4dkqG3jml5I 99xXZFMWjaPz42Xp7uOjPMN1PkUaeAqc5uU8OWGacyLbXOFMJJElsxC2Oi3hMqZYdA9TrI 0qpmIlqiubH8HxcuoQEP8gXdU61ph2fnWW+qfTvdXa97cRVpxBRAHYnTrH5ZedjAI3GQdT xKj0BFsCe6aYp+f3gCVMglF1U0/c4NE4aRITeEnWu5mPzWYfj4mgdYphDJx9OA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XG7Zv0Fw2zR8k; Sat, 28 Sep 2024 13:33:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 48SDXgDe003131; Sat, 28 Sep 2024 13:33:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48SDXglK003128; Sat, 28 Sep 2024 13:33:42 GMT (envelope-from git) Date: Sat, 28 Sep 2024 13:33:42 GMT Message-Id: <202409281333.48SDXglK003128@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dimitry Andric Subject: git: 99f25aaa6439 - main - www/mod_perl2: fix build with clang 19 on i386 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 99f25aaa64395af55a872fc6cf77127f5f0e4997 Auto-Submitted: auto-generated The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/ports/commit/?id=99f25aaa64395af55a872fc6cf77127f5f0e4997 commit 99f25aaa64395af55a872fc6cf77127f5f0e4997 Author: Dimitry Andric AuthorDate: 2024-09-19 19:41:23 +0000 Commit: Dimitry Andric CommitDate: 2024-09-28 13:29:45 +0000 www/mod_perl2: fix build with clang 19 on i386 Clang 19 has become more strict about incompatible function pointer types, which results in an error building mod_perl2 on i386: modperl_common_util.c:57:53: error: incompatible function pointer types initializing 'int (*)(PerlInterpreter *, SV *, MAGIC *, SV *, const char *, I32)' (aka 'int (*)(struct interpreter *, struct sv *, struct magic *, struct sv *, const char *, long)') with an expression of type 'int (PerlInterpreter *, SV *, MAGIC *, SV *, const char *, int)' (aka 'int (struct interpreter *, struct sv *, struct magic *, struct sv *, const char *, int)') [-Wincompatible-function-pointer-types] 57 | modperl_table_magic_copy}; | ^~~~~~~~~~~~~~~~~~~~~~~~ Perl uses the type `I32` for the last parameter, which is apparently `long` on i386. So use that instead. PR: 281594 MFH: 2024Q3 --- .../files/patch-src_modules_perl_modperl__common__util.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/www/mod_perl2/files/patch-src_modules_perl_modperl__common__util.c b/www/mod_perl2/files/patch-src_modules_perl_modperl__common__util.c new file mode 100644 index 000000000000..f02c783ce1d9 --- /dev/null +++ b/www/mod_perl2/files/patch-src_modules_perl_modperl__common__util.c @@ -0,0 +1,11 @@ +--- src/modules/perl/modperl_common_util.c.orig 2022-01-30 13:02:22 UTC ++++ src/modules/perl/modperl_common_util.c +@@ -41,7 +41,7 @@ int modperl_table_magic_copy(pTHX_ SV *sv, MAGIC *mg, + + MP_INLINE static + int modperl_table_magic_copy(pTHX_ SV *sv, MAGIC *mg, SV *nsv, +- const char *name, int namelen) ++ const char *name, I32 namelen) + { + /* prefetch the value whenever we're iterating over the keys */ + MAGIC *tie_magic = mg_find(nsv, PERL_MAGIC_tiedelem);