Bug 9108 - incorrect type for 'ospeed' variable in emacs
Summary: incorrect type for 'ospeed' variable in emacs
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: emacs
Version: 6.1
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Cristian Gafton
QA Contact:
URL:
Whiteboard:
: 4444 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-02-04 01:20 UTC by michal
Modified: 2008-05-01 15:37 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2000-02-04 02:12:25 UTC
Embargoed:


Attachments (Terms of Use)

Description michal 2000-02-04 01:20:20 UTC
A file emacs-20.4/src/ChangeLog includes the following entry:

1997-07-28  Richard Stallman  <rms.ai.mit.edu>
........................
        * cm.h, sysdep.c, terminfo.c [HAVE_LIBNCURSES]:
        Declare ospeed as short, unless NCURSES_OSPEED_T.

Unfortunately nothing in 'configure' for emacss seems to be checkin
for that.  The net effect is that emacs declares 'ospeed' as short
while libraries, which access the same global variable, treat that
as 'speed_t'.  At least with ncurses-4.2-25, as included in RH 6.1
distribution, these two types are not the same.

On Alpha, in particular, this has an effect of generating "unaligned
access" messages from a kernel on every access from libraries to that
variable.  In general it seems that emacs works more by luck
than anything else as some not entirely random memory is clobbered
on every write and a garbage retrieved on reads.

This can be fixed by adding NCURSES_OSPEED_T to compilation flags
in emacs.spec file and recompiling emacs binaries.  A patch to spec
file is included below.

   Michal Jaegermann,
   michal

Comment 1 Cristian Gafton 2000-02-04 02:12:59 UTC
fixed in the current devel tree

Comment 2 Cristian Gafton 2000-02-04 02:50:59 UTC
*** Bug 4444 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.