Bug#783610: Warning: XML::LibXML compiled against libxml2 20902, but runtime libxml2 is older 20901
Vincent Lefevre
vincent at vinc17.net
Tue Apr 28 14:08:54 UTC 2015
On 2015-04-28 13:31:19 +0200, Vincent Lefevre wrote:
> I get the following warning, which makes one of my scripts fail:
>
> Warning: XML::LibXML compiled against libxml2 20902, but runtime libxml2 is older 20901
The warning appears in
/usr/lib/x86_64-linux-gnu/perl5/5.20/XML/LibXML.pm
#-------------------------------------------------------------------------#
# test exact version (up to patch-level) #
#-------------------------------------------------------------------------#
{
my ($runtime_version) = LIBXML_RUNTIME_VERSION() =~ /^(\d+)/;
if ( $runtime_version < LIBXML_VERSION ) {
warn "Warning: XML::LibXML compiled against libxml2 ".LIBXML_VERSION.
", but runtime libxml2 is older $runtime_version\n";
}
}
Either the exact version is needed, in which case a versioned
dependency is missing, or the exact version is not needed and the
warning is useless and would introduce more problems than trying
to solve hypothetical ones: in interactive use, such warnings are
annoying and distracting, and in a context where stderr is checked,
it can break things (in cron scripts, this would spam the user).
--
Vincent Lefèvre <vincent at vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
More information about the pkg-perl-maintainers
mailing list