patchDDD - Patches: patch #9992, DDD fails compile with Xt 1.2.0


You are not allowed to post comments on this tracker with your current authentication level.

patch #9992: DDD fails compile with Xt 1.2.0

Submitted by:  Adrian Ho <lexfiend>
Submitted on:  Mon 09 Nov 2020 05:04:37 AM UTC  
Category:  None Priority:  5 - Normal
Status:  Works For Me Privacy:  Public
Assigned to:  Stefan Eickeler <eickeler> Open/Closed:  Open

Mon 09 Nov 2020 05:04:37 AM UTC, original submission:  

DDD 3.3.12 fails to compile on macOS Catalina with the most recent Xt (v1.2.0):

exit.C:815:12: error: no matching function for call to 'XtAppSetErrorHandler'
    (void) XtAppSetErrorHandler(app_context, ddd_xt_error);
/usr/local/include/X11/Intrinsic.h:1769:23: note: candidate function not viable: no known conversion from 'void (String)' (aka 'void (char *)') to 'void (*)(String) __attribute__((noreturn))' (aka 'void (*)(char *) __attribute__((noreturn))') for 2nd argument
extern XtErrorHandler XtAppSetErrorHandler(

The corresponding declaration from Intrinsic.h:

extern XtErrorHandler XtAppSetErrorHandler(
    XtAppContext        /* app_context */,
    XtErrorHandler      /* handler */ _X_NORETURN

This attribute seems to be new to Xt v1.2.0, so not all environments would be affected (Ubuntu 20.04, for example, is still on v1.1.5, which doesn't decorate XtAppSetErrorHandler() with the attribute, but doesn't object during compilation).

Test-built on:

  • macOS Catalina (Xt 1.2.0)
  • Ubuntu 20.04 (Xt 1.1.5)
Adrian Ho <lexfiend>


Attached Files
file #50229:  ddd-3.3.12-noreturn.patch added by lexfiend (382B - text/x-patch)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by eickeler (Updated the item)
  • -email is unavailable- added by lexfiend (Submitted the item)
  • -email is unavailable- added by lexfiend (Patch needed for Homebrew X11 migration)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-01-25 eickeler StatusNone => Works For Me
    2021-01-25 eickeler Assigned toNone => eickeler
    2020-11-09 lexfiend Attached File- => Added ddd-3.3.12-noreturn.patch, #50229
        Carbon-Copy- => Added lexfiend

    Back to the top

    Powered by Savane 3.7