gpa compiling issues?

Miguel Coca mcoca@gnu.org
Sat Feb 1 19:18:01 2003


--YiEDa0DAkWCtVeE4
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Feb 01, 2003 at 12:45:44 -0500, Seele Varcuzzo wrote:=20
> hi, im having problems compiling 0.6.x

Does this happen with 0.6.1 too?

I had similar reports from people compiling for Solaris, but it seems
to have gone away in 0.6.1.

> dcigettext.c: In function `plural_lookup':
> dcigettext.c:993: called object is not a function

I know the bug, it's in the included gettext code and (in Solaris) it
was caused by a chain of bad luck in the portability defines.

Basically, the tests are not finding strchr(), so a define is
replacing it with index, which happens to be a variable name in that
function, causing the error you saw.

> any ideas?  im using gcc 3.2.1 on FreeBSD RELENG_5_0

As a quick and dirty fix, add this at some point near the top of
intl/dcigettext.c:

#define HAVE_STRCHR 1

Maybe someone with more experience in gettext in general can tell us
why this happens?

Thanks,
--=20
Miguel Coca (mcoca@gnu.org)                http://zipi.fi.upm.es/~e970095/
       OpenPGP: E60A CBF4 5C6F 914E B6C1  C402 8C4D C7B6 27FC 3CA8

--YiEDa0DAkWCtVeE4
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+PA+AjE3Htif8PKgRAu7YAJ9ohgnboD9SqyZUAphX7uhij7qgVgCcCgqu
ZUfbmvJEThg1moIbh2e+XuY=
=i8j/
-----END PGP SIGNATURE-----

--YiEDa0DAkWCtVeE4--