From: jch@jch_sun.cs.adfa.oz.au (Jeff Howard)
Subject: Re. Motif 1.1.4 and X11R5
Followup-To: comp.windows.x.motif
Keywords: OSF Motif 1.1.4 X11R5
Reply-To: j-howard@adfa.oz.au
Organization: Australian Defence Force Academy
Date: Thu, 30 Jul 1992 00:43:35 GMT


--
In response to my article <1992Jul23.044948.11041@sserve.cc.adfa.oz.au> in
the comp.windows.x and comp.windows.x.motif news I recieved a number of 
replies with a few different angles. I am sending this mail by way of thanks 
to those that sent information and help to those that asked for any info. I 
recieved. I am also posting to the news as 5 out of 8 replies seemed unsure
of what could be done and this may indicate a much larger number who might
be interested.

To those who made the comment that I did not actually state what was the
problem, true. I was fishing along the more general 'can it be done?' line
of enquiry to start with.

Of the 8 replies I have at the time of writing the score for building Motif
1.1.4 under X11R5 is :-
	Easy, what problems are you having?	2
	Shouldn't be a problem			1
	Can't be done, or having trouble	3
	Send me any info. you get		2

The rest of this item is aimed at those interested in how I have made OSF/Motif
1.1.4 for X11R5 under SunOS 4.1.2 (cheers Paul) running on a Sun4.
The successful combination (probably a subset of the following) was 

	i)   Recompiled the X and Xt libraries with the MotifBC flag defined.
	This was mentioned in the R5 notes. Peter Scott 
	(pjs@euclid.jpl.nasa.gov)tells me this is unnecessary, however, I had 
	already done it and they remain installed. Paul (grue@engin.umich.edu) 
	did use MOTIFBC, and had not trouble with the build.

	ii)  Compile using gcc. I was using cc, but it did not pick up the
	inconsistency pointed out in (v) below. I did not alter the compiler
	flags indicated in the config files.

	iii) Use the basic config files supplied with the OSF/Motif sources,
	rather than those installed on the machine you are building. I
	modified only the site.cf and Project.tmpl files as appropriate for
	out site. This was also pointed to by David B. Lewis (dbl@osf.org).

	iv)  X11R5 at patch level 10 installed. I have not applied the patches
	that appeared recently, hopefully it won't change things. Peter
	Scott indicated that patch level 9 might be sufficient.

	v)   I found an inconsistancy with the way X11R5 was installed
	whereby the Xlib.h file made a typedef for wchar_t as an unsigned long 
	char, whereas the local sys/stdtypes.h defined it as an unsigned short
	char. Not a good thing, so I changed the Xlib.h file.

	v)   make World ...

At this stage I have travelled half way through the test suite. I have found
a couple of inconsistencies but I have not looked into this further. I have
been using mwm for several days now and it seems very stable.

Hope this helps. Cheers.
 
------------------------------------------------------------------------------
Jeff Howard, Programmer.                      Deptartment of Computer Science,
ARNet: j-howard@adfa.oz.au                   Australian Defence Force Academy, 
Ph: [Int.:(+61 6) Nat.:(06)] 268 8048                Northcott Dve., Campbell,
Fax: [(+61 6)|(06)] 268 8581                   Canberra, ACT, Australia, 2602.
Newsgroups: comp.windows.x.motif