In reply to a query about building on Irix some time back, I tried to
send this info for the archive.  It got stopped by a MIME block on the
list, sigh, and I've only just been able to deal with it.  The message
could be reconstructed by replacing these MIME headers I stripped from
the saved copy, but it should be usable asis:

 MIME-Version: 1.0
 Content-Type: multipart/mixed; boundary="Comirex-Kennedy-White-Water-Majic-military"

HTH.

---------

I got a previous beta working OK on Irix 6.5.  Unfortunately the
changes didn't get included and I'm not allowed to work on free
software in the lab, so we don't have a current version running on
Irix.  Here's what I sent previously, but I don't think it's enough
for the current version.

Assuming you use the n32 ABI, the first thing you need is to rebuild
configure with a recent autoconf (e.g. 2.59) to ensure linking against
the right X libraries (for both the viewer and server).


To: [EMAIL PROTECTED]
Subject: building 4.0beta3 server on Irix and Tru64
From: Dave Love <[EMAIL PROTECTED]>
Date: Fri, 01 Aug 2003 18:14:46 +0100
Message-ID: <[EMAIL PROTECTED]>
User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: multipart/mixed; 
boundary="Blowpipe-codes-Ft.-Meade-Aldergrove-Vickie-Weaver"

--Blowpipe-codes-Ft.-Meade-Aldergrove-Vickie-Weaver

FYI I managed to build a working xfree86 4.3.0 server successfully
using gcc 3.2 on Tru64 5.1B and Irix 6.5.19 using these changes.  It
also built on Solaris 8 with gcc 3.2, c.f. the viewer.  I'll
correspond with the xfree86 people about a couple of the changes.

(I don't know whether it's appropriate to post patches like this to
the mailing list for others' benefit.)


--Blowpipe-codes-Ft.-Meade-Aldergrove-Vickie-Weaver
Content-Type: text/x-patch
Content-Disposition: attachment; filename=diffs

Changes to build on Irix 6.5.19 and Tru64 5.1B.

--- config/cf/vnc.def   2003/07/30 11:58:59     1.1
+++ config/cf/vnc.def   2003/08/01 13:30:17
@@ -1,3 +1,4 @@
+#define BuildServer YES  /* not done on some platforms */
 #define BuildServersOnly YES
 #define BuildFonts NO
 #define BuildClients NO
@@ -13,6 +14,32 @@
 #define ProjectRoot /usr/openwin
 #define HasGcc2 YES
 #define BuildXKB NO
+#endif
+
+/* I needed to build with `gmake MAKE=gmake'.  Ignore the stream of warnings
+   from bad options linking Xvnc at the end.  */
+/* Fixme: Presumably this should be protected by a test for Irix, but
+   __sgi__ doesn't work for some reason.  */
+#ifdef MipsN32Architecture
+#define HasCplusplus YES
+#undef ProjectRoot
+#define ProjectRoot /usr
+#undef ExtraLoadFlags
+#define ExtraLoadFlags
+#define UsrLibDir /usr/lib32 /* Avoid -L/usr/lib, which loses with -n32.  */
+#define CplusplusCmd c++ /* gcc */
+#endif
+
+#ifdef ModernOSF1
+#undef ProjectRoot
+#define ProjectRoot /usr
+#define HasGcc2 YES /* needed for ldl_u in Xserver/cfb/cfbmskbits.h */
+#define LocalThreads 0   /* pthread.h barfs on gcc in Tru64 5.1B */
+#define HasCplusplus YES
+#undef OptimizedCDebugFlags
+#define OptimizedCDebugFlags   -O2
+#undef DefaultCCOptions
+#define CplusplusCmd c++
 #endif
 
 #define BuildVNCExt YES

Don't fail with Irix cc, for instance.
--- ./config/makedepend/main.c  2003/07/31 09:53:34     1.1
+++ ./config/makedepend/main.c  2003/07/31 09:53:50
@@ -59,7 +59,7 @@
 #ifdef DEBUG_DUMP
 #define DBG_PRINT(args...)   fprintf(args)
 #else
-#define DBG_PRINT(args...)   /* empty */
+#define DBG_PRINT(a,b,c)   /* empty */
 #endif
 
 #define DASH_INC_PRE    "#include \""

Fix undefined ldl_u at link time.
--- ./programs/Xserver/cfb/cfbmskbits.h 2003/07/30 19:21:45     1.1
+++ ./programs/Xserver/cfb/cfbmskbits.h 2003/08/01 11:56:32
@@ -823,6 +823,19 @@
     *(destpix) = (*(psrcpix)) & QuartetPixelMaskTable[q]; \
 }
 #else /* BITMAP_BIT_ORDER == LSB */
+
+#ifdef __alpha                 /* adapted from compiler.h */
+static __inline__ unsigned long ldl_u(unsigned int * r11)
+{
+# if defined(__GNUC__) && ((__GNUC__ > 2) || (__GNUC_MINOR__ >= 91))
+  struct __una_u32 { unsigned int x __attribute__((packed)); };
+  const struct __una_u32 *ptr = (const struct __una_u32 *) r11;
+  return ptr->x;
+# else
+#  error Need definition of ldl_u for non-GCC compiler.
+# endif
+}
+#endif
 
 /* this must load 32 bits worth; for most machines, thats an int */
 #define CfbFetchUnaligned(x)   ldl_u(x)

Fix filure on Irix.
--- ./programs/Xserver/cfb/cfbglblt8.c  2003/07/31 13:12:39     1.1
+++ ./programs/Xserver/cfb/cfbglblt8.c  2003/07/31 13:13:21
@@ -283,7 +283,7 @@
 #endif
     register glyphPointer   glyphBits;
     register int       xoff;
-#if defined(USE_LEFT_BITS) || (!defined(STIPPLE) && !defined(USE_STIPPLE_CODE))
+#if defined(USE_LEFTBITS) || (!defined(STIPPLE) && !defined(USE_STIPPLE_CODE))
     register CfbBits   *dst;
 #endif
 
@@ -291,7 +291,7 @@
     FontPtr            pfont = pGC->font;
     CfbBits            *dstLine;
     CfbBits            *pdstBase;
-#ifdef USE_LEFT_BITS
+#ifdef USE_LEFTBITS
     CARD32             *cTmp;
 #endif
     CARD32             *clips;


Fix failure to build, at least on tru64
--- ./programs/Xserver/xkb/Imakefile    2003/07/30 11:44:10     1.1
+++ ./programs/Xserver/xkb/Imakefile    2003/07/30 11:45:45
@@ -25,6 +25,8 @@
 
 XKB_DDXDEFS = XkbServerDefines
 
+XKBFILELIBSRC = ../../../lib/xkbfile
+
 #if XF86Server
 XF86INCLUDES = -I$(XF86COMSRC) -I$(XF86OSSRC)
    XF86_OBJS = xf86KillSrv.o xf86VT.o xf86Private.o

--Blowpipe-codes-Ft.-Meade-Aldergrove-Vickie-Weaver--
_______________________________________________
VNC-List mailing list
[EMAIL PROTECTED]
To remove yourself from the list visit:
http://www.realvnc.com/mailman/listinfo/vnc-list

Reply via email to