[comp.windows.x] Compiling X11R3pl2 on SunOS 4.0.3 with -DSUN_WINDOWS

marc@tekig3.PEN.TEK.COM (Marc Frajola) (12/21/89)

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?

    If X11R4 allows SUN_WINDOWS under SunOS 4.0.3 or after, I can try
holding my user community off on SUN_WINDOWS until we have R4...

    Thanks in advance...

...Marc...
--
Marc Frajola, Tektronix Inc., Beaverton, OR
Phone: (503) 627-4340 (Tek) or (503) 643-5203 (Home)
InterNet-Style Address: marc@tekig3.PEN.TEK.COM
UUCP: ..!tektronix.TEK.COM!tekig3.PEN.TEK.COM!marc (Tek - Lab Scopes)
      ..!tektronix.TEK.COM!tessi.UUCP!escargot!marc (Home System e-mail)

rws@EXPO.LCS.MIT.EDU (Bob Scheifler) (12/21/89)

    If X11R4 allows SUN_WINDOWS under SunOS 4.0.3 or after, I can try
    holding my user community off on SUN_WINDOWS until we have R4...

Sun provided us with SUN_WINDOWS support code for R4.  I assume it
will work (we don't have SunView on our machines here :-).

tot@frend.fi (Teemu Torma) (12/22/89)

In article <5239@tekig5.PEN.TEK.COM> marc@tekig3.PEN.TEK.COM (Marc Frajola) writes:

       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 compiled X11R3 on 3/60, 386i and 4/60 (all running SunOS 4.0.x)
with -DSUN_WINDOWS without any problems. I have tested that it works
only in 3/60.

All include files you mentioned are present in all machines. Perhaps
you have not loaded optional sunview toolkits (Sunview developers
toolkit or whatever)?
--
Teemu Torma
Front End Oy, Helsinki, Finland
Internet: tot@nyse.frend.fi

csu@alembic.acs.com (Dave Mack) (12/24/89)

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