Bug#492539: Acknowledgement (Egg cannot connect to jserver if egg is running on an amd64 system.)

2008-08-02 Thread kumon

It can be fixed by changing the conversion format of the comm-unpack
from 'u' to 'i', as follows:

--- /usr/share/emacs/site-lisp/egg/egg/wnnrpc.el2007-05-24 
14:25:39.0 +0900
+++ /tmp/wnnrpc.el  2008-08-03 00:04:16.0 +0900
@@ -715,10 +715,10 @@
 
 (defmacro wnnrpc-get-result (rest body)
   `(let (result)
- (comm-unpack (u) result)
+ (comm-unpack (i) result)
  (if ( result 0)
(progn
-(comm-unpack (u) result)
+(comm-unpack (i) result)
 (- result))
  ,@(or body '(result)
 



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#492539: Egg cannot connect to jserver if egg is running on an amd64 system.

2008-07-26 Thread kumon
Package: egg
Version: 4.0.6+0.20041122cvs-11
Severity: grave
Justification: renders package unusable

Egg doesn't work on amd64 system.

I shortly investigate and found the following facts:

wnn-open fails because wnnrpc-open fails.

wnnrpc-open should try several protocols with the server for
negotiation, but actually it tries only Wnn8 then fails.

I don't investigate the details but, at least, wnnrpc-get-result has
bug.

The following code shows the problem:

(defmacro wnnrpc-get-result (rest body)
  `(let (result)
 (comm-unpack (u) result)
 (if ( result 0)
   (progn
 (comm-unpack (u) result)
 (- result))
 ,@(or body '(result)

comm-unpack converts the contents of the communication buffer to the
lisp objects. In this case, u conversion means 32bit unsigned
integer. Thus it never becomes negative, but the code expected that.


If the system is 32bit integer, the number may become negative, but
amd64 has longer width, perhaps this may cause the problems.



-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.24-1-amd64
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages egg depends on:
ii  emacs21   21.4a+1-3etch1 The GNU Emacs editor
ii  emacs22   22.2+2-3   The GNU Emacs editor
ii  make  3.81-2 The GNU version of the make util

egg recommends no packages.

-- no debconf information

--
K.Kumon




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]