[Uim] Re: Cannot be compiled with GCC-3.4.3

Etsushi Kato ekato at ees.hokudai.ac.jp
Wed Mar 2 16:45:41 EET 2005


On Wed, Mar 02, 2005 at 10:09:41PM +0900,
"S.Daido" <satoru_daido at yahoo.co.jp> wrote:

> I tried to compile uim-0.4.6 with
> GCC-3.4.3 but it failed.
> The configure options I specified are
> '--with-qt --with-qt-immodule --prefix=/usr
>  --sysconfdir=/etc --with-x --disable-nls'.
> 
> The error messages:
[...]
> toolbar-common-quimhelpertoolbar.cpp:55: error: `_'
> undeclared (first use this function)
> toolbar-common-quimhelpertoolbar.cpp:55: error: (Each
> undeclared identifier is reported only once for each
> function it appears in.)

This seems a bug with --disable-nls option.
Please use following patch to qt/qtgettext.h.

Index: qtgettext.h
===================================================================
--- qtgettext.h (revision 740)
+++ qtgettext.h (working copy)
@@ -34,11 +34,11 @@
 #define _QT_GETTEXT_H_

 #include "uim/config.h"
+#include "uim/gettext.h"

 /* NLS can be disabled through the configure --disable-nls option.
 */
 #if ENABLE_NLS

-#include "uim/gettext.h"
 /* undef original _(String) macro for handling encoding */
 #ifdef _
 #undef _


Thanks,
-- 
Etsushi Kato
ekato at ees.hokudai.ac.jp



More information about the uim mailing list