Subject: Re: gnome package building problem with xml-i18n-merge
To: None <current-users@netbsd.org>
From: Olaf Seibert <rhialto@polderland.nl>
List: current-users
Date: 11/11/2001 17:44:40
On Sun 11 Nov 2001 at 16:13:19 +0100, Olaf Seibert wrote:
> I've been building an enormous bunch of gnome packages (because I am
> doing a make update in devel/gindent), and I keep seeing messages
> like the following:

and now the build has stopped (after many hours of working) and I am stuck:

gmake[2]: Entering directory `/home/tmp/www/gtkhtml/work.alpha/gtkhtml-0.14.0/po'
XML_I18N_EXTRACT=../xml-i18n-extract ../xml-i18n-update --pot
Error in option spec: "help|h|?"
Error in option spec: "SCALAR(0x12026fce0)"
xml-i18n-update: invalid option -- --pot
Try `xml-i18n-update --help' for more information.
gmake[2]: *** [gtkhtml.pot] Error 1
gmake[2]: Leaving directory `/home/tmp/www/gtkhtml/work.alpha/gtkhtml-0.14.0/po'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/home/tmp/www/gtkhtml/work.alpha/gtkhtml-0.14.0'
gmake: *** [all-recursive-am] Error 2
*** Error code 2

Stop.
*** Error code 1

Stop.
[10 more occurrences of this - omitted]

Looking at /home/tmp/www/gtkhtml/work.alpha/gtkhtml-0.14.0/xml-i18n-extract
I notice this fragment

use Getopt::Long;
...
GetOptions (
            "type=s"     => \$TYPE_ARG,
            "local|l"    => \$LOCAL_ARG,
            "help|h|?"   => \$HELP_ARG,
            "version|v"  => \$VERSION_ARG,
            "update"     => \$UPDATE_ARG,
            "quiet|q"    => \$QUIET_ARG,
            ) or &error;

which contains the string from the error message.

My Getopt::Long is from perl 5.004_04 - apparently that is not new
enough. I'll try to see if copying one from perl 5.6.1 and see if that
helps.

-Olaf.
-- 
___ Olaf 'Rhialto' Seibert - rhialto@polder --They that can give up essential 
\X/ land.nl --liberty to purchase a little temporary safety
--------------deserve neither liberty or safety. - Benjamin Franklin, 1759