[Pkg-net-snmp-devel] Bug#942284: Bug#942284: libsnmp-perl: perl module SNMP broken

gregor herrmann gregoa at debian.org
Mon Oct 14 20:07:36 BST 2019


On Mon, 14 Oct 2019 10:34:41 +1100, Craig Small wrote:

> > libsnmp-perl is broken.
> Ouch, I don't use the module (or Perl much for that matter) but that's very
> broken. No idea what's going on but it worries me that
> netsnmp_ds_get_boolean is the first function in that module which means a
> coincidence or all functions are not available.

Some notes:

    % apt-cache --no-all-versions show libsnmp-perl | grep Depends
    Depends: perl (>= 5.30.0-6), perlapi-5.30.0, libc6 (>= 2.15)

So the perl package doesn't depend on any snmp libraries. The
previous version had
    Depends: perl (>= 5.30.0-5), perlapi-5.30.0, libc6 (>= 2.15), libsnmp30 (>= 5.7.3+dfsg)

Digging around in the git repo shows that the perl build system has
been changed. (No idea if this is related.)

Looking at the (local) build log we see:

… well different things at each build, but once I saw the perl
modules built first in dh_auto_build with warnings about missing C
libraries …

Upstream ChangeLog says:

    The Perl module build problems were caused by a concurrent build
    (make -j<n>) and not by a problem in any of the Makefile.PL files.

When I try

    %:
        dh $@ --no-parallel

I end up with

    Depends: perl (>= 5.30.0-6), perlapi-5.30.0, libc6 (>= 2.15), libsnmp35 (>= 5.8+dfsg)

and the problem is gone:

    % perl -MSNMP -e 1
    %

So it looks like the "whole" problem is that net-snmp is not
parallel-build safe …

Not sure if --no-parallel is an acceptable solution but at least the
area of the problem is a bit clearer now. (Fixing the many
Makefile.*s might be cleaner but that's too much for me now.)


Cheers,
gregor


-- 
 .''`.  https://info.comodo.priv.at -- Debian Developer https://www.debian.org
 : :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D  85FA BB3A 6801 8649 AA06
 `. `'  Member VIBE!AT & SPI Inc. -- Supporter Free Software Foundation Europe
   `-   
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: Digital Signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-net-snmp-devel/attachments/20191014/cf119ef0/attachment-0001.sig>


More information about the Pkg-net-snmp-devel mailing list