A "complete" R5 or R6 implementation means that xmkmf and imake are configured and installed on your system, and that the Xaw and Xmu libraries and header files are installed. Some vendors (HP and IBM in particular) consider these optional software and do not always install them.
If you are running vanilla X11R5 or X11R6, then the build procedure is:
xmkmf # create a Makefile
make depend # add dependency information
make # build x3270 and its fonts
x3270 requires that its fonts and app-defaults file be installed in order to run. However, a script is provided for testing a local copy of x3270 in the current directory:
./dryrun # test x3270
Once you are satisfied that x3270 is working, you can install it (as root) with the command:
make install
Before running x3270, you will also need to (once):
xset fp rehash
That's the easy way. Here are the exceptions:
mv Imakefile.R4 Imakefile # use the R4 Imakefile instead
xmkmf # create a Makefile
make depend # add dependency information
make # build x3270 and its fonts
x3270 requires that its fonts and app-defaults file be installed in order to run. However, a script is provided for testing a local copy of x3270 in the current directory:
./dryrun # test x3270
Once you are satisfied that x3270 is working, you can install it (as root) with the command:
make install
Before running x3270, you will also need to (once):
xset fp rehash
Once these have been installed, you can use the standard X11R5 build procedure above.
Once these have been installed, you can use a simple variation on the R4 build procedure:
mv Imakefile.R4 Imakefile # use the R4 Imakefile instead
imake -DUseInstalled -I/usr/lpp/X11/Xamples/config # replacement for xmkmf
make depend # add dependency information
make # build x3270 and its fonts
x3270 requires that its fonts and app-defaults file be installed in order to run. However, a script is provided for testing a local copy of x3270 in the current directory:
./dryrun # test x3270
Once you are satisfied that x3270 is working, you can install it (as root) with the command:
make install
Before running x3270, you will also need to (once):
xset fp rehash
A number of unsupported core MIT clients and miscellaneous utilities are provided in /usr/contrib/bin. In addition, the entire core MIT distribution, compiled for Hewlett-Packard platforms, can be obtained from HP's users group INTERWORKS for a nominal fee. See the release notes for details.What you need is the Xaw and Xmu libraries, imake, and xmkmf. Then you can follow the vanilla R5 build and install instructions.
However, Sun's X11 configuration files can still cause some problems. These are not x3270 problems -- they affect building any X application that uses an Imakefile.
If you see compler errors like this:
ucbcc: Warning: Option -Wa,-cg92 passed to ld, if ld is invoked, ignored otherwise
Then you need to to edit the "Makefile" that was produced by xmkmf and change the line that reads:
CCOPTIONS = -DSYSV -DSVR4 -xF -Wa,-cg92
and change it to:
CCOPTIONS = -DSYSV -DSVR4 -xF
If "make install" fails with the following error:
sh: /usr/openwin/bin/bsdinst: not found
Then edit the "Makefile" again and change the line that reads:
INSTALL = $(BINDIR)/bsdinst
and change it to:
INSTALL = /usr/ucb/install
To build x3270:
make -f Makefile.openwin
If you get the following undefineds:
_get_wmShellWidgetClass _get_applicationShellWidgetClass
This is a bug in Sun's X11 libraries, and can be corrected by obtaining patches 100512-02 and 100573-03 from Sun. As a short-term workaround, there is a line in Makefile.openwin which you can uncomment.
Note: When the fonts are being compiled, the "bldfamily" program will produce output lines that look like:
* 3270 ./3270.ff (Encoding: unknown)
These "unknown" messages are harmless.
x3270 requires that its fonts and app-defaults file be installed in order to run. However, a script is provided for testing a local copy of x3270 in the current directory:
./dryrun # test x3270
To install:
make -f Makefile.openwin install
Before running x3270, you will also need to (once):
xset fp rehash
EXTRA_LIBRARIES = -lnsl -lsocket
Some tools are available to help. If you need to build fonts for an XNews (Sun OpenWindows) server, but otherwise are using X11R4 or X11R5 libaries to build x3270, you can build and install OpenWindows fonts separately with the commands:
make -f Makefile.openwin fonts
make -f Makefile.openwin install.fonts
cd into XXX.
For each .bdf file, run the server-specific version of bdftosnf to create a .snf file. For example, for to build an NCD font on a Sun-4, the command is:
/usr/local/NCD/binSun4/bdftosnf 3270.bdf >3270.snfRun the server-specific version of mkfontdir. For example:
/usr/local/NCD/binSun4/mkfontdir .Then tell your X server to use this directory:
xset fp+ XXX xset fp rehash
In globals.h, remove the "#define NO_SYS_TIME_H" that is defined for sco.
In Imakefile, add:
EXTRA_LIBRARIES = -lnsl_s -lsocketAlso be aware that x3270 requires the Athena Widgets library, which is available from sosco.sco.com.