RealVNC 4.1.2 + Solaris 10

John Cecere John.Cecere "at" Sun.COM
Wed Mar 14 14:28:00 2007


Several weeks ago I posed a question to this alias asking if anyone had any tips on building the server from RealVNC 4.1.2 on
Solaris 10 x86. I didn't receive any response, so I assume there's not a lot of information out there about it. At this point, I
have successfully built 4.1.2 on both Solaris 10 x86 and SPARC. In case anyone else is interested, here's how I did it.

Software used:

RealVNC 4.1.2
XFree86 4.3 (first three tar files only)
gcc 3.4.3




SPARC
------------------------------
Building for SPARC has always been fairly simple. First build the client stuff:

PATH=/usr/bin:/usr/sbin:/sbin:/usr/ccs/bin:/usr/sfw/bin
CC=gcc; export CC
CXX=g++; export CXX

cd unix
./configure
make

Then, for the server, follow the instructions on unpacking and patching the XFree86 source code. You'll also need to perform one
minor hack to the source. You'll need to delete lines 111 through 115 of unix/xc/include/Xalloca.h.

Then just run 'Make World'

The Xvnc server will be build in the unix/xc/programs/Xserver directory


x86
---------------------------------------

Follow all the instructions for SPARC, including the Xalloca.h hack.

In addition, uncomment the following from unix/xc/config/cf/xf86site.def:

#define XF86Server      NO
#define XnestServer     NO
#define XVirtualFramebufferServer   NO
#define XprtServer NO
#define BuildServersOnly    YES
#define BuildXInputExt      NO

then run 'Make World' in unix/xc


One note about this. A new bug was introduced in version -36 of the kernel update patch (118833 for SPARC, 118855 for x86) that will 
cause the build to fail on systems that weren't originally installed with Solaris 10u3:

http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6531166

Using an older version of /usr/include/rpc/svc.h will work around this problem.


hth,
John







-- 
John Cecere
Sun Microsystems
732-302-3922 / john.cecere "at" sun.com