When starting emacs-21.4 I get this error: Fatal error (6).Aborted (core dumped) USE flags as shown by "emerge -p -v emacs": app-editors/emacs-21.4 +X -Xaw3d* -debug +gnome -leim +lesstif +motif +nls -nosendmail Compiling with -motif OR using +Xaw3d fixes the problem. Reproducible: Always Steps to Reproduce: 1. build version 21.4 using +X -Xaw3d* -debug +gnome -leim +lesstif +motif +nls -nosendmail 2. run emacs Actual Results: % emacs Fatal error (6).Aborted (core dumped) Expected Results: Shouldn't have crashed. The problem started after a recent security update of openmotif: http://www.gentoo.org/security/en/glsa/glsa-200502-07.xml which might be the cause? This update also seemed to break my existing xephemeris install, but xephem was repaired by a rebuild, emacs was not. % emerge --info Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r6 i686) ================================================================= System uname: 2.6.10-gentoo-r6 i686 Intel(R) Pentium(R) M processor 1700MHz Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 9 2005, 13:25:02)] dev-lang/python: 2.3.4-r1 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.8.5-r3, 1.5, 1.9.4, 1.6.3, 1.7.9-r1, 1.4_p6 sys-devel/binutils: 2.15.92.0.2-r1 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.4.21-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer -march=pentium4 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/alias /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer -march=pentium4 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X acpi aim alsa apache2 apm arts avi berkdb bitmap-fonts bzlib cdr crypt cups curl divx4linux dvb dvd dvdr emacs emboss encode esd ethereal exif f77 fam flac flash font-server foomatic foomaticdb fortran freetds gd gdbm gif gnome gphoto2 gpm gps gstreamer gtk gtk2 guile hardenedphp icq imagemagick imlib ipv6 jabber jack java joystick jpeg junit kde lesstif libg++ libwww lirc mad maildir mikmod mmap mmx mng motif mozilla mpeg msn mysql ncurses nls offensive ofx oggvorbis openal opengl oscar oss pam pcmcia pcre pda pdflib perl php pic png pnpposix postgres ppds python qt quicktime readline recode samba scanner sdl sndfile speex spell spl ssl svg svga tcltk tcpd tetex theora tiff truetype truetype-fonts type1-fonts unicode usb wavelan wmf xface xine xml xml2 xmms xosd xpm xv xvid yahoo zeo zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Yeah, motif is known to cause problems with some CFLAGS. Workaround for it is to use another toolkit (for example, Xaw3d) or disable motif, or build emacs with less aggressive CFLAGS.
if USE="-lesstif" work, then this bug may be related to the bug: 112625.
I build with the following flags: X motif nls -Xaw3d -leim -lesstif -nosendemail and receive the same error, so it is not related to +lesstif
Set USE='-motif -lesstif'. I don't think any of us have time to hunt around for the right CFLAGS/motif/lesstif combination unfortunately.