[gnu.emacs.bug] 4 problems and 3 solutions in GNU Emacs 18.54 on IBM RT AIX 2.2.1

Beebe@SCIENCE.UTAH.EDU ("Nelson H.F. Beebe") (07/30/89)

I was unable to get GNU Emacs 18.52 to work on the IBM RT
with AIX 2.2.1 -- it would compile fine, and when started,
bring up a window that would respond to Ctl-G (quit), and
ignore all other input.

I therefore grabbed 18.54, and now have it up and running, with
one problem unresolved mentioned in point (4) below:

In config.h, I have used the following settings:

220 wildflower>diff config.h-dist config.h
27c27
< #include "s-bsd4-2.h"
---
> #include "s-usg5-2-2.h"
34c34
< #include "m-vax.h"
---
> #include "m-ibmrt-aix.h"
49c49
< /* #define HAVE_X_WINDOWS */
---
> #define HAVE_X_WINDOWS
54c54
< /* #define X11 */
---
> #define X11
108a109,110
> #undef PURESIZE
> #define PURESIZE 222000

The larger setting for PURESIZE is because we preload some local
stuff here in our site-init.el file; other sites should not
require this.

There were, however, some minor problems which need to be fixed
in the master sources for GNU Emacs at prep.ai.mit.edu:

(1) m-ibmrt-aix.h has an inappropriate setting for LIBS_MACHINE
(it references -lXMenu -lX instead of -lX11).

(2) x11term.c will not compile because struct timeval is unknown.

The code in x11term.c includes <time.h> if USG is defined (it is
for AIX), and otherwise includes <sys/time.h>.  AIX has timeval,
in <sys/time.h>, so I just added an explicit include in
m-ibmrt-aix.h.

The changes for (1) and (2) in m-ibmrt-aix.h are:

203 wildflower>diff m-ibmrt-aix.ol m-ibmrt-aix.h
130a131,132
> #undef LIBS_MACHINE
> #define LIBS_MACHINE -lX11 -lrts
131a134
>
173a177,182
>
> /*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/
> /* Utah addition:
> /* timeval struct defined here, but x11term.c doesn't read it when USG
> is defined, which is the case for AIX */
> #include <sys/time.h>

(3) There are 2 spelling errors in sysdep.c that cause the
compilation to fail:

204 wildflower>diff sysdep.c-old sysdep.c
794,795c794,795
<       s.c_iflag &= ~IGNBRK;
<       s.c_iflag &= ~BRKINT;
---
>       sg.c_iflag &= ~IGNBRK;
>       sg.c_iflag &= ~BRKINT;

(4) M-x manual-entry hangs Emacs after it displays the message
"No formatted entry for ls"; I have no solution yet for this
problem.
-------