From: Araki K. <j00...@ip...> - 2002-02-03 07:35:17
|
Hi, Subject: Re: [Mlterm-dev-en] 2.2.0 segfault From: Noah Levitt <nl...@co...> Message-ID: <200...@co...> Date: Sat, 2 Feb 2002 19:28:09 -0500 >> Would you show me your XMODIFIERS and LC_CTYPE environmental variables ? > > XMODIFIERS is unset. LC_CTYPE is normally "en_US.UTF-8", but I > get the same result even when it's "C". I tried with LC_CTYPE=en_US.UTF-8 and XMODIFIERS not set on NetBSD 1.5ZA / XFree86 4.1.0 , but I couldn't see such a problem , though I think these variables are all that are related to XIM. > Until recently I was using a version I had checked out of > cvs (maybe 3 weeks ago), and it worked. Hmmm , I hardly touched ml_xim.c ml_xic.c from 2001/12/25 , especially around XRegisterIMInstantiateCallback. I wonder where I did something wrong.... > I noticed that I get these warnings when I compile (checked > out from cvs Sat Feb 2 19:17:25 EST 2002, unpatched): > > ml_xim.c: In function `xim_server_destroyed': > ml_xim.c:96: warning: passing arg 5 of `XRegisterIMInstantiateCallback' from inc > ompatible pointer type > ml_xim.c: In function `open_xim': > ml_xim.c:142: warning: initialization from incompatible pointer type > ml_xim.c: In function `ml_xim_init': > ml_xim.c:328: warning: passing arg 5 of `XRegisterIMInstantiateCallback' from in > compatible pointer type > ml_xim.c: In function `ml_xim_final': > ml_xim.c:349: warning: passing arg 5 of `XUnregisterIMInstantiateCallback' from incompatible pointer type Thanks. In my /usr/X11R6/include/Xlib.h XRegisterIMInstantiateCallback is defined as follows and I get no warning messages. ---- Xlib.h typedef void (*XIDProc)( #if NeedFunctionPrototypes Display*, XPointer, XPointer #endif ); ... extern Bool XRegisterIMInstantiateCallback( #if NeedFunctionPrototypes Display* /* dpy */, struct _XrmHashBucketRec* /* rdb */, char* /* res_name */, char* /* res_class */, XIDProc /* callback */, XPointer /* client_data */ #endif ); ---- Xlib.h Prototype of mlterm's callback function(XIDProc) is like this. ---- ml_xim.c static void xim_server_instantiated( Display * display , XPointer client_data , XPointer call_data ) ---- ml_xim.c XRegisterIMInstantiateCallback and XIDProc prototypes of your system cannot be different from mine , but I have no idea why such warning messages were output. To make sure , would you show me their prototypes in your Xlib.h ? -- kiken j00...@ip... |