Snort mailing list archives

Re: Snort Make Error


From: Alan Ptak <alan.ptak () gmail com>
Date: Sat, 15 Jan 2011 16:55:05 -0800

Nathan,

Offhand it looks like ld is trying to link in 32-bit libraries to compile a 64-bit application on your platform. I 
don't know why the configure script isn't picking up the environment automatically (perhaps CFLAGS and LDFLAGS are not 
set?) and I am not near a system to test this. 

Assuming you are using gcc, you might try again with the following to validate : 

$ ./configure CFLAGS='-m64' LDFLAGS='-m64'

Just to be sure you are starting from a clean slate, you might want to rm -rf your directory and extract all files from 
the snort-2.9.0.3 tarball first.

See i386 and x86-64 Options - Using the GNU Compiler Collection (GCC) for more info. 

HTH .. Alan


On Jan 14, 2011, at 9:11 PM, Gibson, Nathan J. (HSC) wrote:

Anyone rany into this before during the Make?
 
 
[root@xxxx snort-2.9.0.3]# uname -a
Linux base2 2.6.18-194.26.1.el5 #1 SMP Fri Oct 29 14:21:16 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
 
 
 
 
 
 
/usr/bin/ld: warning: i386 architecture of input file `output-plugins/libspo.a(spo_alert_fast.o)' is incompatible 
with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `output-plugins/libspo.a(spo_alert_full.o)' is incompatible 
with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `output-plugins/libspo.a(spo_alert_syslog.o)' is incompatible 
with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `output-plugins/libspo.a(spo_alert_unixsock.o)' is incompatible 
with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `output-plugins/libspo.a(spo_csv.o)' is incompatible with 
i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `output-plugins/libspo.a(spo_database.o)' is incompatible with 
i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `output-plugins/libspo.a(spo_log_null.o)' is incompatible with 
i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `output-plugins/libspo.a(spo_log_tcpdump.o)' is incompatible 
with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `output-plugins/libspo.a(spo_unified2.o)' is incompatible with 
i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `output-plugins/libspo.a(spo_log_ascii.o)' is incompatible with 
i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `output-plugins/libspo.a(spo_alert_sf_socket.o)' is 
incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `output-plugins/libspo.a(spo_alert_test.o)' is incompatible 
with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `detection-plugins/libspd.a(sp_byte_check.o)' is incompatible 
with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `detection-plugins/libspd.a(sp_byte_jump.o)' is incompatible 
with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `detection-plugins/libspd.a(sp_clientserver.o)' is incompatible 
with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `detection-plugins/libspd.a(sp_cvs.o)' is incompatible with 
i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `detection-plugins/libspd.a(sp_dsize_check.o)' is incompatible 
with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `detection-plugins/libspd.a(sp_flowbits.o)' is incompatible 
with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `detection-plugins/libspd.a(sp_hdr_opt_wrap.o)' is incompatible 
with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `detection-plugins/libspd.a(sp_icmp_id_check.o)' is 
incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `detection-plugins/libspd.a(sp_icmp_seq_check.o)' is 
incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `detection-plugins/libspd.a(sp_icmp_type_check.o)' is 
incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `detection-plugins/libspd.a(sp_ip_fragbits.o)' is incompatible 
with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `detection-plugins/libspd.a(sp_ip_id_check.o)' is incompatible 
with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `detection-plugins/libspd.a(sp_ip_proto.o)' is incompatible 
with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `detection-plugins/libspd.a(sp_ip_same_check.o)' is 
incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `detection-plugins/libspd.a(sp_ip_tos_check.o)' is incompatible 
with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `detection-plugins/libspd.a(sp_ipoption_check.o)' is 
incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `detection-plugins/libspd.a(sp_pattern_match.o)' is 
incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `detection-plugins/libspd.a(sp_pcre.o)' is incompatible with 
i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `detection-plugins/libspd.a(sp_replace.o)' is incompatible with 
i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `detection-plugins/libspd.a(sp_rpc_check.o)' is incompatible 
with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `detection-plugins/libspd.a(sp_session.o)' is incompatible with 
i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `detection-plugins/libspd.a(sp_tcp_flag_check.o)' is 
incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `detection-plugins/libspd.a(sp_tcp_win_check.o)' is 
incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `detection-plugins/libspd.a(sp_file_data.o)' is incompatible 
with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `detection-plugins/libspd.a(sp_base64_decode.o)' is 
incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `detection-plugins/libspd.a(sp_base64_data.o)' is incompatible 
with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `dynamic-plugins/libdynamic.a(sf_dynamic_plugins.o)' is 
incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `dynamic-plugins/libdynamic.a(sp_dynamic.o)' is incompatible 
with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `dynamic-plugins/libdynamic.a(sp_preprocopt.o)' is incompatible 
with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `dynamic-plugins/libdynamic.a(sf_convert_dynamic.o)' is 
incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `preprocessors/libspp.a(spp_arpspoof.o)' is incompatible with 
i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `preprocessors/libspp.a(spp_bo.o)' is incompatible with 
i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `preprocessors/libspp.a(spp_rpc_decode.o)' is incompatible with 
i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `preprocessors/libspp.a(spp_perfmonitor.o)' is incompatible 
with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `preprocessors/libspp.a(perf.o)' is incompatible with 
i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `preprocessors/libspp.a(perf-flow.o)' is incompatible with 
i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `preprocessors/libspp.a(perf-event.o)' is incompatible with 
i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `preprocessors/libspp.a(spp_httpinspect.o)' is incompatible 
with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `preprocessors/libspp.a(snort_httpinspect.o)' is incompatible 
with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `preprocessors/libspp.a(spp_sfportscan.o)' is incompatible with 
i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `preprocessors/libspp.a(str_search.o)' is incompatible with 
i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `preprocessors/libspp.a(stream_api.o)' is incompatible with 
i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `preprocessors/libspp.a(normalize.o)' is incompatible with 
i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `preprocessors/libspp.a(stream_ignore.o)' is incompatible with 
i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `preprocessors/libspp.a(portscan.o)' is incompatible with 
i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `parser/libparser.a(IpAddrSet.o)' is incompatible with 
i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `target-based/libtarget_based.a(sftarget_reader.o)' is 
incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `target-based/libtarget_based.a(sftarget_hostentry.o)' is 
incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `target-based/libtarget_based.a(sftarget_protocol_reference.o)' 
is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `target-based/libtarget_based.a(sf_attribute_table.o)' is 
incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `preprocessors/HttpInspect/libhttp_inspect.a(hi_ui_config.o)' 
is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file 
`preprocessors/HttpInspect/libhttp_inspect.a(hi_ui_server_lookup.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file 
`preprocessors/HttpInspect/libhttp_inspect.a(hi_ui_iis_unicode_map.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `preprocessors/HttpInspect/libhttp_inspect.a(hi_si.o)' is 
incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `preprocessors/HttpInspect/libhttp_inspect.a(hi_mi.o)' is 
incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file 
`preprocessors/HttpInspect/libhttp_inspect.a(hi_util_xmalloc.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `preprocessors/HttpInspect/libhttp_inspect.a(hi_cmd_lookup.o)' 
is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `preprocessors/HttpInspect/libhttp_inspect.a(hi_eo_log.o)' is 
incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `preprocessors/HttpInspect/libhttp_inspect.a(hi_client.o)' is 
incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `preprocessors/HttpInspect/libhttp_inspect.a(hi_server.o)' is 
incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `preprocessors/HttpInspect/libhttp_inspect.a(hi_norm.o)' is 
incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `preprocessors/HttpInspect/libhttp_inspect.a(hi_util_kmap.o)' 
is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `preprocessors/HttpInspect/libhttp_inspect.a(hi_client_norm.o)' 
is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `preprocessors/HttpInspect/libhttp_inspect.a(hi_server_norm.o)' 
is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `preprocessors/Stream5/libstream5.a(snort_stream5_tcp.o)' is 
incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `preprocessors/Stream5/libstream5.a(snort_stream5_udp.o)' is 
incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `preprocessors/Stream5/libstream5.a(snort_stream5_icmp.o)' is 
incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `preprocessors/Stream5/libstream5.a(snort_stream5_session.o)' 
is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `preprocessors/Stream5/libstream5.a(stream5_common.o)' is 
incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `sfutil/libsfutil.a(sfghash.o)' is incompatible with 
i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `sfutil/libsfutil.a(sfhashfcn.o)' is incompatible with 
i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `sfutil/libsfutil.a(sflsq.o)' is incompatible with i386:x86-64 
output
/usr/bin/ld: warning: i386 architecture of input file `sfutil/libsfutil.a(sfthd.o)' is incompatible with i386:x86-64 
output
/usr/bin/ld: warning: i386 architecture of input file `sfutil/libsfutil.a(mpse.o)' is incompatible with i386:x86-64 
output
/usr/bin/ld: warning: i386 architecture of input file `sfutil/libsfutil.a(util_net.o)' is incompatible with 
i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `sfutil/libsfutil.a(util_utf.o)' is incompatible with 
i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `sfutil/libsfutil.a(sfeventq.o)' is incompatible with 
i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `sfutil/libsfutil.a(sfsnprintfappend.o)' is incompatible with 
i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `sfutil/libsfutil.a(sfrt_dir.o)' is incompatible with 
i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `sfutil/libsfutil.a(sfportobject.o)' is incompatible with 
i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `sfutil/libsfutil.a(sfrim.o)' is incompatible with i386:x86-64 
output
/usr/bin/ld: warning: i386 architecture of input file `sfutil/libsfutil.a(sfprimetable.o)' is incompatible with 
i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `sfutil/libsfutil.a(sf_ip.o)' is incompatible with i386:x86-64 
output
/usr/bin/ld: warning: i386 architecture of input file `sfutil/libsfutil.a(sf_ipvar.o)' is incompatible with 
i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `sfutil/libsfutil.a(sf_vartable.o)' is incompatible with 
i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `sfutil/libsfutil.a(sf_iph.o)' is incompatible with i386:x86-64 
output
/usr/bin/ld: warning: i386 architecture of input file `sfutil/libsfutil.a(sf_textlog.o)' is incompatible with 
i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `sfutil/libsfutil.a(sfPolicy.o)' is incompatible with 
i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `sfutil/libsfutil.a(sfPolicyUserData.o)' is incompatible with 
i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `sfutil/libsfutil.a(sfActionQueue.o)' is incompatible with 
i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `sfutil/libsfutil.a(sfrf.o)' is incompatible with i386:x86-64 
output
/usr/bin/ld: warning: i386 architecture of input file `sfutil/libsfutil.a(strvec.o)' is incompatible with i386:x86-64 
output
/usr/bin/ld: warning: i386 architecture of input file `sfutil/libsfutil.a(sf_base64decode.o)' is incompatible with 
i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `sfutil/libsfutil.a(sfmemcap.o)' is incompatible with 
i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `sfutil/libsfutil.a(acsmx.o)' is incompatible with i386:x86-64 
output
/usr/bin/ld: warning: i386 architecture of input file `sfutil/libsfutil.a(acsmx2.o)' is incompatible with i386:x86-64 
output
/usr/bin/ld: warning: i386 architecture of input file `sfutil/libsfutil.a(sfksearch.o)' is incompatible with 
i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `sfutil/libsfutil.a(bnfa_search.o)' is incompatible with 
i386:x86-64 output
ppm.o: In function `ppm_print_cfg':
/usr/local/src/snort-2.9.0.3/src/ppm.c:183: undefined reference to `__udivdi3'
/usr/local/src/snort-2.9.0.3/src/ppm.c:197: undefined reference to `__udivdi3'
/usr/local/src/snort-2.9.0.3/src/ppm.c:167: undefined reference to `__udivdi3'
ppm.o: In function `ppm_print_summary':
/usr/local/src/snort-2.9.0.3/src/ppm.c:249: undefined reference to `__udivdi3'
/usr/local/src/snort-2.9.0.3/src/ppm.c:240: undefined reference to `__udivdi3'
ppm.o:/usr/local/src/snort-2.9.0.3/src/ppm.c:266: more undefined references to `__udivdi3' follow
collect2: ld returned 1 exit status
make[3]: *** [snort] Error 1
make[3]: Leaving directory `/usr/local/src/snort-2.9.0.3/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/snort-2.9.0.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/snort-2.9.0.3'
make: *** [all] Error 2
 
 
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl_______________________________________________
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

Best regards,

Alan
--
Alan Ptak
V: 310.488.8606
E: alan.ptak () gmail com








------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
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: