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 <vinc...@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)


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to