Date: Sat, 28 Sep 2024 13:42:45 +0000 From: bugzilla-noreply@freebsd.org To: apache@FreeBSD.org Subject: [Bug 281594] www/mod_perl2: fix build with clang 19 on i386 Message-ID: <bug-281594-16115-h4F18nKybQ@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-281594-16115@https.bugs.freebsd.org/bugzilla/> References: <bug-281594-16115@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D281594 --- Comment #3 from commit-hook@FreeBSD.org --- A commit in branch 2024Q3 references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=3Db5e7a8ad3ae02963d086ef16fc5e131= 2b4297255 commit b5e7a8ad3ae02963d086ef16fc5e1312b4297255 Author: Dimitry Andric <dim@FreeBSD.org> AuthorDate: 2024-09-19 19:41:23 +0000 Commit: Dimitry Andric <dim@FreeBSD.org> CommitDate: 2024-09-28 13:38:32 +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 typ= es initializing 'int (*)(PerlInterpreter *, SV *, MAGIC *, SV *, const char *, I32)' (aka 'int (*)(struct interpreter *, struct sv *, struct magic *, stru= ct sv *, const char *, long)') with an expression of type 'int (PerlInterprete= r *, SV *, MAGIC *, SV *, const char *, int)' (aka 'int (struct interpreter *, struct sv *, struct magic *, struct sv *, const char *, int)') [-Wincompatible-function-pointer-types] 57 |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20 modperl_table_magic_copy}; |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20 ^~~~~~~~~~~~~~~~~~~~~~~~ Perl uses the type `I32` for the last parameter, which is apparently `long` on i386. So use that instead. PR: 281594 MFH: 2024Q3 (cherry picked from commit 99f25aaa64395af55a872fc6cf77127f5f0e4997) .../patch-src_modules_perl_modperl__common__util.c (new) | 11 +++++++= ++++ 1 file changed, 11 insertions(+) --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-281594-16115-h4F18nKybQ>