Re: Snort + Ssnort snmp plugin + net-snmp

Robert Story <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On Tue, 3 Oct 2017 09:20:39 +0300 Jaanus wrote:
JR> I have issues with the net-snmp which produces me errors:
JR> 
JR> /opt/snort-2.9.3.1/src/output-plugins/spo_SnmpTrap.c:1902:
JR> undefined reference to `snmp_parse_oid'
JR> [snip]
JR> collect2: error: ld returned 1 exit status

Undefined reference means the linker can't find the net-snmp
libraries.

JR> My commands order:
JR> 
JR> RUN wget
JR> https://downloads.sourceforge.net/project/net-snmp/net-snmp/5.7.3/net-snmp-5.7.3.tar.gz
JR> \
JR> && tar xvfz net-snmp-5.7.3.tar.gz \
JR>     && cd net-snmp-5.7.3 \
JR>     && ./configure; make; make install
JR> ........
JR> RUN wget
JR> https://www.snort.org/downloads/archive/snort/snort-2.9.3.1.tar.gz
JR> \ && tar xvfz snort-2.9.3.1.tar.gz
JR> RUN wget
JR> https://www.cysol.co.jp/contrib/snortsnmp/SnortSnmpMod-2.9.3.1-03.tgz
JR> \ && tar xvfz SnortSnmpMod-2.9.3.1-03.tgz \
JR> && zcat SnortSnmpMod-2.9.3.1-03/SnortSnmp-2.9.3.1-03.gz | patch
JR> -p 0 \ && cd snort-2.9.3.1 \
JR>     && ./configure; make; make install

By default net-snmp will install in /usr/local, which probably
isn't in your library search path. You didn't mention what
OS/distro you are using. On linux you would update /etc/ld.so.conf
(or add a file to /etc/ld.so.conf.d) and then run ldconfig to
update the search path.

Robert

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
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.