vncserver error message: unknown encoding type 3

Karl Heinz Kremer khk "at" kodak.com
Wed, 04 Mar 1998 07:09:08 +0000


Brett M Hogden wrote:
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> 
> I recently retrieved vnc-3.3.1_unixsrc and compiled those sources on a
> box running SunOS 4.1.4 and X11R6.3.  Additionally, I retrieved
> vnc-3.3.1_x86_win32.
> 
> The vncviewer running on the Sun seems to work just fine in
> conjunction with a vncserver running in both Win'95 and NT.  However,
> I've had problems getting things to work in the other, more preferred,
> direction.
> 
[ ... X.log deleted ... ]


Brett,

did you get a "... read failed" error message from the viewer?
If this is the case, then you are having the same problem I had
until half an hour ago... However, I did not see the "unknown
encoding type 3" message in the log file.

This is what I did:

I'm using SunOS4.1.3_U1 Rev. B (which should be pretty much the same
as 4.1.4) with X11R6.3 to compile the software. It is important to use
the X11R6 versions of xmkmf and imake, otherwise the make will choke on 
the Xcomment lines in the makefiles.

Then I had add a missing "#include" statment in .../vnc/auth.c:

*** Xvnc/programs/Xserver/hw/vnc/auth.c Fri Feb 27 11:51:45 1998
--- Xvnc/programs/Xserver/hw/vnc/auth.c~        Wed Jan 21 19:12:44 1998
***************
*** 26,32 ****
  
  #include <stdio.h>
  #include <stdlib.h>
- #include <sys/types.h>
  #include <netinet/in.h>
  #include "windowstr.h"
  #include "rfb.h"
--- 26,31 ----



With this change the server did compile, but gave me those read errors on 
the client after a random amount of time (and of course I was lucky the first
time I run it, so I assumed that it's working...). 

Karl Hakimian's patch for HPs did cure this problem. Here's the patch again:

-- Cut here for patch --
*** hw/vnc/sockets.c.orig       Wed Jan 21 10:12:46 1998
--- hw/vnc/sockets.c    Tue Mar  3 10:43:50 1998
***************
*** 389,395 ****
            exit(1);
  
        } else {
!           if (errno != EWOULDBLOCK) {
                return n;
            }
  
--- 389,395 ----
            exit(1);
  
        } else {
!           if (errno != EWOULDBLOCK && errno != EAGAIN) {
                return n;
            }
  
-- Cut here for patch --

I used VNC for about 10 minutes (which is longer than it ever run
in the past on SunOS), so I'm pretty confident that it's working.

Let me know if it works for you,

Karl Heinz

-- 
Karl Heinz Kremer     http://sig.ag01.kodak.com       Kodak AG
FAX: +49.7335.12 7271              Telephone: +49.7335.12 7673
KNET/KMX: 631 7673                        PROFS: (KOKAG) K2080
Email: khk "at" Kodak.COM                Private: khk "at" cyberdude.com