I have a utility which says it requires net-snmp, OK, that's a normal sort of statement.
However the ./configure script actually asks for 'lsnmp', i.e. it's looking for linsnmp.so when it builds. I have installed lib-snmp but it doesn't provide a libsnmp.so and there really doesn't seem to be such a thing as just an snmp library.
Can anyone throw any light on this confusion?
Chris Green chris@areti.co.uk writes:
I have a utility which says it requires net-snmp, OK, that's a normal sort of statement.
However the ./configure script actually asks for 'lsnmp', i.e. it's looking for linsnmp.so when it builds.
Presumably you mean -lsnmp and thus libsnmp.so.
I have installed lib-snmp but it doesn't provide a libsnmp.so and there really doesn't seem to be such a thing as just an snmp library.
Can anyone throw any light on this confusion?
You don't say what distribution you're using, but it's usual to need a separate development package to be able to compile against a shared library. For instance in Debian, libsnmp5 contains libsnmp.so.5 and the symlink from libsnmp.so is only found in libsnmp5-dev.
On Sat, Feb 05, 2005 at 11:25:30PM +0000, Richard Kettlewell wrote:
Chris Green chris@areti.co.uk writes:
I have a utility which says it requires net-snmp, OK, that's a normal sort of statement.
However the ./configure script actually asks for 'lsnmp', i.e. it's looking for linsnmp.so when it builds.
Presumably you mean -lsnmp and thus libsnmp.so.
I have installed lib-snmp but it doesn't provide a libsnmp.so and there really doesn't seem to be such a thing as just an snmp library.
Can anyone throw any light on this confusion?
You don't say what distribution you're using, but it's usual to need a separate development package to be able to compile against a shared library. For instance in Debian, libsnmp5 contains libsnmp.so.5 and the symlink from libsnmp.so is only found in libsnmp5-dev.
Ah, now that may be relevant, thanks. I had downloaded the dev package since I'd been thinking along these lines too. I'll build it and install it and see if it helps any.
On Sun, Feb 06, 2005 at 11:53:37AM +0000, Chris Green wrote:
On Sat, Feb 05, 2005 at 11:25:30PM +0000, Richard Kettlewell wrote:
Chris Green chris@areti.co.uk writes:
I have a utility which says it requires net-snmp, OK, that's a normal sort of statement.
However the ./configure script actually asks for 'lsnmp', i.e. it's looking for linsnmp.so when it builds.
Presumably you mean -lsnmp and thus libsnmp.so.
I have installed lib-snmp but it doesn't provide a libsnmp.so and there really doesn't seem to be such a thing as just an snmp library.
Can anyone throw any light on this confusion?
You don't say what distribution you're using, but it's usual to need a separate development package to be able to compile against a shared library. For instance in Debian, libsnmp5 contains libsnmp.so.5 and the symlink from libsnmp.so is only found in libsnmp5-dev.
Ah, now that may be relevant, thanks. I had downloaded the dev package since I'd been thinking along these lines too. I'll build it and install it and see if it helps any.
... but it doesn't help.
I've built and installed the complete net-snmp-5.2.1 development source and, although it's installed about a zillion files all over my system, it hasn't installed a libsnmp.so.
On Sun, 6 Feb 2005, Chris Green wrote:
it hasn't installed a libsnmp.so.
Debian has files of this name in packages called
libsnmp4.2-dev for stable, testing or unstable libsnmp5-dev for testing or unstable
These are the binary packages. The source package is called ucd-snmp for "4.2" and net-snmp for "5".
http://www.debian.org/distrib/packages#search_contents is a great place to find out this sort of thing.
On Sun, Feb 06, 2005 at 01:09:28PM +0000, Dan Hatton wrote:
On Sun, 6 Feb 2005, Chris Green wrote:
it hasn't installed a libsnmp.so.
Debian has files of this name in packages called
libsnmp4.2-dev for stable, testing or unstable libsnmp5-dev for testing or unstable
These are the binary packages. The source package is called ucd-snmp for "4.2" and net-snmp for "5".
http://www.debian.org/distrib/packages#search_contents is a great place to find out this sort of thing.
Yes, I have thus fathomed out a bit of the story (but no answer yet).
snmp 4.2 is that last of the line from ucd-snmp. It then became net-snmp from version 5 onwards. My requirement is for at least version 5.1.2 (I think it's that, 5.x.x anyway) so the 4.2 versions are no use to me.
Now why libsnmp.so disappears between 4.2 and 5.x is what I need to find out.
Chris Green wrote:
snmp 4.2 is that last of the line from ucd-snmp. It then became net-snmp from version 5 onwards. My requirement is for at least version 5.1.2 (I think it's that, 5.x.x anyway) so the 4.2 versions are no use to me.
Now why libsnmp.so disappears between 4.2 and 5.x is what I need to find out.
V5 installs libnetsnmp.so. 'ldcconfig -v | grep libnetsnmp.so' and if it's not there, 'locate libnetsnmp.so', and path the path into /etc/ld.so.conf before running ldconfig -v again.
HTH James
On Sun, Feb 06, 2005 at 04:10:36PM +0000, James Green wrote:
Chris Green wrote:
snmp 4.2 is that last of the line from ucd-snmp. It then became net-snmp from version 5 onwards. My requirement is for at least version 5.1.2 (I think it's that, 5.x.x anyway) so the 4.2 versions are no use to me.
Now why libsnmp.so disappears between 4.2 and 5.x is what I need to find out.
V5 installs libnetsnmp.so. 'ldcconfig -v | grep libnetsnmp.so' and if it's not there, 'locate libnetsnmp.so', and path the path into /etc/ld.so.conf before running ldconfig -v again.
The problem is that the application I'm trying to build is looking for libsnmp.so, not libnetsnmp.so. The 5.x.x versions of net-snmp don't build/install a libsnmp.so, the 4.x.x versions did.
It's essentially a bug in the application (HPLIP) that I'm trying to build, although they say it requires net-snmp version >5.1.2 the configure script uses '-lsnmp' throughout. I've modified the configure script so it looks for -lnetsnmp and now it works. I've reported the error to the HPLIP developers.
On Sun, 6 Feb 2005, Chris Green wrote:
snmp 4.2 is that last of the line from ucd-snmp. It then became net-snmp from version 5 onwards. My requirement is for at least version 5.1.2 (I think it's that, 5.x.x anyway) so the 4.2 versions are no use to me.
Now why libsnmp.so disappears between 4.2 and 5.x is what I need to find out.
Is this still a live issue? I just got logged in on a Debian Testing machine, and installed Debian's binary package libsnmp5-dev (this is version 5.1.2-6, so meets your requirements.) I got a file </usr/lib/libsnmp.so> by doing this. If you really need/want to compile from source, you could obtain the source code from Debian <apt-get source --download-only net-snmp>, and compile from source to the various Debian binary packages <debian/rules build>, then install your home-rolled binaries.