From: Araki K. <j00...@ip...> - 2002-02-04 16:34:41
|
Hi, Subject: Re: [Mlterm-dev-en] 2.2.0 segfault From: MINAMI Hirokazu <mi...@ch...> Message-ID: <200...@ch...> Date: Mon, 4 Feb 2002 14:18:19 +0900 > FYI, gtk+1.2 seems to be using the same workaround. > > from config.in of gtk+ 1.2.10: >> # On Solaris, calling XRegisterIMInstantiateCallback seems to >> # cause an immediate segfault, so we disable it, unless >> # the user specifically forces it to be on. >> if test x$enable_xim_inst = xmaybe ; then >> case host in >> *-*-solaris*) >> enable_xim_inst="no" >> ;; >> *) >> enable_xim_inst="yes" >> ;; >> esac >> fi >> >> if test "x$enable_xim" = "xyes"; then >> GTK_XIM_FLAGS="-DUSE_XIM" >> if test "x$enable_xim_inst" = "xyes"; then >> AC_DEFINE(USE_X11R6_XIM) >> fi >> fi > > # Does it mean openwin have a non-X11R6 version of XRegisterIMInstantiateCallback? Thanks:) I should have searched google with Solaris + XRegisterIMInstantiateCallback keywords. I could find similar problems. I wrote a patch for avoiding calling XRegisterIMIntantiateCallback on sunos. Please test an attached patch(for CVS current). Of cource , even if XRegisterIMInstatiateCallback is not called , you can use XIM. -- kiken j00...@ip... Index: ml_xim.c =================================================================== RCS file: /home/ken/cvsroot/mlterm/src/ml_xim.c,v retrieving revision 1.67 diff -u -r1.67 ml_xim.c --- ml_xim.c 2002/02/03 07:53:06 1.67 +++ ml_xim.c 2002/02/04 16:14:42 @@ -331,9 +331,15 @@ } } + /* + * XXX + * XRegisterIMInstantiateCallback of sunos/openwin seems buggy. + */ +#if ! defined(sun) && ! defined(__sun__) && ! defined(__sun) XRegisterIMInstantiateCallback( xim_display , NULL , NULL , NULL , xim_server_instantiated , NULL) ; - +#endif + return 1 ; } |