[Uim] Re: What should be done until 0.4.6

Mike FABIAN mfabian at suse.de
Fri Jan 7 19:36:09 EET 2005


Etsushi Kato <ekato at ees.hokudai.ac.jp> さんは書きました:

> On Fri, Jan 07, 2005 at 01:06:28PM +0100,
> Mike FABIAN <mfabian at suse.de> wrote:
>
>> But uim-xim crashes for me in some locales, for example:
>
>> mfabian at magellan:~$ LANG=de_DE.UTF-8 uim-xim
>
>> セグメンテーション違反です (core dumped)
>> mfabian at magellan:~$ rpm -q uim
>> uim-0.4.5svn1650-4
>> mfabian at magellan:~$ 
>
> Maybe that revision has bug, sorry.  Please try latest snapshot.

I tried latest snapshot now.

First problem:

The strace shows that the plugin libraries are searched in
/usr/lib64/uim/plugin/ and the plugin .scm files in /usr/share/uim/plugin:

    open("/usr/lib64/uim/plugin/libuim-anthy.so", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/home/mfabian/.uim.d/plugin/anthy.scm", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/share/uim/plugin/anthy.scm", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/home/mfabian/.uim.d/plugin/libuim-canna.so", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/lib64/uim/plugin/libuim-canna.so", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/home/mfabian/.uim.d/plugin/canna.scm", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/share/uim/plugin/canna.scm", O_RDONLY) = -1 ENOENT (No such file or directory)

but they cannot be found because they are actually installed in
/usr/lib64/ and the .scm files in /usr/share/uim.

As a workaround, I moved these files in my uim.spec file in the
%install section:

    mkdir -p $RPM_BUILD_ROOT/%{_libdir}/uim/plugin
    mv $RPM_BUILD_ROOT/%{_libdir}/libuim-*.* $RPM_BUILD_ROOT/%{_libdir}/uim/plugin
    mkdir -p $RPM_BUILD_ROOT/usr/share/uim/plugin
    mv $RPM_BUILD_ROOT/usr/share/uim/{anthy,canna}.scm $RPM_BUILD_ROOT/usr/share/uim/plugin

Now the plugins are found but uim-xim immediately crashes:

    mfabian at magellan:/tmp$ uim-xim --list
    UIM-XIM bridge. Now supporting multiple locales.
    load /usr/lib64/uim/plugin/libuim-anthy.so
    plugin init
    plugin scm init
    セグメンテーション違反です (core dumped)
    mfabian at magellan:/tmp$


(ja_JP.UTF-8 locale, but that doesn't seem to matter).


So far I tested only on an x86_64 machine, i.e. this might be a 64 bit
problem.

-- 
Mike FABIAN   <mfabian at suse.de>   http://www.suse.de/~mfabian
睡眠不足はいい仕事の敵だ。



More information about the uim mailing list