Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!cos!hadron!inco!alembic!csu From: csu@alembic.acs.com (Dave Mack) Newsgroups: comp.windows.x Subject: Re: Compiling X11R3pl2 on SunOS 4.0.3 with -DSUN_WINDOWS Keywords: 4.0.3 -DSUN_WINDOWS Possible? Will-X11R4-fix-it? Message-ID: <1989Dec23.162516.2338@alembic.acs.com> Date: 23 Dec 89 16:25:16 GMT References: <5239@tekig5.PEN.TEK.COM> Reply-To: csu@alembic.acs.com (Dave Mack) Organization: Alembic Computer Services, McLean VA Lines: 50 Uucp-Path: uunet!alembic!csu In article <5239@tekig5.PEN.TEK.COM> marc@tekig3.PEN.TEK.COM (Marc Frajola) writes: >Hi... > > I am trying to compile X11R3 on a Sun-4/330 running SunOS 4.0.3 for >the -DSUN_WINDOWS option. According some documentation that I read >somewhere, it said that compiling with -DSUN_WINDOWS in the server >would allow you to call up an X server inside of a Sunview window. > > In trying to do this, it appears that the X support for that option >was for pre-SunOS 4.x; when SUN_WINDOWS is defined, it tries to include >several include files from /usr/include/sunwindow, and those files >exist on my 3/60 running 3.4, but do not exist on my Sun-4 running >4.0.3 (like rect.h, rectlist.h, and win_screen.h). > > Has anybody been able to compile X11R3 with SUN_WINDOWS support? >If not, does anybody know how to do it? I have X11R3 compiled with UseSunWindowsInServer running on a 3/260 under 4.0, a 386i running 4.0.2, and a Sparcstation running 4.0.3c. I haven't had any significant problems building it, aside from the assorted optimizer glitches. I have fixes 1-10 and the Purdue 2.1 speedups installed, although I'm not sure that makes any difference. Make sure you have the following in your Sun.macros file: #define SunOSPlatform YES /* set to NO if not running SunOS */ #define OSName SunOS 4.0 #define OSMajorVersion 4 #define OSMinorVersion 0 and later: #define UseSunWindowsInServer YES If it still doesn't build, you should check to make sure your SunOS distribution is all there. And yes, it does allow you to run X on top of SunView, after a fashion. Start up SunView with just a shelltool running, then run xinit or xdm from inside it. SunView applications will execute correctly when invoked from an xterm or whatever, but since the two systems don't communicate about the screen state, you'll need to invoke the SunView application with a following call to xrefresh, like $ calctool; xrefresh Good luck. -- Dave Mack