PATCH: building VNC 4.0 on SUSE-based em64t platform

Jeff Boerio boerio "at" ichips.intel.com
Fri Oct 8 00:30:00 2004


Real VNC 4.0 will build on a SUSE-based 32-bit platform straight out of the box.

However, on the em64t platform, it will not.  Enclosed is the patches I
applied in order to get it to build.

I know that I set some of the following variables:  CFLAGS, CXXFLAGS,
LDFLAGS, and CXXLDFLAGS.  The value was set to -fPIC.  I can't remember 
which ones were necessary to get things going.  The build needed these, 
particularly for the Xregion, rdr, rfb, and network libraries, so make
sure this is included before you run configure.

My configure statement looked something like this:
./configure --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib64

Good luck,

     - Jeff

*** xc/programs/Xserver/vnc/Imakefile.orig	Tue Oct  5 14:52:21 2004
--- xc/programs/Xserver/vnc/Imakefile	Tue Oct  5 13:23:33 2004
***************
*** 1,6 ****
--- 1,8 ----
  XCOMM CDEBUGFLAGS = -g
  XCOMM CXXDEBUGFLAGS = -g
  
+   CDEBUGFLAGS = -g -fPIC
+ CXXDEBUGFLAGS = -g -fPIC
         VNCTOP = $(TOP)/..
     VNCINCLUDE = -I$(VNCTOP) -I$(VNCTOP)/vncconfig
  
*** xc/programs/Xserver/vnc/module/Imakefile.orig	Tue Oct  5 14:52:52 2004
--- xc/programs/Xserver/vnc/module/Imakefile	Tue Oct  5 13:24:22 2004
***************
*** 1,3 ****
--- 1,6 ----
+   CDEBUGFLAGS = -g -fPIC
+ CXXDEBUGFLAGS = -g -fPIC
+ 
  
         VNCTOP = $(TOP)/..
        VNCLIBS = VncExtLibs
*** xc/programs/Xserver/hw/xfree86/os-support/linux/lnx_io.orig	Tue Oct  5 14:53:38 2004
--- xc/programs/Xserver/hw/xfree86/os-support/linux/lnx_io.c	Tue Oct  5 11:48:05 2004
***************
*** 79,84 ****
--- 79,86 ----
  # endif
  #endif
  
+ #undef KDKBDREP
+ 
  static int
  KDKBDREP_ioctl_ok(int rate, int delay) {
  #if defined(KDKBDREP) && !defined(__sparc__)
*** xc/programs/Xserver/hw/xfree86/os-support/linux/lnx_kbd.orig	Tue Oct  5 14:53:54 2004
--- xc/programs/Xserver/hw/xfree86/os-support/linux/lnx_kbd.c	Tue Oct  5 11:48:21 2004
***************
*** 99,104 ****
--- 99,106 ----
  #include <asm/kbio.h>
  #endif
  
+ #undef KDKBDREP
+ 
  static int
  KDKBDREP_ioctl_ok(int rate, int delay) {
  #if defined(KDKBDREP) && !defined(__sparc__)