emerge of xemacs fails with: lisp.h:204:3: error: conflicting types for 'max_align_t' This error occurred after I upgraded from gcc-4.9 to the 5.3 series. A little bit of googling has brought me to: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=778180 Which makes me believe that it's an upstream issue: >The stddef.h header defines max_align_t conditional on the definition >of __STDC_VERSION__, so in gcc5, this type is defined in stddef.h, >where for older versions of gcc it was not. It appears though that there is an additional issue introduced by the change of inlining semantics between gcc 4 and 5: >gcc5 changes the semantics of inline function declarations, causing some >inline functions in xemacs to be considered "extern", and thus cause >multiple function definitions for the linker. This should be fixed >upstream, but for now we can add "-fgnu89-inline" to CFLAGS to keep >the old inline semantics. I haven't yet tried the fixes myself.
Created attachment 427514 [details] emerge --info
Created attachment 427516 [details] build log
I have been able to recreate the problem.
xemacs-21.4.24.ebuild has been updated with a patch derived from the debian bug report plus adding -std=gnu89 to cflags so gcc adjusts to the sources. Please verify.
Verified by building on a separate machine with testing profile and masking out 21.5.