From: girou@circe.fr (Denis Girou)
Newsgroups: alt.lucid-emacs.help
Subject: Lemacs 19.3 installation on RS 6000 with AIX 3.2
Keywords: RS6000, AIX, installation
Date: 2 Oct 92 19:15:30 GMT
Reply-To: girou@circe.fr (Denis Girou)
Organization: circe


  Dear lemacs lovers,

  Here is my own experience with the installation of lemacs 19.3 on RS6000
under AIX 3.2.0

  I already seen two explanations in this newsgroup for the same installation:
bobhays@spss.com and dfr@ioc.co.uk (Doug Rabson). I have had some of there
problems, some not, and one else...

  It's work with satisfaction since one week on our RS6000 server. The only
problem signaled (four or five times), rarely and randomly, is the global
loose of control (keyboard, mouse and session) during the interrogation of the
menu bar (mwm window manager used).

  I use X11R5 like Bob and Doug. For non explained reasons, there are strange
problems with X11R4 - which seems unusable. If you don't have X11R5 (it's my
case), you have just to install the includes and to copy the binaries
libraries for AIX 3.2 which are in /anonymous@minnie.zdv.uni-mainz.de:/pub/AIX
(many thanks to them!).

  Bob says that he succeed (with difficulties) to use the Motif menus. I try,
but see too many problems, and use the default menus...

  Bob and Doug used gcc. I also try, but see more problems than with the
Metaware cc default compiler (by instance the problem in emacs.c with
file_exists_p doesn't exist with cc).

  I don't succeed to use terminfo (so I use termcap) because with the
terminfo choice, lemacs cannot run in background.

  The only difficult problem that I had was with the call-process function :
all the processes submitted by lemacs returned with the "killed" status, so
dired (which submit ls subprocesses) and so on didn't work. I finish to found
the origin of this problem : the nice call in the setpriority function inside
sysdep.c Bob and Doug doesn't signal this problem, but I know two others
people which have it...


  In fact, I only modify four files :

    - gmalloc.c to force the "#include <stddef.h>",

    - sysdep.c to suppress the nice call in the setpriority function and
replace HFQEIO by HFQRROR (this since AIX 3.2)

    - lwlib.c to suppress the include of alloca.h,

    - config.h to use cc and not ld for the link step, to define NEED_REALPATH,
to not define TERMINFO, and to specify the location of my X11R5 files.


  Here are my diff files :

hubble (19:26) [143]> diff gmalloc.c gmalloc.ORIG.c
48,50d47
< /*  Modification Denis GIROU - 21 Sep. 1992  */
< #include <stddef.h>
< 
56a54
> 
hubble (19:26) [144]> diff sysdep.c sysdep.ORIG.c
2546,2547c2546
< /*  Modification Denis GIROU - 21 Sep. 1992  */
< /*$void$*/
---
> void
2551,2552c2550
< /*  Modification Denis GIROU - 21 Sep. 1992  */
<   /*$int nice();
---
>   int nice();
2554,2555c2552
<   nice (prio - nice (0));$*/
<   return(0);
---
>   nice (prio - nice (0));
4245,4247c4242
< /*  Modification Denis GIROU - 10 Sep. 1992  */
< /*$#ifdef IBMR2AIX$*/
< #if defined (IBMR2AIX) || defined (AIX)
---
> #ifdef IBMR2AIX
4289,4293d4283
< /*  Modification Denis GIROU - 10 Sep. 1992  */
<   /*$if (ioctl (0, HFQEIO, 0) != -1)$*/
< #if defined (IBMR2AIX) || defined (AIX)
<   if (ioctl (0, HFQERROR, 0) != -1)
< #else
4295d4284
< #endif
4307,4309c4296
< /*  Modification Denis GIROU - 10 Sep. 1992  */
< /*$#ifdef IBMR2AIX$*/
< #if defined (IBMR2AIX) || defined (AIX)
---
> #ifdef IBMR2AIX
hubble (19:26) [145]> diff config.h config.h-dist
35,36c35
< /*  Modification Denis GIROU - 17 Sep. 1992  */
< /*$#define USE_GCC$*/
---
> #define USE_GCC
44,45c43
< /*  Modification Denis GIROU - 10 Sep. 1992  */
< #include "s/s-aix3-1.h"
---
> #include "s/s-sunos4.h"
47,52d44
< /*  Modification Denis GIROU - 10 Sep. 1992  */
< #undef TERMINFO
< #ifndef LD_CMD
< #define LD_CMD LINKER         /* 18.58 calls it LINKER */
< #endif
< 
58,59c50
< /*  Modification Denis GIROU - 10 Sep. 1992  */
< #include "m/m-ibmrs6000.h"
---
> #include "m/m-sparc.h"
141,142c132
< /*  Modification Denis GIROU - 10 Sep. 1992  */
< #define NEED_REALPATH
---
> /* #define NEED_REALPATH */
197,198d186
< /*  Modification Denis GIROU - 10 Sep. 1992  */
< #define LD_SWITCH_SITE -L/produits/public/X11R5/lib
206,207d193
< /*  Modification Denis GIROU - 10 Sep. 1992  */
< #define C_SWITCH_SITE -I/produits/public/X11R5/include
hubble (19:28) [146]> 


  I'm interesting to have information about the problems with lemacs under AIX.


  With hope that these informations can help.


  Best regards,

  

------------------------------------------------------
Denis Girou (C.N.R.S./C.I.R.C.E.)                    |
Batiment 506 - B.P. 167 - 91403 Orsay Cedex - France |
E-mail : girou@circe.fr - Tel.  : 33. 1. 69.82.41.52 |
------------------------------------------------------
Newsgroups: alt.lucid-emacs.help