From xemacs-m  Thu Apr 17 12:15:37 1997
Received: from server21.digital.fr (server21.digital.fr [193.56.15.21])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id MAA03649
	for <xemacs-beta@xemacs.org>; Thu, 17 Apr 1997 12:15:34 -0500 (CDT)
Received: from mail.vbo.dec.com (mail.vbo.dec.com [16.36.208.34]) by server21.digital.fr (8.7.5/8.7) with ESMTP id TAA32123 for <xemacs-beta@xemacs.org>; Thu, 17 Apr 1997 19:21:18 +0200 (MET DST)
Received: from vbormc.vbo.dec.com (vbormc.vbo.dec.com [16.36.208.94]) by mail.vbo.dec.com (8.7.3/8.7) with ESMTP id TAA06855 for <xemacs-beta@xemacs.org>; Thu, 17 Apr 1997 19:15:35 +0200 (MET DST)
Received: from clusaz.gvc.dec.com ([16.184.176.21]) by vbormc.vbo.dec.com (8.7.3/8.7) with SMTP id TAA25256 for <xemacs-beta@xemacs.org>; Thu, 17 Apr 1997 19:04:15 +0200
Received: by clusaz.gvc.dec.com (5.65v3.2/1.1.10.5/04Jan97-0611PM)
	id AA11120; Thu, 17 Apr 1997 19:11:42 +0200
Date: Thu, 17 Apr 1997 19:11:42 +0200
Message-Id: <9704171711.AA11120@clusaz.gvc.dec.com>
From: Steve Carney <carney@gvc.dec.com>
To: xemacs-beta@xemacs.org
Subject: XEmacs 20.1final build success on Digital UNIX V4.0B
Reply-To: carney@gvc.dec.com
X-Face: (d*XRr}%:j,s*8+_o];-"-<<Sd1>H?Ds*>_vV}6DVjhNkjSRW0z^9[WBrbtMma>lyW6u>r(
 9U_m6J0kh7U=q?(h[7<YtS!Cu[Yl)D_XSCy5+tw>_2qr&4S=n|A*ScV]5BR{3]YXk$!,4l2vh9B]}&
 0p"&#\I

I tried to build 20.1 final on DUNIX4.0B, but ran into a few problems.
To build a static binary, I had to add file decosf4-0-static.h (weren't
the sources already updated with this file?) and make a few patches.

I don't know whether CDE and Tooltalk interfaces actually work, but it
builds fine and XEmacs comes up ok.

        Steve


New file src/s/decosf4-0-static.h
==================================

/* Synched up with: Not in FSF. */

#include "decosf4-0.h"

#ifdef NOT_C_CODE
/* This is to get rid of the definition that selects dynamic linking. */
#undef LD_SWITCH_CALL_SHARED
#ifdef USE_GCC
#define LD_SWITCH_CALL_SHARED -static -Xlinker -non_shared
#else
#define LD_SWITCH_CALL_SHARED -non_shared
#endif /* USE_GCC */
#endif /* NOT_C_CODE */


Patches
=======

--- src/s/decosf4-0.h.dist	Thu Jan 30 03:23:03 1997
+++ src/s/decosf4-0.h	Thu Apr 17 10:41:23 1997
@@ -30,3 +30,5 @@
 /* Digital Unix 4.0 has a realpath, but it's buggy.  And I
    *do* mean buggy. */
 #undef HAVE_REALPATH
+
+#define LIBS_DEBUG
--- src/Makefile.in.in.dist	Wed Apr 16 06:08:20 1997
+++ src/Makefile.in.in	Thu Apr 17 16:26:55 1997
@@ -760,7 +760,7 @@
 
 #ifdef TOOLTALK
 # define TOOLTALK_OBJS tooltalk.o
-# if (defined (IRIX5) || defined (HPUX) || defined (POWERPC) || defined (AIX4) || defined (LINUX))
+# if (defined (IRIX5) || defined (HPUX) || defined (POWERPC) || defined (AIX4) || defined (LINUX) || (defined (OSF1) && defined (DEC_ALPHA)))
 #  define LIB_TOOLTALK -ltt
 # else
 #  if (defined (SPARC) && !defined (USG))
