Subject: Re: gettext broken on IRIX
To: Jeremy C. Reed <reed@reedmedia.net>
From: Stuart Shelton <stuart@zeus.com>
List: tech-pkg
Date: 08/10/2005 19:35:12
On Wed, 2005-08-10 at 08:19 -0700, Jeremy C. Reed wrote:
> gettext-0.11.5 is old; it is three years old. I have been using 0.14.x on 
> my NetBSD and Linux systems for over a year.

I've installed pkgsrc-wip and tried the latest 0.14.5 release of
gettext, and unfortunately it's worse!

There are now 7 (rather than 6 ;) errors: "There are not enough
arguments in a macro invocation" ERRORs on lines 458, 487, 497, 522,
847, 955, and 961 of po-lex.c

These all seem to be due to the po_gram_error macro, which (from looking
at po-lex.h) seems to be a little hairy...

Just as the (broken?) macro definitons aren't used if DEC_CC is set,
could a maintainer also add "SGI_CC" to the list of compiler suites
which don't like the syntax in po-lex.{h,c}?

Update: Even with this change, the linker aborts because it can't find
the symbols "libintl_bindtextdomain", "linintl_textdomain",
"libintl_gettext", "po_gram_error_at_line" (due to the header change to
declare it "extern") and "libintl_ngettext" - I guess a "-lintl" is
needed?

Update: Removed the "#if !(defined __STDC__ )..." statements from
po-lex.c and po-lex.h, and resolved the po_gram_error* ERRORs, but I'm
still stuck in that the symbols
libintl_{bindtextdomain,textdomain,gettext,ngettext} are all
unresolvable.

Any ideas?  We must be almost there now...

Cheers,

	Stuart