From xemacs-m  Mon Apr 14 01:12:58 1997
Received: from altair.xemacs.org (steve@xemacs.miranova.com [206.190.83.19])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id BAA07982
	for <xemacs-beta@xemacs.org>; Mon, 14 Apr 1997 01:12:57 -0500 (CDT)
Received: (from steve@localhost)
	by altair.xemacs.org (8.8.5/8.8.5) id XAA29647;
	Sun, 13 Apr 1997 23:25:45 -0700
Mail-Copies-To: never
To: xemacs-beta@xemacs.org
Subject: Re: bug report(xemacs-20.1 + Mule + Wnn crashes)
References: <9704140220.AA02100@hrs102.rs.kyoto.omronsoft.co.jp>
X-Url: http://www.miranova.com/%7Esteve/
X-Face: #!T9!#9s-3o8)*uHlX{Ug[xW7E7Wr!*L46-OxqMu\xz23v|R9q}lH?cRS{rCNe^'[`^sr5"
 f8*@r4ipO6Jl!:Ccq<xoV[Qz2u8<8-+Vwf2gzJ44lf_/y9OaQ`@#Q65{U4/TC)i2`~/M&QI$X>p:9I
 OSS'2{-)-4wBnVeg0S\O4Al@)uC[pD|+
X-Attribution: sb
From: Steven L Baur <steve@miranova.com>
In-Reply-To: -=-TSUTOMU NAKAMURA-=-'s message of Mon, 14 Apr 1997 11:14:33 +0900
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: multipart/mixed;
 boundary="Multipart_Sun_Apr_13_23:25:42_1997-1"
Content-Transfer-Encoding: 7bit
Date: 13 Apr 1997 23:25:42 -0700
Message-ID: <m2k9m6ruhl.fsf@altair.xemacs.org>
Lines: 107
X-Mailer: Gnus v5.4.45/XEmacs 20.1

--Multipart_Sun_Apr_13_23:25:42_1997-1
Content-Type: text/plain; charset=US-ASCII

(progn
  (require 'egg)
  (load-library "egg-wnn")
  (setq wnn-server-type 'jserver)
  (set-jserver-host-name "localhost"))

-  <-> writes:
(Excellent bug report by the way)
>  Wnn4 library uses alarm().  alarm() is defined in signal.c, and
> assert() terminates program.


The Wnn4 library has needed some maintenance.  A patch was previously
posted to address this problem.  20.1 MULE kit builders should
probably update their copy of Wnn.

--Multipart_Sun_Apr_13_23:25:42_1997-1
Content-Type: message/rfc822

X-From-Line: xemacs-beta-request@xemacs.org  Fri Apr  4 00:38:50 1997
Return-Path: <xemacs-beta-request@xemacs.org>
Received: from xemacs.org (xemacs.cs.uiuc.edu [128.174.252.16])
	by deanna.miranova.com (8.8.5/8.8.5) with ESMTP id AAA04589
	for <steve@miranova.com>; Fri, 4 Apr 1997 00:38:49 -0800
Received: (from xemacs-m@localhost)
	by xemacs.org (8.8.5/8.8.5) id CAA09221;
	Fri, 4 Apr 1997 02:37:31 -0600 (CST)
Resent-Date: Fri, 4 Apr 1997 02:37:31 -0600 (CST)
To: xemacs-beta@xemacs.org
Subject: Wnn SIGALRM problem (Was: Japanese input)
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: text/plain; charset=US-ASCII
From: Steve Dunham <dunham@dunham.tcimet.net>
Date: 04 Apr 1997 03:37:00 -0500
Message-ID: <m2hghnrxoe.fsf@dunham.tcimet.net>
X-Mailer: Gnus v5.4.37/XEmacs 20.1(beta10)
Resent-Message-ID: <"iBIgD.0.0G2.9tBHp"@xemacs>
Resent-From: xemacs-beta@xemacs.org
X-Mailing-List: <xemacs-beta@xemacs.org> archive/latest/6425
X-Loop: xemacs-beta@xemacs.org
Precedence: list
Resent-Sender: xemacs-beta-request@xemacs.org
Lines: 53
Xref: altair.xemacs.org xemacs-beta:556


I'm CC'ing a copy of this to the mailing list, just in case it's of
use to anyone else...

jhod@po.iijnet.or.jp (P. E. Jareth Hein) writes:
> Steve Dunham <dunham@dunham.tcimet.net> writes:

I got Wnn to compile, I just had to correctly set IMTOP in the
Project.tmpl file.  (I also disabled all the Chinese and Korean stuff
to make it compile faster.)

> Ya, egg-wnn-client is nolonger used (and will disapear probably next
> beta). What you need in your .emacs is something like

> (when (featurep 'wnn)
>   (require 'egg-wnn)
>   (setq egg-default-startup-file "eggrc-wnn"))

> and please make sure thats before you load .xemacs-options or call
> (set-language-environment 'japanese)

I just figured out the problem, (actually figured it out last night,
but there was an extra copy of libwnn.a hidden in /usr/lib/X11, so my
changes were never linked in).

The following patch to the stock Wnn4.2 will fix the SIGALRM problem.

Let me know if you figure out the disappearing text problem.


Steve
dunham@cps.msu.edu


--- Xsi.orig/Wnn/jlib/js.c      Thu Aug 18 21:30:29 1994
+++ Xsi/Wnn/jlib/js.c   Thu Apr  3 23:53:25 1997
@@ -290,15 +290,7 @@
        return -1 ;
     }
 
-    if (timeout != 0 && timeout > 0) {
-       signal(SIGALRM, connect_timeout);
-       alarm(timeout);
-    }
     ret = connect(sd, (caddr_t)&saddr_in, sizeof(saddr_in));
-    if (timeout != 0 && timeout > 0) {
-       alarm(0);
-       signal(SIGALRM, SIG_IGN);
-    }
     if (ret == ERROR) {
 #if DEBUG
        xerror("jslib:Can't connect Inet socket.\n");


-- 
steve@miranova.com baur
Unsolicited commercial e-mail will be billed at $250/message.

--Multipart_Sun_Apr_13_23:25:42_1997-1--

