Dominique Pelle wrote:

> I notice that I cannot compile latest Vim-7.2.166 with +hangul_input
> feature on Linux x86.
> 
> In ":help hangul" it says to configure Vim as follows:
> 
> ./configure --with-x --enable-multibyte --enable-fontset --enable-hangulinput
> 
> But when doing that, I get a link error when trying to link Vim:
> 
>   objects/gui.o: In function `gui_update_cursor':
>   /tmp/vim7/src/gui.c:964: undefined reference to `preedit_get_status'
> 
> The code in src/gui.c around line 964 is:
> 
>  957 #if defined(USE_IM_CONTROL) || defined(FEAT_HANGULIN)
>  958             {
>  959                 static int iid;
>  960                 guicolor_T fg, bg;
>  961
>  962                 if (
>  963 # ifdef HAVE_GTK2
> !964                         preedit_get_status()
>  965 # else
>  966                         im_get_status()
>  967 # endif
>  968                         )
>  969                 {
> 
> preedit_get_status() is defined in mbyte.c in between
> #if defined(FEAT_XIM)... #endif, whereas call to the function
> in gui.c is in between #if defined(FEAT_HANGULIN), which is
> inconsistent.
> 
> Looking at history of gui.c in CVS, I see that the problem was
> introduced in CVS tag 7.2b-000.  Tag before that (7.2a-19)
> builds fine with +hangul_input feature.  Several changes were
> introduced in tag 7.2b-000 simultaneously but looking at
> ":help version-7.2", it is most certainly this change which
> breaks linking:
> 
>   Solution for cursor color not reflecting IM status for GTK 2.  Add
>   preedit_is_active flag. (SungHyun Nam)

I suppose this can be fixed with another #ifdef.  I'll put it in my todo
list, but hopefully someone can send me a patch.  I just installed a new
OS and my "test various combinations of features" script produces too
much noise.  I need to fix this before working on other patches.

-- 
Sorry, no fortune today.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui