Bug#451921: Possibly erroneous (at least non-portable) macro(s) in gettext.m4 (fwd)

Bruno Haible bruno at clisp.org
Mon Nov 26 13:36:39 UTC 2007


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





More information about the pkg-synfig-devel mailing list