Snort mailing list archives
RE: snort-1.8.3 compile with GCC.....!!!!
From: "PAD HOSMANE" <phosmane () pop fedworld gov>
Date: Fri, 1 Feb 2002 17:37:19 -0500
Hi, Sorry guys i am asking too much, excuse me please i am not an programmer. 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) collect2: ld returned 1 exit status *** Error exit code 1 Stop. *** Error exit code 1 Stop. *** Error exit code 1 Stop. Thanks ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++ -----Original Message----- From: snort-users-admin () lists sourceforge net [mailto:snort-users-admin () lists sourceforge net]On Behalf Of PAD HOSMANE Sent: Friday, February 01, 2002 4:53 PM To: snort-users () lists sourceforge net Subject: RE: [Snort-users] snort-1.8.3 compile with GCC.....!!!! Fyodor, On HP-UX 11.00, gcc requires binutil. After installing binutil, configure worked fine, but still win32 makefile getting created and when i run make, during linking i am getting Unsatisfied symbols error on libnet. Thanks PAd -----Original Message----- From: PAD HOSMANE [mailto:phosmane () apollo fedworld gov] Sent: Friday, February 01, 2002 3:56 PM To: snort-users () lists sourceforge net Subject: RE: [Snort-users] snort-1.8.3 compile with GCC.....!!!! Fyodor, thanks for the reply. I tried your simple program and I am getting the following error. sh-2.05# gcc /tmp/foo.c -o /tmp/foo /tmp/foo.c: In function `main': /tmp/foo.c:3: warning: return type of `main' is not `int' as: warning 2: Unknown option "--traditional-format" ignored. as: "/var/tmp/cc1qhEkd.s", line 22: error 1052: Directive name not recognized - NSUBSPA I even re-installed gcc 3.0.1 (on HP-UX 11.00) and tried to compile your program and i get the same message given above. Thanks PAd -----Original Message----- From: Fyodor [mailto:fygrave () tigerteam net] Sent: Friday, February 01, 2002 2:54 PM To: PAD HOSMANE Subject: Re: [Snort-users] snort-1.8.3 compile with GCC.....!!!! gcc installation error. try to compile simple code: --/cut here/-- /* gcc foo.c -o foo */ #include <stdio.h> void main(void) { printf("hello\n"); } --/cut here/-- On Fri, Feb 01, 2002 at 02:59:43PM -0500, PAD HOSMANE wrote:
Hi, I tried compiling snort-1.8.3 with ANSI C compiler on HP-UX 11.00, but configure creates makefile for win32 ( i had already put a mail regarding this issue). Now I am trying luck with gcc. I am getting the following
error
when I run configure
#./configure --with-libpcap-includes=/usr/local/include --enable-flexresp -
-with-libpcap-libraries=/usr/local/lib --with-openssl=/opt/openssl
CC=gcc
LDFLAGS=-L/opt/gcc/lib checking for a BSD compatible install... /opt/imake/bin/install -c checking whether build environment is sane... yes checking whether make sets ${MAKE}... yes checking for working aclocal... found checking for working autoconf... found checking for working automake... found checking for working autoheader... found checking for working makeinfo... found checking for gcc... gcc checking for C compiler default output... configure: error: C compiler cannot create executables Anybody idea why am i getting the above error??? Thanks _______________________________________________ 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
-- http://www.notlsd.net PGP fingerprint = 56DD 1511 DDDA 56D7 99C7 B288 5CE5 A713 0969 A4D1 _______________________________________________ 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 _______________________________________________ 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:
- snort-1.8.3 compile with GCC.....!!!! PAD HOSMANE (Feb 01)
- <Possible follow-ups>
- RE: snort-1.8.3 compile with GCC.....!!!! PAD HOSMANE (Feb 01)
- RE: snort-1.8.3 compile with GCC.....!!!! PAD HOSMANE (Feb 01)
- RE: snort-1.8.3 compile with GCC.....!!!! PAD HOSMANE (Feb 01)
- Re: snort-1.8.3 compile with GCC.....!!!! Ralf Hildebrandt (Feb 02)
- Re: snort-1.8.3 compile with GCC.....!!!! Ralf Hildebrandt (Feb 02)
- RE: snort-1.8.3 compile with GCC.....!!!! PAD HOSMANE (Feb 01)
- Re: snort-1.8.3 compile with GCC.....!!!! Ralf Hildebrandt (Feb 01)
- Re: snort-1.8.3 compile with GCC.....!!!! Fyodor (Feb 02)
- snort-1.8.3 compile with GCC.....!!!! Sixonetonoffun1 (Feb 01)