With this configuration: XEmacs 21.4.24 "Standard C" configured for `x86_64-unknown-linux'. Compilation / Installation: Source code location: /var/tmp/portage/app-editors/xemacs-21.4.24-r1/work/xemacs-21.4.24 Installation prefix: /usr Operating system description file: `s/linux.h' Not using any machine description file Compiler: x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -fgnu89-inline Compiler version: x86_64-pc-linux-gnu-gcc on x86_64-unknown-linux Relocating allocator for buffers: default GNU version of malloc: yes Need to guess glibc1/2/etc here Window System: Compiling in support for the X window system: - X Windows headers location: - X Windows libraries location: - Handling WM_COMMAND properly. Compiling in support for the Athena widget set: - Athena headers location: X11/Xaw - Athena library to link: Xaw Using Lucid menubars. Using Lucid scrollbars. Using Athena dialog boxes. Using Athena native widgets. TTY: Compiling in support for ncurses. Compiling in support for GPM (General Purpose Mouse). Images: Compiling in support for GIF images (builtin). Compiling in support for XPM images. Compiling in support for PNG images. Compiling in support for JPEG images. Compiling in support for TIFF images. Sound: Compiling in support for sound (native). Databases: Compiling in support for Berkeley database. Compiling in support for GNU DBM. Compiling in support for LDAP. Internationalization: Mail: Compiling in support for "flock" mail spool file locking method. Other Features: Inhibiting IPv6 canonicalization at startup. Compiling in support for dynamic shared object modules. Using the new portable dumper. The build fails to compile: [...] gmalloc.c: At top level: gmalloc.c:1211:16: error: conflicting types for 'sbrk' #define __sbrk sbrk ^ gmalloc.c:1222:16: note: in expansion of macro '__sbrk' extern __ptr_t __sbrk __P ((int increment)); ^~~~~~ In file included from gmalloc.c:72:0: /usr/include/unistd.h:1044:14: note: previous declaration of 'sbrk' was here extern void *sbrk (intptr_t __delta) __THROW; [...] This is likely the same problem as reported and fixed for xemacs-21.5 in the ticket: https://bugs.gentoo.org/609110
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de27d8e5c53b1aaca10875b5fe5f5a19a7a9dcaf commit de27d8e5c53b1aaca10875b5fe5f5a19a7a9dcaf Author: Mats Lidell <matsl@gentoo.org> AuthorDate: 2017-12-10 12:34:21 +0000 Commit: Mats Lidell <matsl@gentoo.org> CommitDate: 2017-12-10 12:35:20 +0000 app-editors/xemacs: Use system malloc and -no-pie For 21.4 use system malloc on all architectures. For both 21.4 and 21.5 use -no-pie option since xemacs can't be built with positions indipendent code yet. This is for adopting to the 17.0 profiles which defaults to use PIE. Bug: https://bugs.gentoo.org/639214 Bug: https://bugs.gentoo.org/639508 Bug: https://bugs.gentoo.org/639642 Package-Manager: Portage-2.3.13, Repoman-2.3.3 app-editors/xemacs/xemacs-21.4.24-r1.ebuild | 18 +++++++----------- app-editors/xemacs/xemacs-21.4.24.ebuild | 18 +++++++----------- app-editors/xemacs/xemacs-21.5.34-r4.ebuild | 9 ++++++--- 3 files changed, 20 insertions(+), 25 deletions(-)}