[po4a-Bugs][304168] lib/Locale/Po4a/TransTractor.pm does not export the 'new' sub symbol
by po4a-bugs@alioth.debian.org
Bugs item #304168, was opened at 23/11/2006 01:55
>Status: Closed
Priority: 3
Submitted By: Nobody (None)
>Assigned to: Nicolas FRANCOIS (nekral-guest)
Summary: lib/Locale/Po4a/TransTractor.pm does not export the 'new' sub symbol
>Resolution: Fixed
Group: None
Category: None
Initial Comment:
In po4a 0.29, lib/Locale/Po4a/TransTractor.pm does not export the 'new' sub symbol.
However, this one is explicitely imported by Pod.pm, KernelHelp.pm and Ini.pm.
Thus installation fails to rebuild .po from .pod files, because Pod.pm is not loadable :
$ cd po/pod; PERL5LIB=../../lib perl ../../po4a-updatepo -f pod -v -m ../../doc/po4a.7.pod -m ../../lib/Locale/Po4a/Chooser.pm -m ../../lib/Locale/Po4a/Common.pm -m ../../lib/Locale/Po4a/Dia.pm -m ../../lib/Locale/Po4a/Docbook.pm -m ../../lib/Locale/Po4a/Guide.pm -m ../../lib/Locale/Po4a/Ini.pm-m ../../lib/Locale/Po4a/KernelHelp.pm -m ../../lib/Locale/Po4a/LaTeX.pm -m ../../lib/Locale/Po4a/Man.pm -m ../../lib/Locale/Po4a/Po.pm -m ../../lib/Locale/Po4a/Pod.pm -m ../../lib/Locale/Po4a/Sgml.pm -m ../../lib/Locale/Po4a/TeX.pm -m ../../lib/Locale/Po4a/Texinfo.pm -m ../../lib/Locale/Po4a/Text.pm -m ../../lib/Locale/Po4a/TransTractor.pm -m ../../lib/Locale/Po4a/Xml.pm -m ../../po4a -m ../../po4a-gettextize -m ../../po4a-normalize -m ../../po4a-translate -m ../../po4a-updatepo -m ../../scripts/msguntypot -M utf-8 -p po4a-pod.pot
po4a::chooser: Module loading error: "new" is not exported by the Locale::Po4a::TransTractor module
Can't continue after import errors at ../../lib/Locale/Po4a/Pod.pm line 16
BEGIN failed--compilation aborted at ../../lib/Locale/Po4a/Pod.pm line 16.
Compilation failed in require at (eval 9) line 2.
BEGIN failed--compilation aborted at (eval 9) line 2.
Correction:
Just add new to the @EXPORT list of symbols in lib/Locale/Po4a/TransTractor.pm.
Regards,
J.
----------------------------------------------------------------------
>Comment By: Nicolas FRANCOIS (nekral-guest)
Date: 25/11/2006 23:21
Message:
Hello,
I don't understand why I don't need to export it on my box, but I've added 'new' to the symbols exported by Transtractor.
Kind Regards,
--
Nekral
----------------------------------------------------------------------
You can respond by visiting:
http://alioth.debian.org/tracker/?func=detail&atid=410622&aid=304168&grou...