Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!uunet!seismo!rutgers!mtune!whuts!homxb!hou2d!avr
From: avr@hou2d.UUCP (Adam V. Reed)
Newsgroups: comp.windows.x
Subject: Re: X11 beta-1 on Sun 3/160 (HELP!)
Message-ID: <1482@hou2d.UUCP>
Date: Thu, 23-Jul-87 10:43:26 EDT
Article-I.D.: hou2d.1482
Posted: Thu Jul 23 10:43:26 1987
Date-Received: Sat, 25-Jul-87 09:11:35 EDT
References: <420@daisy.UUCP>
Organization: AT&T Bell Laboratories, Holmdel
Lines: 69
Keywords: x11,sun
Summary: Deja vu

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.