LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-05-2014, 10:00 AM   #1
ml4711
Member
 
Registered: Aug 2012
Location: Ryomgård, Danmark
Distribution: Slackware64
Posts: 146

Rep: Reputation: 103Reputation: 103
help2man - perl error message


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;
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
perl error message charlie_lab Linux From Scratch 5 09-02-2016 03:05 AM
coreutils error help2man R03L Linux From Scratch 1 03-28-2014 04:07 AM
[SOLVED] Updating PERL or any package depending on PERL gives error message Guus Bonnema Fedora - Installation 3 07-26-2011 07:46 AM
no error message from PERL when i use bash command visva Linux - Newbie 2 11-26-2009 05:47 PM
Perl error message processing 2007fld Programming 2 07-22-2008 07:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration