[Snort-devel] [ snort-Bugs-500757 ] libsnmp.so need cryptolib (FreeBSD)

noreply at ...12... noreply at ...12...
Thu Jan 17 19:24:04 EST 2002


Bugs item #500757, was opened at 2002-01-08 01:58
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=103357&aid=500757&group_id=3357

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: libsnmp.so need cryptolib (FreeBSD)

Initial Comment:
Problem compiling snort with snmp support on a FreeBSD 4.3 
machine.

When compiling Snort with snmp support, 'make' 
exited with an error since libsnmp need the crypto-lib. If you run 
'configure --with-snmp' and then manually edit the Makefile to 
include "-lcrypto" there will be no problems.

LIBS = -lcipher -
lpcap -lm  -lsnmp -lcrypto
                                   ^^^^^^^^

Maybe you should fix this or 
mention it in the README-SNMP?



gcc  -g -O2 -Wall -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  -lcipher -lpcap -lm  -
lsnmp
/usr/local/lib/libsnmp.so: undefined reference to 
`EVP_DigestInit'
/usr/local/lib/libsnmp.so: undefined 
reference to `EVP_DigestFinal'
/usr/local/lib/libsnmp.so: 
undefined reference to 
`EVP_md5'
/usr/local/lib/libsnmp.so: undefined reference 
to `HMAC'
/usr/local/lib/libsnmp.so: undefined reference to 
`EVP_sha1'
/usr/local/lib/libsnmp.so: undefined reference 
to `des_cbc_encrypt'
/usr/local/lib/libsnmp.so: undefined 
reference to `des_key_sched'
/usr/local/lib/libsnmp.so: 
undefined reference to 
`EVP_DigestUpdate'
/usr/local/lib/libsnmp.so: undefined 
reference to `RAND_bytes'
/usr/local/lib/libsnmp.so: 
undefined reference to `des_ncbc_encrypt'
*** Error code 1


----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2002-01-16 06:43

Message:
Logged In: NO 

you may get around this problem by configuring with 
./configure --with-snmp --with-openssl

The --with-openssl option will ensure that the appropriate
libraries are used by the linker.

A note to this effect has been added to the README-SNMP
document of the latest upgrade of the snmpSnortPlugin-1.8.3

Glenn(glenn at ...1085...)

----------------------------------------------------------------------

Comment By: Martin Olsson (elof)
Date: 2002-01-08 02:10

Message:
Logged In: YES 
user_id=420942

(created an account now)
This is exactly what I did:
su -

Install the 
SNMP tools (binaries & include files)
  wget 
ftp://ftp.freesnmp.com/mirrors/net-snmp/ucd-snmp-4.2.3.tar.gz
  
tar xvfz ucd-snmp-4.2.3.tar.gz
  cd ucd-snmp-4.2.3
  ./configure
  make
  
make install

Install snort
  wget 
http://www.snort.org/releases/snort-1.8.3.tar.gz
  tar xvfz snort-
1.8.3.tar.gz
  cd snort-1.8.3
  ./configure --with-snmp --without-mysql
    --
without-odbc --without-postgresql
    --without-oracle --without-openssl
    --
without-libxml2_includes
    --without-libxml2_libraries
    --without-
libntp_libraries
    --without-libidmef_includes
    --without-
libidmef_libraries
  BUG: edit the Makefile and add -lcrypto to the LIBS 
variable, ucd-snmp (libsnmp.so) need it
  make
  make install

/Elof

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=103357&aid=500757&group_id=3357




More information about the Snort-devel mailing list