Anyone having this error message from help2man
(slackware 14.1 and probably also current)
Code:
./help2man program > program.1
Constant subroutine main::LC_ALL redefined at /usr/share/perl5/Exporter.pm line 66.
at ./help2man line 28.
Prototype mismatch: sub main::LC_ALL () vs none at /usr/share/perl5/Exporter.pm line 66.
at ./help2man line 28.
help2man builds the man page,
but if you use it in a Makefile, make exits because of this error message.
This patch to help2man prevent this error message, and apparently no ill effect from the change.
Code:
--- help2man 2013-09-11 07:48:27.000000000 +0200
+++ /usr/bin/help2man 2014-07-10 23:00:21.160158806 +0200
@@ -24,7 +24,7 @@
use strict;
use Getopt::Long;
use Text::Tabs qw(expand);
-use POSIX qw(strftime setlocale LC_ALL);
+use POSIX qw(strftime setlocale);
use Locale::gettext;
use Encode qw(decode encode);
use I18N::Langinfo qw(langinfo CODESET);
It seems to be an old problem with perl,
so this patch to perl itself from debian may be a better solution.
Code:
--- liblocale-gettext-perl-1.05.orig/gettext.pm 2008-05-07 09:40:23.000000000 +0200
+++ liblocale-gettext-perl-1.05/gettext.pm 2008-05-07 09:41:04.000000000 +0200
@@ -32,6 +32,7 @@
=cut
use Carp;
+use POSIX qw(:locale_h);
require Exporter;
require DynaLoader;