Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Michal Jaegermann <michal@ellpspace.math.ualberta.ca>
To: support@quant-x.com
Cc: axp-list@redhat.com
Subject: Re: Emacs hangs
Date: Wed, 3 Jun 1998 17:29:26 -0600 (MDT)	[thread overview]
Message-ID: <199806032329.RAA17979@ellpspace.math.ualberta.ca> (raw)
In-Reply-To: <199806032306.BAA00520@stefan.sime.com> from "Quant-X Alpha Linux Support" at Jun 4, 98 01:06:17 am

> 
> I think it's caused by the select(...) bug.

Most likely, although this seems to be a bit more complicated.
emacs still is not totally healthy but usable and this was definitely
not the case with the original 5.0 distribution.

> Recompile doesn't help because "/usr/include/gnu/types.h" has a
> broken __FDMASK definition.

This was true for some early versions.

> /usr/include/gnu/types.h
> from
> #define __FDMASK(d)     (1 << ((d) % __NFDBITS))

For quite a long while, i.e. through a number of updates, this
definition is

#define __FDMASK(d)     ((__fd_mask) 1 << ((d) % __NFDBITS))

which is correct but indeed requires updates to glibc-devel before
recompilation.  Another critical macro defintions, corrected in
updates of glibc-devel, are in <selectbits.h>

> to 
> #define __FDMASK(d)     (1UL << ((d) % __NFDBITS))
> 
> and then recompile.

so this will be not good enough.

You may also want to add '(setq cannot-suspend t)' if you are using
emacs on a console.  It is a bit of a pain as on C-z it spawns then a
new shell instead of suspending emacs and going back to the original
one; otherwise some other bug hits and emacs starts to interpret all
keyboard input "raw".  Not a very pretty sight.

  Michal

p.s. I did not try to recompile emacs with the current glibc-2.0.7-13
(and its headers).  Maybe I should.  Anybody knows for sure?


      reply	other threads:[~1998-06-03 23:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-06-03 15:00 Emacs hangs Peter S Galbraith
1998-06-03 15:51 ` Michael Larocque
1998-06-03 15:59   ` Stephen Williams
1998-06-03 23:06 ` Quant-X Alpha Linux Support
1998-06-03 23:29   ` Michal Jaegermann [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox