From xemacs-m  Mon May 19 06:44:53 1997
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by xemacs.org (8.8.5/8.8.5) with SMTP id GAA19682
	for <xemacs-beta@xemacs.org>; Mon, 19 May 1997 06:44:52 -0500 (CDT)
Received: from Eng.Sun.COM ([129.146.1.25]) by mercury.Sun.COM (SMI-8.6/mail.byaddr) with SMTP id EAA12390; Mon, 19 May 1997 04:59:01 -0700
Received: from kindra.eng.sun.com by Eng.Sun.COM (SMI-8.6/SMI-5.3)
	id EAA07339; Mon, 19 May 1997 04:44:12 -0700
Received: from xemacs.eng.sun.com by kindra.eng.sun.com (SMI-8.6/SMI-SVR4)
	id EAA20619; Mon, 19 May 1997 04:44:11 -0700
Received: by xemacs.eng.sun.com (SMI-8.6/SMI-SVR4)
	id EAA12098; Mon, 19 May 1997 04:44:10 -0700
Date: Mon, 19 May 1997 04:44:10 -0700
Message-Id: <199705191144.EAA12098@xemacs.eng.sun.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
From: Martin Buchholz <mrb@Eng.Sun.COM>
To: carney@gvc.dec.com
Cc: xemacs-beta@xemacs.org
Subject: XEmacs 20.3-b1 build mostly successful on Digital UNIX V4.0B
In-Reply-To: <9705191113.AA18060@fornet.gvc.dec.com>
References: <9705191113.AA18060@fornet.gvc.dec.com>
X-Mailer: VM 6.31 under 20.2 XEmacs Lucid
Reply-To: Martin Buchholz <mrb@Eng.Sun.COM>

>>>>> "Steve" == Steve Carney <carney@gvc.dec.com> writes:

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

LIBS_TERMCAP does not seem to be defined by your s&m files.  I'd
really appreciate your trying to track down the error in the logic.
Does it try to add another (incorrect) library to the link line
instead?  tgetent is probably a better symbol to check for instead of
tparm.  Change in some forthcoming beta...

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

It's this kind of change to the s&m files that I had envisaged.  S&M
header files are evil, and we should over time move as much as we can
out of them into configure.in.  Maybe the net headers in your patch
should be autodetected instead??

Note that there is some --with-dnet code hacked into configure.in,
for the DEC platform, as usual completely untested by me.

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

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

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

Steve> ./configure  '--with-mule'

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

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


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

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


