Subject: bug#34098: build failed: alloc.c:140: undefined reference to `my_heap_start'

From: Glenn Morris <[email-masked]>
Date: Wed, 16 Jan 2019 05:19:46 -0500

Package: emacs
Version: 27.0.50
Severity: important

Master branch at revision 655badc33. Using RHEL 7.6, gcc 4.8.5.
Configure options:
--with-mailutils --without-xaw3d 
--without-gsettings --without-xim --with-x --with-x-toolkit=athena
--without-toolkit-scroll-bars --enable-check-lisp-object-type

Some configure output:
  What compiler should emacs be built with?             gcc -std=gnu11 -g3 -O2
  Should Emacs use the GNU version of malloc?           no
    (The GNU allocators don't work with this system configuration.
  Should Emacs use a relocating allocator for buffers?  no
  Should Emacs use mmap(2) for buffer allocation?       no
  [...]
  Does Emacs support the portable dumper?                 yes
  Does Emacs support legacy unexec dumping?               no 
  Which dumping strategy does Emacs use?                  pdumper 

Bootstrap build fails with:

CCLD     temacs.in
alloc.o: In function `malloc_initialize_hook':
alloc.c:140: undefined reference to `my_heap_start'
collect2: error: ld returned 1 exit status