Snort mailing list archives
Can't get snort to compile with snmp.
From: Matthew Schumacher <matt.s () aptalaska net>
Date: Tue, 04 Sep 2001 13:39:25 -0800
All, I am trying to compile snort using: ./configure --with-snmp It compiles for a while and then dies with the following output:gcc -g -O2 -Wall -L/usr/local/lib -L/usr/local/ssl/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_a ck_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_res pond.o spo_alert_syslog.o spo_log_tcpdump.o spo_database.o sp_session.o spp_defr ag.o parser.o spo_alert_fast.o spo_alert_full.o spo_alert_smb.o spo_alert_unixso ck.o sp_react.o spo_xml.o sp_ip_tos_check.o snprintf.o checksum.o spp_tcp_stream 2.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 sp p_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_arpspo of.o spo_idmef.o spo_SnmpTrap.o -lpcap -lm -lnsl -lsnmp -lssl -lcrypto
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_load': dso_dlfcn.o(.text+0x77): undefined reference to `dlopen' dso_dlfcn.o(.text+0xe3): undefined reference to `dlclose' /usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_bind_var': dso_dlfcn.o(.text+0x1b6): undefined reference to `dlsym' /usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_bind_func': dso_dlfcn.o(.text+0x2a6): undefined reference to `dlsym' /usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_unload': dso_dlfcn.o(.text+0x3a5): undefined reference to `dlclose' collect2: ld returned 1 exit status make: *** [snort] Error 1I noticed that it is not playing nice with openssl so I compiled again with the command:
./configure --with-snmp --without-openssl and I get: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 -lpcap -lm -lnsl -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' collect2: ld returned 1 exit status make: *** [snort] Error 1I really would like to make this work for a project I am working on, so any help would be greatly appreciated.
BTW, here are the software versions I am running: snort-1.8.1-RELEASE ucd-snmp-4.2.1 openssl-engine-0.9.6b linux-2.4.9 RedHat 7.1 Glibc-2.2.2 Thanks, schu _______________________________________________ Snort-users mailing list Snort-users () lists sourceforge net Go to this URL to change user options or unsubscribe: https://lists.sourceforge.net/lists/listinfo/snort-users Snort-users list archive: http://www.geocrawler.com/redir-sf.php3?list=snort-users
Current thread:
- Can't get snort to compile with snmp. Matthew Schumacher (Sep 04)