root/foundation-apps/mxterm-maxx/README.os390

Revision 8, 2.9 KB (checked in by emasson, 3 years ago)

initial import for the community edition

Line 
1-- $XFree86: xc/programs/xterm/README.os390,v 1.3 2000/09/22 10:42:05 alanh Exp $
2
3Below are install instructions for os/390 2.5 & below and
4for os/390 2.6 & above.  The basic reasons for exporting
5the LIBS and CFLAGS variables is to get the configure
6script to run properly under os/390.  configure, when
7checking for X, attempts to compile a program something like
8
9   int main() {
10   XtMalloc()
11   ; return 0; }
12
13using 'cc -o conftest conftest.c -lXt'.  However this results
14in a number of linkedit messages such as:
15
16   IEW2456E 9207 SYMBOL xcatd UNRESOLVED.  MEMBER COULD NOT BE INCLUDED FROM THE
17            DESIGNATED CALL LIBRARY. NAME SPACE = 3
18   IEW2456E 9207 SYMBOL XrmQGetResource UNRESOLVED.  MEMBER COULD NOT BE INCLUDED
19            FROM THE DESIGNATED CALL LIBRARY.
20   IEW2456E 9207 SYMBOL XrmGetDatabase UNRESOLVED.  MEMBER COULD NOT BE INCLUDED
21            FROM THE DESIGNATED CALL LIBRARY.
22
23The only way I can get this program to compile and link is to
24use 'cc -o conftest conftest.c -lXt -lX11 -lSM -lICE'.
25With os/390 2.6 and above, IBM has provided X functions in dlls;
26this is the reason for the separate install steps.  In fact,
27trying to use the X archive files (eg -lX11) when linking xterm
28results in an abend0C1 in low storage when X tries to call the
29initialize function (at least on my system).  This has something
30to do with the calling X routine thinking it has a function pointer
31descriptor (c++) when it actually has just a function pointer (c).
32Unfortunately, I have been unable to recreate the problem in a
33simple testcase, so I haven't reported it to IBM.  Anyway, for os/390
342.6 and above, configure will build a Makefile with the following line:
35
36   LIBS  = -lXaw -lXext -lXmu -lXt  -lSM -lICE -lX11 /usr/lib/Xaw.x /usr/lib/SM.x /usr/lib/ICE.x /usr/lib/X11.x -lcurses
37
38The '-lXaw -lXext -lXmu -lXt  -lSM -lICE -lX11' should be manually removed;
39this isn't strictly necessary, but will reduce the size of the executable
40by about 4M.
41
42The '-Wl,EDIT=NO' causes the Binder to produce a non-editable executable,
43dramatically reducing the size of the executable file.
44
45Good Luck!!
46Greg Smith
47rys@trex.rtpnc.epa.gov
48
49
50
51Install instructions for os/390 2.5 and *below*:
52------------------------------------------------
53   gunzip xterm.tar.gz
54   pax -o from=ISO8859-1,to=IBM-1047 -rf xterm.tar
55   cd xterm
56   export LIBS='-lXt  -lX11 -lSM -lICE'
57   export CFLAGS='-D_ALL_SOURCE -Wl,EDIT=NO'
58   ./configure
59   make
60   export DISPLAY=my.xserver.name:0
61   ./xterm
62
63
64Install instructions for os/390 2.6 and *above*:
65------------------------------------------------
66   gunzip xterm.tar.gz
67   pax -o from=ISO8859-1,to=IBM-1047 -rf xterm.tar
68   cd xterm
69   ./configure   # LIBS, CFLAGS, and CC are defined by configure for os/390 2.6.
70   [optional: edit the Makefile and remove '-lXaw -lXext -lXmu -lXt  -lSM -lICE -lX11'
71              from the LIBS assignment]
72   make
73   export DISPLAY=my.xserver.name:0
74   ./xterm
Note: See TracBrowser for help on using the browser.