A patch for compiling VNC on HP-UX 9.0x

Yoshifumi R. Shimizu shimizu "at" phys.kyushu-u.ac.jp
Fri, 31 Jul 1998 04:51:52 +0000


Hi guys!

     Here I attached a patch for the source code tree in order to compile
on HP-UX 9.0x.   For the server (Xvnc) the changes are mainly in Imakefile
and some configuration files including the file, Xvnc/config/hp.cf, which
has been already mentioned in the contrib section of the vnc homepage;
no source code is changed.  For the viewer I supplied usleep() function
which is missing in HP-UX.  It came from the answer of the problem 12.6
in the famous book, "Advanced Programming in the Unix Environment" written
by W. Richard Stevens (Addison-Wsley Pub., 1992).  I'm not sure that all
these changes are really correct.  There is absolutely no guranttee to
succeed the compilation on your machines.  I have done it on my particular
environment which might be different from others.

     One thing I feel stange is that obtained Xvnc does not understand
the font path with sepator ',' (X usually requires), but seems to do with
separator ':'.   This strange behaviour is taken care of by changing the
perl script "vncserver" (see the content of diff-file attached).

Compiling environments:

(1) "imake" for HP-UX ver.9.0x (because one needs "xmkmf")
(2) "gcc" for HP-UX ver.9.0x (hopfully, gcc ver.2.7.2 or higher)

 Might be related, I have applyed some recent patchs for HP-UX ver.9.0x
 which are for the X windows system and kernels.

What to do:

 As is usual, apply a patch to the original source file.  The diff-file
 is attached, which is gzip+uudecoded.  Do something like:

  mkdir vnc-3.3.2
  cd vnc-3.3.2
  gtar xfz [(...path/)vnc-3.3.2_unixsrc.tgz]
  patch -p < diff_for_hpux9 (the following patch)

 After that, do as what is written in README file.

Or experienced user can easily change what should be changed by hand
if looking into the diff-file attached below.

    Good luck,                     YRS

------------------ cut here -------------------------------------
begin 644 diff_for_hpux9.gz
M'XL("%^*P#4``V1I9F9?9F]R7VAP=7 "at" Y`+59>5/;2A+_V_X4'>"E[/C0A0U6
MPBM\0'!BC`N9X%1M%26DL:V'+&DU$K'K9;_[]HPD2_*UWJU:"G3T]+3Z_$W/
M4*O5H"[T%_H;F5HV*=R[#MSK*Y`N0995Z5(];X+4:ET6*Y4*U.O"NV/4E+I2
MEX7LK'%(X%MH "at" WR)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C
H!PA;91/)3"`![[V;T835!VQ5SRXRL':LH_%J^F_JZ=]HM>B14!D``$Z#
`
end

---------------------------------------------------------------------
The VNC mailing list     -   see http://www.orl.co.uk/vnc/intouch.html
---------------------------------------------------------------------