From xemacs-m  Tue Mar 11 20:12:22 1997
Received: from hexadecimal.uoregon.edu (hexadecimal.uoregon.edu [128.223.32.56])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id UAA01001
	for <xemacs-beta@xemacs.org>; Tue, 11 Mar 1997 20:12:21 -0600 (CST)
Received: (from stevev@localhost)
	by hexadecimal.uoregon.edu (8.8.5/8.8.5) id SAA10090;
	Tue, 11 Mar 1997 18:12:23 -0800 (PST)
Date: Tue, 11 Mar 1997 18:12:23 -0800 (PST)
Message-Id: <199703120212.SAA10090@hexadecimal.uoregon.edu>
From: Steve VanDevender <stevev@hexadecimal.uoregon.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
To: xemacs-beta@xemacs.org
Subject: 19.15beta98 compilation problem in Digital UNIX

XEmacs 19.15beta98 doesn't compile out of the box under Digital UNIX
4.0B using gcc 2.7.2.1, configured with "./configure --cflags=-O2".  The
compilation fails at line 943 of src/console.c with an error in:

    sys_suspend_process(XINT(Fconsole_tty_controlling_process(console)));

The problem seems to be that Fconsole_tty_controlling_process() is not
explicitly declared extern, and compilation fails because the implicit
assumption that it returns int isn't compatible with XINT's expectation
of a Lisp_Object argument.  I was able to get XEmacs to compile and work
with the patch below (not claiming it should necessarily be the official
fix).

Otherwise XEmacs 19.15beta98 looks very slick and is behaving well.

diff -u -r1.1 src/console.c
--- 1.1 1997/03/12 01:00:28
+++ src/console.c       1997/03/12 01:36:05
@@ -921,6 +921,7 @@
   Lisp_Object framecons;
   struct console *c;
   struct gcpro gcpro1;
+  extern Lisp_Object Fconsole_tty_controlling_process();
 
   if (NILP (console))
       console=Fselected_console();

