Snort mailing list archives

Compiling snort-1.8.2 with snmp support


From: Michael Aylor <maylor () swbanktx com>
Date: Mon, 5 Nov 2001 09:11:49 -0600

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 () swbanktx com


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.

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

Current thread: