patches to make X11R4 compile on a RS6000

Elliot_Jaffe at TRANSARC.COM Elliot_Jaffe at TRANSARC.COM
Thu Aug 2 05:02:35 AEST 1990


I have compiled the X11R4 distribution on the Rs6000.  Of course I only
compiled the clients, since there is no Rs6000 server in the R4 distribution.
I did not bother trying to compile the examples, demos, or doc directories,
so you may need to make additional modifications for them.

One final note, you need to have installed the X11 Xamples directory from the
lpp tape.  The lpp is called /usr/lpp.install/X11devB1.  You need because
IBM has supplied a working cpp since the normal one does not handle
Imakefiles.

One final note: I was able to install the shape extension into the IBM X
server by following the samples in /usr/lpp/X11/Xamples/{extensions,server}.

Good luck,
Elliot Jaffe
Transarc Corp.
jaffe at transarc.com

Here are the diffs:
diff -rb mit.old/clients/xload/get_load.c mit/clients/xload/get_load.c
230a231,234
> #ifdef _IBMR2
> #define KERNEL_FILE "/unix"
> #endif /* _IBMR2 */
>
274a279,282
>
> #ifdef _IBMR2
> #define USG
> #endif
diff -rb mit.old/config/Imake.tmpl mit/config/Imake.tmpl
149a150,154
> #if defined(AIXV3)
> #define MacroIncludeFile <aixv3.cf>
> #define MacroFile aixv3.cf
> #endif
>
diff -rb mit.old/config/imakemdep.h mit/config/imakemdep.h
35a36,39
> #ifdef _IBMR2
> #define imake_ccflags "-D_BSD -DAIXV3"
> #endif
>
69c73
< #if defined(sun) || defined(SYSV)
---
> #if defined(sun) || defined(SYSV) || defined(_IBMR2)
82a87,89
> #ifdef _IBMR2
> #define DEFAULT_CPP "/usr/lpp/X11/Xamples/util/cpp/cpp"
> #endif
118a126,128
> #endif
> #ifdef _IBMR2
>       "-DAIXV3",
diff -rb mit.old/include/Xos.h mit/include/Xos.h
120a121,131
>
> #ifdef _IBMR2                      /* Bsd, but struct tm is in time.h */
> #if defined(_ANSI_C_SOURCE)
> #include <time.h>
> #else
> #define _ANSI_C_SOURCE
> #include <time.h>
> #undef _ANSI_C_SOURCE
> #endif
> #endif
>
diff -rb mit.old/lib/X/Xlibos.h mit/lib/X/Xlibos.h
43a44,47
> #ifdef _IBMR2
> #define MALLOC_0_RETURNS_NULL
> #endif
>
diff -rb mit.old/lib/Xaw/Text.c mit/lib/Xaw/Text.c
1562c1562
<                (count == 0) ? NULL : selections[0]);
---
>                (count == 0) ? (Atom)NULL : selections[0]);
Only in mit/lib/Xaw: foo
diff -rb mit.old/server/include/os.h mit/server/include/os.h
107a108
> #if !defined(_IBMR2)
108a110
> #endif



More information about the Comp.unix.aix mailing list