I now updated to motif 2.5.2 and tried to recompile CDE, but it failed
on two places. [DtMrm] DtMrm.c and [dtappbuilder] abuil_load.c
The callback types are now with explicit parameters. The casts to the
K&R-style implicit argument list (just giving no arguments) caused an
incompatible pointer type error. I applied the following patch to fix
this, but I think, this requires a bit more testing.

Maybe someone else using gentoo can test this too.

Ayron

On Fri, 17 Apr 2026 15:51:41 +0000
Chase via cdesktopenv-devel <[email protected]>
wrote:

> Hello everyone,
> ICS appears to have completely abandoned motif development. A number
> of contributors I've seen here have submitted patched to the ICS
> motif in vain. Motifzone 404s, and the bug tracker is gone. Luckily
> not all hope is lost. Someone has picked up motif development and has
> made a number of releases (now currently all the way at 2.5.2), you
> can find the project here: https://github.com/thentenaar/motif.
> Gentoo currently packages this version, and if anyone here maintains
> motif for their project, I would also suggest switching to this
> version.
> 
> Thank you for your time,
> -Chase
>From f4ae9bf7f11731445aa31994c250e3f9e8aa24a1 Mon Sep 17 00:00:00 2001
From: Dark Ayron <[email protected]>
Date: Wed, 3 Jun 2026 21:13:40 +0000
Subject: [PATCH] Fix compilation issues with motif 2.5.2

Mrm and uil now use more specific types for the callback functions
instead of the K&R style implicit argument list. So the casts must be
removed or adapted.
---
 cde/lib/DtMrm/DtMrm.c                              | 14 +++++++-------
 cde/programs/dtappbuilder/src/libABil/abuil_load.c |  8 ++------
 2 files changed, 9 insertions(+), 13 deletions(-)

diff --git a/cde/lib/DtMrm/DtMrm.c b/cde/lib/DtMrm/DtMrm.c
index d6fc649f8..acde8b8f9 100644
--- a/cde/lib/DtMrm/DtMrm.c
+++ b/cde/lib/DtMrm/DtMrm.c
@@ -181,43 +181,43 @@ void DtMrmInitialize (void)
      */
     MrmRegisterClass(
 		0, NULL,
-		"DtCreateEditor", (Widget (*)()) DtCreateEditor,
+		"DtCreateEditor", DtCreateEditor,
         	(WidgetClass) &dtEditorClassRec
 		);
 
     MrmRegisterClass(
 		0, NULL,
-		"DtCreateHelpDialog", (Widget (*)()) DtCreateHelpDialog,
+		"DtCreateHelpDialog", DtCreateHelpDialog,
         	(WidgetClass) &dtHelpDialogWidgetClassRec
 		);
 
     MrmRegisterClass(
 		0, NULL,
-		"DtCreateHelpQuickDialog", (Widget (*)()) DtCreateHelpQuickDialog,
+		"DtCreateHelpQuickDialog", DtCreateHelpQuickDialog,
         	(WidgetClass) &dtHelpQuickDialogWidgetClassRec
 		);
 
     MrmRegisterClass(
 		0, NULL,
-		"DtCreateMenuButton", (Widget (*)()) DtCreateMenuButton,
+		"DtCreateMenuButton", DtCreateMenuButton,
         	(WidgetClass) &dtMenuButtonClassRec
 		);
 
     MrmRegisterClass(
 		0, NULL,
-		"DtCreatePrintSetupBox", (Widget (*)()) DtCreatePrintSetupBox,
+		"DtCreatePrintSetupBox", DtCreatePrintSetupBox,
         	(WidgetClass) &dtPrintSetupBoxClassRec
 		);
 
     MrmRegisterClass(
 		0, NULL,
-		"DtCreatePrintSetupDialog", (Widget (*)()) DtCreatePrintSetupDialog,
+		"DtCreatePrintSetupDialog", DtCreatePrintSetupDialog,
         	(WidgetClass) &dtPrintSetupBoxClassRec
 		);
 
     MrmRegisterClass(
 		0, NULL,
-		"DtCreateTerm", (Widget (*)()) DtCreateTerm,
+		"DtCreateTerm", DtCreateTerm,
         	(WidgetClass) &dtTermClassRec
 		);
 
diff --git a/cde/programs/dtappbuilder/src/libABil/abuil_load.c b/cde/programs/dtappbuilder/src/libABil/abuil_load.c
index ee5d3fe67..4b9f250fa 100644
--- a/cde/programs/dtappbuilder/src/libABil/abuil_load.c
+++ b/cde/programs/dtappbuilder/src/libABil/abuil_load.c
@@ -64,10 +64,6 @@ extern XtPointer _XmStringUngenerate (XmString string,
                         XmTextType tag_type,
                         XmTextType output_type);
 
-
-typedef Uil_continue_type(*UIL_CB)();
-
-
 /*
  * Private function declarations
  */
@@ -1140,8 +1136,8 @@ parse_uil(
     /* Call uil compiler with appropriate paramters */
 
     compile_stat = Uil(&command_desc, &compile_desc,
-		       (UIL_CB)message_cb, (char *)&user_mess_data,
-		       (UIL_CB)status_cb, (char *)&user_stat_data);
+		       (uil_message_cb_t)message_cb, (char *)&user_mess_data,
+		       (uil_status_cb_t)status_cb, (char *)&user_stat_data);
 
     fprintf(stderr, "\nUIL Compiler Version %d, ",
 		compile_desc.compiler_version);
-- 
2.53.0

_______________________________________________
cdesktopenv-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel

Reply via email to