Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!sun-barr!newstop!sun!kimba!hvr From: hvr@kimba.Sun.COM (Heather Rose) Newsgroups: comp.windows.x Subject: Re: XView patch 2 (and a patch1 in "patch" format) now on expo Message-ID: <132266@sun.Eng.Sun.COM> Date: 27 Feb 90 02:57:59 GMT References: <9002142102.AA10525@kimba.Eng.Sun.COM> <22141@pasteur.Berkeley.EDU> Sender: news@sun.Eng.Sun.COM Reply-To: hvr@sun.UUCP (Heather Rose) Organization: Sun Microsystems, Mountain View Lines: 44 In article <22141@pasteur.Berkeley.EDU> stolcke@icsi.Berkeley.EDU (Andreas Stolcke) writes: >In article <9002142102.AA10525@kimba.Eng.Sun.COM>, hvr@eng.sun.COM >(Heather Rose) writes: >> XView patch2 fixes some problems with the build of XView shared libraries, >> debugged libraries, profiled libraries, and lint libraries. Also, has >> better instructions in the README file, and the base Imakefile for the >> World option. Some minor changes were made to the library source to >> compile on SunOS 3.5, and delete duplicate include files in some .c files. >> > >So far so good. One of the problems with SunOS3.5 is that the organization >of the pixrect header files seems to be slightly different from SunOS4.0. >Consequently, compiling XView fails because certain #define's and external's >are not #include'd (although they are there somewhere in >/usr/include/pixrect, just not in the files that were included, directly >or indirectly). > >Of course one could install the pixrect headers from the >XView distribution, but that would not only waste space, it also leaves you >with two different version of essentially the same thing installed on your >system, which is confusing at best. > >Any suggestions from the Sun (or other) people? I suggest adding a compile time flag such as -DXVIEW_PIXRECT, then the source files would look like: #ifdef XVIEW_PIXRECT #include #else #include #endif This does get around most of the problems...anyway, unless we can think of a better solution, I'll do this for the next major release of the source due out sometime this summer. Or perhaps we need to re-order the files and add a flag for each version of SunOS when order matters... The header files for Pixrect have changed again for SunOS 4.1, so we need to do something that will work for both 3.5 and 4.1 as well as 4.0.x... Regards, Heather