[Pkg-net-snmp-devel] Bug#744023: libsnmp-dev should depends on libpci-dev

Vincent Bernat bernat at debian.org
Sun Apr 27 13:52:41 UTC 2014

 ❦  9 avril 2014 14:00 CEST, Yunqiang Su <wzssyqa at gmail.com> :

> net-snmp-config has '-lpci' in it.
> So it think that libsnmp-dev should depends on libpci-dev, or it may
> cannot work,
> for many packages.

I have added two build failures blocked by this bug. Also, upstream
should fix the mess to build subagents. On my system, I get:

 $ net-snmp-config --agent-libs
   -Wl,-z,relro -Wl,-z,now -L/usr/lib/x86_64-linux-gnu -lnetsnmpmibs -lsensors -lpci -ldl -lnetsnmpagent -lwrap -Wl,-E -lnetsnmp -lcrypto -lm

The problem is that -lnetsnmpmibs basically contains a full-featured
snmpd agent and hence the necessity to link to various
libraries. Building a SNMP subagent should not mean load a whole snmpd
inside another program.
Don't comment bad code - rewrite it.
            - The Elements of Programming Style (Kernighan & Plauger)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-net-snmp-devel/attachments/20140427/41266953/attachment.sig>

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