[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gettext - and aspell
From: |
Mads Martin Joergensen |
Subject: |
Re: gettext - and aspell |
Date: |
Mon, 4 Apr 2005 20:57:51 +0200 |
User-agent: |
Mutt/1.5.9i |
* Bruno Haible <address@hidden> [Apr 04. 2005 20:53]:
> Mads Martin Joergensen wrote:
> > Casting pointers to int is a bad idea on many 64-bit systems since int
> > is 32-bit.
>
> Did you have a problem (error, failure or so) with the existing code?
> If so, which one, and under which conditions (`uname -a`,
> `echo $CC $CPPFLAGS $CFLAGS`)?
>
> > Here's a patch (agian 0.14.3) to correct this.
>
> Thanks, but the patch looks like a nop, since the affected code is inside
> an AC_TRY_LINK, i.e. it is never executed.
It's with gcc-4 on x86_64, and with the above patch (also inside
archives.tar.gz) it now works and compiles. The one triggering was
aspell.
conftest.cc: In function 'int main()':
conftest.cc:35: error: cast from 'char*' to 'int' loses precision
configure:20850: $? = 1
The line in question:
| return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
--
Mads Martin Joergensen, http://mmj.dk
"Why make things difficult, when it is possible to make them cryptic
and totally illogical, with just a little bit more effort?"
-- A. P. J.