lcl/interfaces/customdrawn/customdrawnwsforms_x11.inc contains the following lines:
// redefines:
// The version from FreePascal crash except in FPC 2.7.1+ from 10 Dec 2011 +
function XmbLookupString(p1: PXIC; ev: PXKeyPressedEvent; str: PChar; len: longword; ks: PKeySym; stat: PStatus): longint; cdecl; external;
function Xutf8LookupString(p1: PXIC; ev: PXKeyPressedEvent; str: PChar; len: longword; ks: PKeySym; stat: PStatus): longint; cdecl; external;
The presence of the mentioned redefines has become obsolete since fpc's commit 14e6dcf8
https://gitlab.com/freepascal.org/fpc/source/-/commit/14e6dcf8161e55ace1837ea785ab3961deebb533The commit modified the file packages/x11/src/xlib.pp in order to fix the routine declarations.
This means that the redefines found in the LCL have become obsolete by 11 years.
The following patch removes them.
diff --git a/lcl/interfaces/customdrawn/customdrawnwsforms_x11.inc b/lcl/interfaces/customdrawn/customdrawnwsforms_x11.inc
index 3fe8cfff4d..87f7038e85 100644
--- a/lcl/interfaces/customdrawn/customdrawnwsforms_x11.inc
+++ b/lcl/interfaces/customdrawn/customdrawnwsforms_x11.inc
@@ -1,10 +1,5 @@
{%MainUnit customdrawnwsforms.pp}
-// redefines:
-// The version from FreePascal crash except in FPC 2.7.1+ from 10 Dec 2011 +
-function XmbLookupString(p1: PXIC; ev: PXKeyPressedEvent; str: PChar; len: longword; ks: PKeySym; stat: PStatus): longint; cdecl; external;
-function Xutf8LookupString(p1: PXIC; ev: PXKeyPressedEvent; str: PChar; len: longword; ks: PKeySym; stat: PStatus): longint; cdecl; external;
-
{ TCDWSCustomForm }
class procedure TCDWSCustomForm.Upda]"]>BlockedtifWMHints(const AWinControl: TWinControl; CanMaximize: Boolean);