[Snort-users] Compiling snort-1.8.2 with snmp support

Robert D. Hughes rob at ...1932...
Mon Nov 5 09:39:02 EST 2001


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

When you compiled UCD, did you compile in SNMP V3 support? I believe its
the default, but I'm not sure. At any rate, those messages are all
related to V3 stuff.
 
Rob

- -----Original Message-----
From: Michael Aylor [mailto:maylor at ...1991...]
Sent: Monday, November 05, 2001 9:12 AM
To: 'snort-users at lists.sourceforge.net'
Subject: [Snort-users] Compiling snort-1.8.2 with snmp support



Hey all, 

Apologies if this question has already been asked and answered... 

I'm trying to compile snort-1.8.2 on a RH7.1 box.  I've compiled and
installed ucd-snmp-4.2.2 from source, and subsequently editted the
/etc/ld.so.conf file to include the path /usr/local/lib (and after
saving, I run ldconfig).  When I begin the snort config, I use the
switches "./configure --with-mysql --with-snmp".  I know that the mysql
portion works because if I just use the --with-mysql and not
--with-snmp, it works fine.

It then runs through the config with no errors.  I then run make, and
this is the output it gives me.  

gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/pcap
-I/usr/include/mysql -DENABLE_MYSQL -I/usr/local/include -DENABLE_SNMP
-g -O2 -Wall -c spo_log_null.c

gcc  -g -O2 -Wall -L/usr/lib/mysql -L/usr/local/lib  -o snort  snort.o
log.o decode.o mstring.o rules.o plugbase.o sp_pattern_match.o
sp_tcp_flag_check.o sp_icmp_type_check.o sp_icmp_code_check.o
sp_ttl_check.o sp_ip_id_check.o sp_tcp_ack_check.o sp_tcp_seq_check.o
sp_dsize_check.o spp_http_decode.o spp_portscan.o sp_ipoption_check.o
sp_rpc_check.o sp_icmp_id_check.o sp_icmp_seq_check.o sp_respond.o
spo_alert_syslog.o spo_log_tcpdump.o spo_database.o sp_session.o
spp_defrag.o parser.o spo_alert_fast.o spo_alert_full.o spo_alert_smb.o
spo_alert_unixsock.o sp_react.o spo_xml.o sp_ip_tos_check.o snprintf.o
checksum.o spp_tcp_stream2.o sp_reference.o sp_ip_fragbits.o
spp_anomsensor.o tag.o spp_unidecode.o codes.o strlcpyu.o strlcatu.o
debug.o sp_tcp_win_check.o spp_rpc_decode.o spp_bo.o
spp_telnet_negotiation.o spo_csv.o sp_ip_same_check.o sp_priority.o
sp_ip_proto.o ubi_BinTree.o ubi_SplayTree.o spo_unified.o spp_stream4.o
spp_frag2.o spp_arpspoof.o spo_idmef.o spo_SnmpTrap.o spo_log_null.o
-lz -lpcap -lm -lnsl  -lmysqlclient -lsnmp

/usr/local/lib/libsnmp.a(keytools.o): In function `generate_Ku': 
/packages/ucd-snmp-4.2.2/snmplib/keytools.c:124: undefined reference to
`EVP_md5' 
/packages/ucd-snmp-4.2.2/snmplib/keytools.c:126: undefined reference to
`EVP_sha1' 
/packages/ucd-snmp-4.2.2/snmplib/keytools.c:126: undefined reference to
`EVP_DigestInit' 
/packages/ucd-snmp-4.2.2/snmplib/keytools.c:141: undefined reference to
`EVP_DigestUpdate' 
/packages/ucd-snmp-4.2.2/snmplib/keytools.c:153: undefined reference to
`EVP_DigestFinal' 
/usr/local/lib/libsnmp.a(scapi.o): In function `sc_random': 
/packages/ucd-snmp-4.2.2/snmplib/scapi.c:150: undefined reference to
`RAND_bytes' 
/usr/local/lib/libsnmp.a(scapi.o): In function `sc_generate_keyed_hash':

/packages/ucd-snmp-4.2.2/snmplib/scapi.c:255: undefined reference to
`EVP_md5' 
/packages/ucd-snmp-4.2.2/snmplib/scapi.c:258: undefined reference to
`EVP_sha1' 
/packages/ucd-snmp-4.2.2/snmplib/scapi.c:258: undefined reference to
`HMAC' 
/usr/local/lib/libsnmp.a(scapi.o): In function `sc_hash': 
/packages/ucd-snmp-4.2.2/snmplib/scapi.c:345: undefined reference to
`EVP_md5' 
/packages/ucd-snmp-4.2.2/snmplib/scapi.c:348: undefined reference to
`EVP_sha1' 
/packages/ucd-snmp-4.2.2/snmplib/scapi.c:348: undefined reference to
`EVP_DigestInit' 
/packages/ucd-snmp-4.2.2/snmplib/scapi.c:353: undefined reference to
`EVP_DigestUpdate' 
/packages/ucd-snmp-4.2.2/snmplib/scapi.c:354: undefined reference to
`EVP_DigestFinal' 
/usr/local/lib/libsnmp.a(scapi.o): In function `sc_encrypt': 
/packages/ucd-snmp-4.2.2/snmplib/scapi.c:592: undefined reference to
`des_key_sched' 
/packages/ucd-snmp-4.2.2/snmplib/scapi.c:596: undefined reference to
`des_ncbc_encrypt' 
/packages/ucd-snmp-4.2.2/snmplib/scapi.c:600: undefined reference to
`des_ncbc_encrypt' 
/usr/local/lib/libsnmp.a(scapi.o): In function `sc_decrypt': 
/packages/ucd-snmp-4.2.2/snmplib/scapi.c:715: undefined reference to
`des_key_sched' 
/packages/ucd-snmp-4.2.2/snmplib/scapi.c:718: undefined reference to
`des_cbc_encrypt' 
collect2: ld returned 1 exit status 
make: *** [snort] Error 1 

Any clues as to why it keeps failing? 


Mike Aylor 
maylor at ...1991... 



CONFIDENTIALITY NOTICE:

************************************************************************

The information contained in this ELECTRONIC MAIL transmission
is confidential. It may also be privileged work product or proprietary
information. This information is intended for the exclusive use of the
addressee(s). If you are not the intended recipient, you are hereby
notified that any use, disclosure, dissemination, distribution [other
than to the addressee(s)], copying or taking of any action because
of this information is strictly prohibited.

************************************************************************



-----BEGIN PGP SIGNATURE-----
Version: PGP 7.0.4

iQA/AwUBO+bOgOa2P6TrxG1EEQJnvgCgmLlYZ1X7NufaqBSkvIalN8l3vwUAniEy
AIcGjf/R2PYE86ZxDEbbBZqx
=ZZVJ
-----END PGP SIGNATURE-----

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.snort.org/pipermail/snort-users/attachments/20011105/d2aaa20e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGPexch.htm.asc
Type: application/octet-stream
Size: 3411 bytes
Desc: PGPexch.htm.asc
URL: <https://lists.snort.org/pipermail/snort-users/attachments/20011105/d2aaa20e/attachment.obj>


More information about the Snort-users mailing list