[Snort-users] snort-1.8.3 compile with GCC.....!!!!

Ralf Hildebrandt Ralf.Hildebrandt at ...3909...
Sat Feb 2 02:41:40 EST 2002


On Fri, Feb 01, 2002 at 05:37:19PM -0500, PAD HOSMANE wrote:

>   Sorry guys i am asking too much, excuse me please i am not an programmer.

Never mind.
 
> Finally i was able to run configure successfully with gcc. Now i am getting
> error while linking. Error is given below.
> I tried with Libnet 1.0.2a and libnet 1.0.1, both of them gave the same
> error. SHLIB_PATH, LD_LIBRARY_PATH, PATH are set. Any inputs will be greatly
> appreciated. Thanks.
> 
> gcc  -g -O2 -Wall -DENABLE_RESPONSE -DLIBNET_BIG_ENDIAN -L/opt/libpcap/lib -
> L/opt/mysql/lib/mysql -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_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
> po_log_null.o  -lpcap -lm -lnsl  -lmysqlclient -lssl -lcrypto -lnet
> /usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file
> (/usr/local/ssl/lib/libssl.a(t1_clnt.o)) was detected. The linked output may
> not run on a PA 1.x system.
> /usr/ccs/bin/ld: Unsatisfied symbols:
>    libnet_error (first referenced in sp_respond.o) (code)
>    libnet_build_icmp_unreach (first referenced in sp_respond.o) (code)
>    libnet_write_ip (first referenced in sp_respond.o) (code)
>    libnet_build_ip (first referenced in sp_respond.o) (code)
>    libnet_build_tcp (first referenced in sp_respond.o) (code)
>    libnet_open_raw_sock (first referenced in sp_respond.o) (code)
>    libnet_init_packet (first referenced in sp_respond.o) (code)
>    libnet_do_checksum (first referenced in sp_respond.o) (code)
>    libnet_destroy_packet (first referenced in sp_react.o) (code)
>    libnet_get_prand (first referenced in sp_respond.o) (code)

Run "nm" on the libnet.* libraries. Does that list the symbols
unsatisfied above?

-- 
Ralf Hildebrandt (Im Auftrag des Referat V A)   Ralf.Hildebrandt at ...3909...
Charite Campus Virchow-Klinikum                 Tel.  +49 (0)30-450 570-155
Referat V A - Kommunikationsnetze -             Fax.  +49 (0)30-450 570-916
During the million-dollar BIND 9 rewrite, Paul Vixie characterized the
original BIND code as 'sleazeware produced in a drunken fury by a
bunch of U C Berkeley grad students.'                -- D.J. Bernstein





More information about the Snort-users mailing list