[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug#451921: Possibly erroneous (at least non-portable) macro(s) in g
From: |
Bruno Haible |
Subject: |
Re: Bug#451921: Possibly erroneous (at least non-portable) macro(s) in gettext.m4 (fwd) |
Date: |
Mon, 26 Nov 2007 14:36:39 +0100 |
User-agent: |
KMail/1.5.4 |
Cyril Brulebois wrote via Santiago Vila:
> there was an error when trying to compile and link against gettext on
> 64-bit architectures:
> | #include <libintl.h>
> | extern int _nl_msg_cat_cntr;
> | extern int *_nl_domain_bindings;
> | int
> | main ()
> | {
> | bindtextdomain ("", "");
> | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
> | ;
> | return 0;
> | }
>
> which results in ÿÿerror: cast from 'char*' to 'int' loses precisionÿÿ
> when trying:
> g++ -o conftest -DNDEBUG -Wno-deprecated -O2 -W -Wall
> -Wno-unused-parameter conftest.cpp
Thanks for reporting this; it is already fixed in gettext 0.14.4 or newer.
The problem occurred inside 'synfigstudio'; you can tell the maintainers
of that package that the error will go away if they run gettextize from
a gettext version >= 0.14.5.
Bruno