Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 609110 - app-editors/xemacs-21.5.34-r4 : gmalloc.c:1203:16: error: conflicting types for 'sbrk'
Summary: app-editors/xemacs-21.5.34-r4 : gmalloc.c:1203:16: error: conflicting types f...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: XEmacs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-12 14:55 UTC by Toralf Förster
Modified: 2017-12-11 22:13 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,5.77 KB, text/plain)
2017-02-12 14:55 UTC, Toralf Förster
Details
app-editors:xemacs-21.5.34-r4:20170212-135933.log (app-editors:xemacs-21.5.34-r4:20170212-135933.log,252.12 KB, text/plain)
2017-02-12 14:55 UTC, Toralf Förster
Details
config.log (config.log,638.84 KB, text/plain)
2017-02-12 14:55 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,312.13 KB, text/plain)
2017-02-12 14:56 UTC, Toralf Förster
Details
environment (environment,94.73 KB, text/plain)
2017-02-12 14:56 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,21.62 KB, application/x-bzip)
2017-02-12 14:56 UTC, Toralf Förster
Details
emerge-info.txt (emerge-info.txt,5.95 KB, text/plain)
2017-04-01 07:16 UTC, Toralf Förster
Details
app-editors:xemacs-21.5.34-r4:20170401-015017.log (app-editors:xemacs-21.5.34-r4:20170401-015017.log,275.66 KB, text/plain)
2017-04-01 07:16 UTC, Toralf Förster
Details
config.log.tbz2 (config.log.tbz2,22.22 KB, application/x-bzip)
2017-04-01 07:16 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,348.11 KB, text/plain)
2017-04-01 07:16 UTC, Toralf Förster
Details
environment (environment,94.07 KB, text/plain)
2017-04-01 07:16 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,30.94 KB, application/x-bzip)
2017-04-01 07:16 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,42.40 KB, application/x-bzip)
2017-04-01 07:16 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2017-02-12 14:55:48 UTC
                ^
gmalloc.c: At top level:
gmalloc.c:1203:16: error: conflicting types for 'sbrk'
 #define __sbrk sbrk
                ^
gmalloc.c:1210:16: note: in expansion of macro '__sbrk'

  -----------------------------------------------------------------

  This is an unstable amd64 chroot image (named gnome-systemd-unstable_20170203-101641) at a hardened host acting as a tinderbox.

  -----------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-5.4.0 *
llvm-config --version:
3.9.1
Available Java Virtual Machines:
  [1]   icedtea-bin-7 
  [2]   icedtea-bin-8  system-vm
  [3]   jamvm 
Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python2.7 (fallback)
  [3]   pypy3 (fallback)
Available Ruby profiles:
  [1]   ruby21 (with Rubygems) *
java-config:
The following VMs are available for generation-2:
1)	IcedTea JDK 7.2.6.8 [icedtea-bin-7]
*)	IcedTea JDK 3.3.0 [icedtea-bin-8]
3)	JamVM JDK 2.0.0 [jamvm]
Comment 1 Toralf Förster gentoo-dev 2017-02-12 14:55:51 UTC
Created attachment 463440 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-02-12 14:55:54 UTC
Created attachment 463442 [details]
app-editors:xemacs-21.5.34-r4:20170212-135933.log
Comment 3 Toralf Förster gentoo-dev 2017-02-12 14:55:57 UTC
Created attachment 463444 [details]
config.log
Comment 4 Toralf Förster gentoo-dev 2017-02-12 14:56:00 UTC
Created attachment 463446 [details]
emerge-history.txt
Comment 5 Toralf Förster gentoo-dev 2017-02-12 14:56:03 UTC
Created attachment 463448 [details]
environment
Comment 6 Toralf Förster gentoo-dev 2017-02-12 14:56:06 UTC
Created attachment 463450 [details]
etc.portage.tbz2
Comment 7 Mats Lidell gentoo-dev 2017-02-13 20:51:55 UTC
If I read the logs correctly this is a build with glibc 2.25. In that version malloc_get_state and malloc_set_state functions have been removed which seems to convince configure to use the malloc supplied with xemacs which I fear might not have seen the day of light in a few years.

