Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 639508 - app-editors/xemacs-21.4.24-r1: gmalloc.c:1211:16: error: conflicting types for 'sbrk'
Summary: app-editors/xemacs-21.4.24-r1: gmalloc.c:1211:16: error: conflicting types fo...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: XEmacs team
Depends on:
Reported: 2017-12-02 14:25 UTC by Mats Lidell
Modified: 2017-12-11 21:59 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Mats Lidell gentoo-dev 2017-12-02 14:25:18 UTC
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.

  Compiling in support for ncurses.
  Compiling in support for GPM (General Purpose Mouse).

  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.

  Compiling in support for sound (native).

  Compiling in support for Berkeley database.
  Compiling in support for GNU DBM.
  Compiling in support for LDAP.


  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:
Comment 1 Larry the Git Cow gentoo-dev 2017-12-10 12:39:38 UTC
The bug has been referenced in the following commit(s):

commit de27d8e5c53b1aaca10875b5fe5f5a19a7a9dcaf
Author:     Mats Lidell <>
AuthorDate: 2017-12-10 12:34:21 +0000
Commit:     Mats Lidell <>
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.
    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(-)}