[comp.windows.x] X11 beta-1 on Sun 3/160

turner@daisy.UUCP (D'arc Angel) (07/21/87)

I am trying to build the beta-1 release of X11 on my sun 3/160 
monochrome system under OS3.2, the makefile makes a great deal of
use of the $@ construct. BSD4.2 on the VAX correctly translate this 
as the root of the target file. SUNOS 3.2 treats it as a null....

HELP!


-- 
C'est la vie, C'est la guerre, C'est la pomme de terre
{cbosgd,fortune,hplabs,seismo!ihnp4,ucbvax}!nsc!daisy!turner      Jim Turner 
Daisy Systems, 700 E. Middlefield Rd, P.O. Box 7006, 
Mountain View CA 94039-7006.                                   (415)960-0123

avr@hou2d.UUCP (Adam V. Reed) (07/23/87)

In article <420@daisy.UUCP>, turner@daisy.UUCP (D'arc Angel) writes:
> I am trying to build the beta-1 release of X11 on my sun 3/160 
> monochrome system under OS3.2, the makefile makes a great deal of
> use of the $@ construct. BSD4.2 on the VAX correctly translate this 
> as the root of the target file. SUNOS 3.2 treats it as a null....
> HELP!

The problem is that server/ddx/mfb/Makefile uses $* (NOT $@). The
solution was included in the notes I posted some time ago about
making X11.beta-1 on a sun 3. It affects only one makefile, which
may be edited manually. I am posting my notes again below:

I have managed to modify the X11-beta.1 Makefiles to get make to
complete on a sun 3/50.  Here is a summary of what's needed to
make X11-beta.1 on a sun3 set up for system V compatibility:

1. Make sure that :/usr/ucb:/bin:/usr/bin are ahead of /usr/5bin in
	your $PATH - the Makefiles depend on the ucb stuff.

2. In the top-level makefile, change server to =Xsun

3. Run link-setup.

4. Make sure thet there is enough space in all the directories used
	by the Makefiles. For example, if there is not enough space
	in the / filesystem, which includes /tmp, make /tmp a
	symbolic link to a tmp subdirectory in a roomier one.

5. In the server/os/4.2bsd/Makefile, and also in the Xlib, toolkit,
	and clients/xterm Makefiles, remove dependencies on

	/usr/include/machine/machparam.h

	since it does not exist on a typical sun3.
	The information is in

	/usr/include/sys/param.h

6. As distributed, the ./server/ddx/mfb/Makefile uses $* outside the
	documented context of substitution macros. Some versions of
	make may accept this, but the /bin/make on out SUN 3/50
	silently ignores it. The result is

	ar: mfbpgbwht.o cannot open
	ar: mfbpgbblak.o cannot open
	ar: mfbpgbinv.o cannot open
	ar: mfbigbwht.o cannot open
	ar: mfbigbblak.o cannot open
	ar: mfbpawhite.o cannot open
	ar: mfbpablack.o cannot open
	ar: mfbpainv.o cannot open

	I edited the Makefile manually to correct this.

7. Since /usr/include/mit-copyright.h is not supplied, remove the
	dependency of XGetDflt.o on this file from Xlib/Makefile,
	and then

	mkdir include/X
	cd include
	ln copyright.h .

	Similarly with references to /usr/include/X/mit-copyright.h
	in clients/xpr/Makefile, clients/xwud/Makeffile,
	and clients/xwd/Makefile.  Remove dependency and

	ln -s include/X X

	in the base beta directory.