I suspect simply using the system malloc could be a simple and better choice. I'll investigate.
Comment 8 Toralf Förster gentoo-dev 2017-02-13 20:59:40 UTC
(In reply to Mats Lidell from comment #7)
>If I read the logs correctly this is a build with glibc 2.25.
Yes, I keyworded it at the tinderbox for unstable images
Comment 9 Mats Lidell gentoo-dev 2017-03-31 20:21:57 UTC
xemacs-21.5.34-r4.ebuild is updated to use the system malloc. That should fix this issue and is probably generally good anyway.

Please try it.
Comment 10 Toralf Förster gentoo-dev 2017-04-01 07:16:10 UTC
same at the tinderbox image plasma-systemd-abi32+64_20170325-221422
Comment 11 Toralf Förster gentoo-dev 2017-04-01 07:16:13 UTC
Created attachment 468830 [details]
emerge-info.txt
Comment 12 Toralf Förster gentoo-dev 2017-04-01 07:16:16 UTC
Created attachment 468832 [details]
app-editors:xemacs-21.5.34-r4:20170401-015017.log
Comment 13 Toralf Förster gentoo-dev 2017-04-01 07:16:20 UTC
Created attachment 468834 [details]
config.log.tbz2
Comment 14 Toralf Förster gentoo-dev 2017-04-01 07:16:23 UTC
Created attachment 468836 [details]
emerge-history.txt
Comment 15 Toralf Förster gentoo-dev 2017-04-01 07:16:26 UTC
Created attachment 468838 [details]
environment
Comment 16 Toralf Förster gentoo-dev 2017-04-01 07:16:29 UTC
Created attachment 468840 [details]
etc.portage.tbz2
Comment 17 Toralf Förster gentoo-dev 2017-04-01 07:16:32 UTC
Created attachment 468842 [details]
temp.tbz2
Comment 18 Mats Lidell gentoo-dev 2017-04-01 21:19:18 UTC
(In reply to Toralf Förster from comment #10)
> same at the tinderbox image plasma-systemd-abi32+64_20170325-221422

The crash now is not the same as before. It is now a segmentation error in a later stage.
Comment 19 vsync 2017-12-10 22:10:12 UTC
Running into this myself with xemacs-21.5.34-r5.
Comment 20 vsync 2017-12-10 22:12:31 UTC
FWIW I set up emacs overlay, and received 21.5.34-r5 in the first place, because I was also running into a segfault at a later stage ("dump ELC stage 2" or so) with 21.5.34-r1 in stock portage.
Comment 21 vsync 2017-12-10 22:19:53 UTC
Huh, is layman/emacs/app-editors/xemacs outdated by portage/app-editors/xemacs?
Comment 22 Mats Lidell gentoo-dev 2017-12-10 23:14:52 UTC
(In reply to Mats Lidell from comment #18)
> (In reply to Toralf Förster from comment #10)
> > same at the tinderbox image plasma-systemd-abi32+64_20170325-221422
> 
> The crash now is not the same as before. It is now a segmentation error in a
> later stage.

This must be duplicate of https://bugs.gentoo.org/639642 which is solved.

I now realize that this might be what your bug report has been about all the time but I read it more like a request to have a build respecting PIE? We already have that request in ticket: https://bugs.gentoo.org/75028. The title might not be clear but is about xemacs builds working with PIE. Can we consider this ticket either as solved or as duplicate of https://bugs.gentoo.org/75028?
Comment 23 Mats Lidell gentoo-dev 2017-12-10 23:23:03 UTC
(In reply to vsync from comment #21)
> Huh, is layman/emacs/app-editors/xemacs outdated by
> portage/app-editors/xemacs?

I haven't updated xemacs in the emacs overlay for a long period mostly because upstream development has been very slow or non existing so there has not been anything to experiment with. In addition to that, 21.5, which is what upstream is working on, is in testing in gentoo so updates there are more relaxed.

I don't know if this is considered a problem. Overlays are experimental.

If upstream will be more active the overlay might prove useful again.
Comment 24 Mats Lidell gentoo-dev 2017-12-11 22:13:03 UTC
(In reply to Mats Lidell from comment #22)
> (In reply to Mats Lidell from comment #18)
> > (In reply to Toralf Förster from comment #10)
> > > same at the tinderbox image plasma-systemd-abi32+64_20170325-221422
> > 
> > The crash now is not the same as before. It is now a segmentation error in a
> > later stage.
> 
> This must be duplicate of https://bugs.gentoo.org/639642 which is solved.
> 
> I now realize that this might be what your bug report has been about all the
> time but I read it more like a request to have a build respecting PIE? We
> already have that request in ticket: https://bugs.gentoo.org/75028. The
> title might not be clear but is about xemacs builds working with PIE. Can we
> consider this ticket either as solved or as duplicate of
> https://bugs.gentoo.org/75028?

After giving this some time I take the freedom to consider this as solved. Feel free to reopen if I have misunderstood the issue.