@@ -781,7 +781,11 @@
 #endif /* !TOOLTALK */
 
 #ifdef HAVE_CDE
-#  define LIB_CDE -lDtSvc -ltt
+#  if (defined (OSF1) && defined (DEC_ALPHA))
+#    define LIB_CDE -lDtSvc -ltt -lcxx
+#  else
+#    define LIB_CDE -lDtSvc -ltt
+#  endif /* (defined (OSF1) && defined (DEC_ALPHA)) */
 #else
 #  define LIB_CDE
 #endif
--- src/tooltalk.c.dist	Sun Mar 16 04:06:43 1997
+++ src/tooltalk.c	Thu Apr 17 17:50:26 1997
@@ -177,7 +177,7 @@
     error ("printing unreadable object #<tooltalk_message 0x%x>",
 	   p->header.uid);
 
-  sprintf (buf, "#<tooltalk_message id:%d 0x%x>", (int) p->m, p->header.uid);
+  sprintf (buf, "#<tooltalk_message id:%d 0x%x>", p->m, p->header.uid);
   write_c_string (buf, printcharfun);
 }
 
@@ -253,7 +253,7 @@
     error ("printing unreadable object #<tooltalk_pattern 0x%x>",
 	   p->header.uid);
 
-  sprintf (buf, "#<tooltalk_pattern id:%d 0x%x>", (int) p->p, p->header.uid);
+  sprintf (buf, "#<tooltalk_pattern id:%d 0x%x>", p->p, p->header.uid);
   write_c_string (buf, printcharfun);
 }
 



Hardware  : DEC 3000-500
Compiler  : gcc-2.7.2
Libraries : X11R5, Motif
XEmacs    : 20.1 (full kit)

uname -a: OSF1 clusaz.gvc.dec.com V4.0 564 alpha

./configure  '--prefix=/usr/local/xemacs-20.1-distribution' '--bindir=/usr/local/xemacs-20.1-distribution/bin/alpha-dec-osf4.0' '--with-gcc=yes' '--cflags=-O4' '--dynamic=no' '--site-includes=/usr/local/include' '--site-libraries=/usr/local/lib' '--with-mule=yes' '--with-menubars=lucid' '--with-scrollbars=lucid' '--with-dialogs=motif' '--with-xpm' '--with-xface' '--with-sound=no' '--with-gif' '--with-png' '--with-jpeg' '--with-database=dbm'


Configured for `alpha-dec-osf4.0'.

  Where should the build process find the source code?    /kits/install/xemacs/xemacs-20.1
  What installation prefix should install use?		  /usr/local/xemacs-20.1-distribution
  What operating system and machine description files should XEmacs use?
        `s/decosf4-0-static.h' and `m/alpha.h'
  What compiler should XEmacs be built with?              gcc -O4
  Should XEmacs use the GNU version of malloc?            no
  (The GNU allocators don't work with this system configuration.)
  Should XEmacs use the relocating allocator for buffers? yes
  What window system should XEmacs use?                   x11
  Additional header files:                                /usr/local/include
  Additional libraries:                                   /usr/local/lib
  Compiling in support for XAUTH.
  Compiling in support for XPM.
  Compiling in support for X-Face headers.
  Compiling in support for GIF image conversion.
  Compiling in support for JPEG image conversion.
  Compiling in support for PNG image conversion.
  Compiling in support for DBM.
  Compiling in Mule (multi-lingual) support.
  Compiling in XIM (X11R5+ I18N input method) support.
    Using Motif to provide XIM support.
  Compiling in support for CDE.
  Compiling in support for ToolTalk.
  Using the Lucid menubar.
  Using the Lucid scrollbar.
  Using the Motif dialog boxes.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Steve Carney        TEL:[41](22)782.90.60  http://www-digital.cern.ch/carney/
carney@gvc.dec.com  FAX:[41](22)782.94.92 

