Re: net-snmp-5.7.2 with openssl1.0.2 causing error

Test ssl <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <CAP_=hLT5N6pd+CTj1Bdu7mdArA8jN7EcU9eM9KU0oafG1WxQ_w@mail.gmail.com>
Hi Lee,


yes we did use  --with-openssl and pointed it towards the openssl library
of 1.0.2h compiled by us. But strangely net-snmp still looking for 1.0.1
openssl.

I run the "objdump -x libnetsnmpagent.so" command and found the below:-

Dynamic Section:
  NEEDED               libnetsnmp.so.30
  NEEDED               librt.so.1
  NEEDED               *libcrypto.so.1.0.1*
  NEEDED               libm.so.6
  NEEDED               libc.so.6


But I also have compiled libcurl, and for "objdump -x libcurl.so" , I got
below:-

Dynamic Section:
  NEEDED               librt.so.1
  NEEDED               libssl.so.1.0.2
  NEEDED               *libcrypto.so.1.0.2*
  NEEDED               libc.so.6
  SONAME               libcurl.so.4

So libcurl is pointing to right version, where as netsnmp not. Please help
what could be problem here?


Regards


On Thu, Aug 11, 2016 at 7:30 PM, Lee <[email protected]> wrote:

> On 8/11/16, Test ssl <[email protected]> wrote:
> > Hi ,
> >
> >
> > I am getting below error :-
> >
> >  libcrypto.so.1.0.1, needed by libnetsnmpagent.so, not found (try using
> > -rpath or -rpath-link)
> >
> >
> > I have upgraded openssl from 1.0.1q to 1.0.2h for my project.
> >
> > does net-snmp by default looks for openssl 1.0.1 series. Is there anyway
> to
> > force it to point towards 1.0.2?
>
> Have you tried  ./configure --with-openssl=PATH ?
>
> $ ./configure --help
>   [.. snip ..]
>   --with-openssl=PATH             Look for openssl in PATH/lib,
>                                   or PATH may be "internal" to build with
>                                   minimal copied OpenSSL code for USM only.
>
> Regards,
> Lee
>

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. http://sdm.link/zohodev2dev

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.