From xemacs-m  Mon May 19 06:14:34 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 GAA19598
	for <xemacs-beta@xemacs.org>; Mon, 19 May 1997 06:14:32 -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 NAA07100 for <xemacs-beta@xemacs.org>; Mon, 19 May 1997 13:20:53 +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 NAA02079 for <xemacs-beta@xemacs.org>; Mon, 19 May 1997 13:14:35 +0200 (MET DST)
Received: from fornet.gvc.dec.com (fornet.gvc.dec.com [16.184.176.42]) by vbormc.vbo.dec.com (8.7.3/8.7) with SMTP id NAA27292 for <xemacs-beta@xemacs.org>; Mon, 19 May 1997 13:01:11 +0200
Received: by fornet.gvc.dec.com (5.65v3.2/1.1.10.5/09May97-0835AM)
	id AA18060; Mon, 19 May 1997 13:13:30 +0200
Date: Mon, 19 May 1997 13:13:30 +0200
Message-Id: <9705191113.AA18060@fornet.gvc.dec.com>
From: Steve Carney <carney@gvc.dec.com>
To: xemacs-beta@xemacs.org
Subject: XEmacs 20.3-b1 build mostly successful on Digital UNIX V4.0B
X-Mailer: VM 6.30 under 20.2 XEmacs Lucid (beta6)
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 noticed a couple of configure problems:

  -lcurses is found, but it is not included in the temacs link libraries.
  Without -lcurses, I get an ld error creating temacs:
    collect2: ld returned 1 exit status
    /usr/bin/ld:
    Unresolved:
    tputs
    tgetent
    tgetnum
    tgetstr
    tgetflag
  Here is relevant verbose output from configure:
    checking how to do terminal I/O
        Defining HAVE_TTY
    checking for termios.h... yes
        Defining HAVE_TERMIOS
    checking for tparm in -lncurses... no
    checking for tgoto in -ltermlib... yes
    checking for tgoto in -ltermcap... yes
    checking for tparm in -lcurses... yes
        Defining CURSES_H_PATH = "curses.h"
        Defining TERM_H_PATH = "term.h"
  I didn't try to fix the missing -lcurses problem.  Instead, I just
  edited the Makefile.

  Both libraries, dnet and dnet_stub were being included in the temacs
  link libraries.  So, I've removed the HAVE_LIBDNET brain damage from
  m/alpha.h (patch below).

The patch (below) to decosf3-1.h fixes the annoying HAVE_SELECT
warnings.  The patches to b2m.c and getloadavg.c clean up some
compilation warnings.

Hardware  : AlphaStation 600
OS        : Digital UNIX V4.0B (564)
Compiler  : gcc-2.7.2.2
Libraries : X11R6, Motif
XEmacs    : 20.3-b1 (full kit)

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

./configure  '--with-mule'

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

  Where should the build process find the source code?    /kits/install/xemacs/xemacs-20.3-b1
  What installation prefix should install use?		  /usr/local
  What operating system and machine description files should XEmacs use?
        `s/decosf4-0.h' and `m/alpha.h'
  What compiler should XEmacs be built with?              gcc  -g -O 
  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
  Where do we find X Windows header files?                /usr/dt/include 
  Where do we find X Windows libraries?                   /usr/dt/lib 
  Compiling in support for XAUTH.
  Compiling in support for GIF image conversion.
  Compiling in support for XPM images.
  Compiling in support for X-Face message headers.
  Compiling in support for JPEG image conversion.
  Compiling in support for PNG image conversion.
  Compiling in support for Berkeley DB.
  Compiling in support for GNU 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.


--- src/m/alpha.h.dist	Wed Dec 18 23:44:10 1996
+++ src/m/alpha.h	Mon May 19 12:03:11 1997
@@ -160,12 +160,6 @@
 
 #ifdef OSF1
 #define ORDINARY_LINK
-/* Some systems seem to have this, others don't.  */
-#ifdef HAVE_LIBDNET
-#define LIBS_MACHINE -ldnet
-#else
-#define LIBS_MACHINE -ldnet_stub
-#endif /* HAVE_LIBDNET */
 #endif /* OSF1 */
 
 #if 0 /* Rainer Schoepf <schoepf@uni-mainz.de> says this loses with X11R6
--- src/s/decosf3-1.h.dist	Sun May 18 05:41:12 1997
+++ src/s/decosf3-1.h	Mon May 19 09:27:02 1997
@@ -18,6 +18,8 @@
 /* XEmacs: from Stephen Carney <carney@gvc.dec.com> */
 
 /* #### why the hell is configure so broken on this system? */
-#define HAVE_SELECT
+#ifndef HAVE_SELECT
+#define HAVE_SELECT 1
+#endif
 
 #define BROKEN_SIGIO
--- lib-src/b2m.c.dist	Wed May 14 04:01:35 1997
+++ lib-src/b2m.c	Mon May 19 09:35:56 1997
@@ -19,6 +19,8 @@
    by Francesco Potorti` <pot@cnuce.cnr.it>. */
 
 #include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
 #include <time.h>
 #include <sys/types.h>
 #ifdef MSDOS
--- src/getloadavg.c.dist	Sun Jan 26 01:21:47 1997
+++ src/getloadavg.c	Mon May 19 11:38:38 1997
@@ -158,6 +158,9 @@
 
 #if defined (__osf__) && (defined (__alpha) || defined (__alpha__))
 #define OSF_ALPHA
+#include <netdb.h>
+#include <netinet/in.h>		/* Needed for Digital UNIX V3 */
+#include <net/proto_net.h>
 #include <sys/table.h>
 #endif
 

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

