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

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

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>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

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)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

     

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-08-03 eickeler Open/ClosedOpen Closed
    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.9