[Snort-users] Error building Snort 3 alpha 2 on FreeBSD

Al Lewis (allewi) allewi at ...589...
Thu Sep 24 11:20:30 EDT 2015


What version of FreeBSD are you using 32 or 64 bit?

Do you get the same error when you use the ./configure_cmake.sh script?



Albert Lewis
QA Software Engineer
SOURCEfire, Inc. now part of Cisco
9780 Patuxent Woods Drive
Columbia, MD 21046
Phone: (office) 443.430.7112
Email: allewi at ...589...

From: Hofer, Aaron (Sioux Falls) [mailto:Aaron.Hofer at ...17315...]
Sent: Thursday, September 24, 2015 10:21 AM
To: snort-users at lists.sourceforge.net
Subject: [Snort-users] Error building Snort 3 alpha 2 on FreeBSD

I'm trying to compile snort 3 alpha 2 on FreeBSD 10.2 and I get the following errors during the make phase.  This is on a fresh VM running on VMware workstation.

My configure line:  ./configure --prefix=$SNORT_PATH --with-luajit-includes=/usr/local/include --with-luajit-libraries=/usr/local/lib

Then 'make -j 8' dies here:

--- snort ---
/bin/sh ../libtool  --tag=CXX    --mode=link c++ -std=c++11 -fvisibility=hidden  -g -O2 -D_THREAD_SAFE -pthread -export-dynamic -L/usr/local/lib -L/usr/local/lib -Wl,-R/usr/local/lib -lpcre -L/usr/local/lib -ldnet -o snort main.o target_based/libtarget_based.a managers/libmanagers.a  main/libmain.a loggers/libloggers.a codecs/libcodecs.a  codecs/ip/libip_codecs.a codecs/misc/libmisc_codecs.a  codecs/root/libroot_codecs.a  codecs/link/liblink_codecs.a codecs/libcodec_module.a  network_inspectors/libnetwork_inspectors.a  network_inspectors/binder/libbinder.a  network_inspectors/normalize/libnormalize.a  network_inspectors/perf_monitor/libperf_monitor.a  service_inspectors/libservice_inspectors.a network_inspectors/arp_spoof/libarp_spoof.a  service_inspectors/back_orifice/libback_orifice.a  service_inspectors/dns/libdns.a  service_inspectors/ftp_telnet/libftp_telnet.a  service_inspectors/imap/libimap.a  service_inspectors/nhttp_inspect/libnhttp_inspect.a  service_inspectors/pop/libpop.a  service_inspectors/rpc_decode/librpc_decode.a  service_inspectors/sip/libsip.a  service_inspectors/smtp/libsmtp.a  service_inspectors/ssh/libssh.a  service_inspectors/ssl/libssl.a  service_inspectors/wizard/libwizard.a  network_inspectors/port_scan/libport_scan.a stream/libstream.a  stream/base/libstream_base.a stream/ip/libstream_ip.a  stream/icmp/libstream_icmp.a stream/libtcp/libstream_libtcp.a  stream/tcp/libstream_tcp.a stream/udp/libstream_udp.a  stream/user/libstream_user.a stream/file/libstream_file.a  file_api/libfile_api.a file_api/libs/libfile.a  service_inspectors/http_inspect/libhttp_inspect.a   ips_options/libips_options.a parser/libparser.a  search_engines/libsearch_engines.a flow/libflow.a  control/libcontrol.a filters/libfilter.a  detection/libdetection.a framework/libframework.a  time/libtime.a actions/libips_actions.a events/libevents.a  hash/libhash.a log/liblog.a packet_io/libpacket_io.a  helpers/libhelpers.a lua/liblua.a decompress/libdecompress.a  sfip/libsfip.a sfrt/libsfrt.a protocols/libprotocols.a  ports/libports.a utils/libutils.a  -lz -ldaq_static -ldnet -lpcre -lluajit-5.1 -lpcap  -L/usr/local/lib -ldaq_static_modules  -lpcap -lsfbpf -lpcap -lsfbpf -lz -llzma -lcrypto
libtool: link: c++ -std=c++11 -fvisibility=hidden -g -O2 -D_THREAD_SAFE -pthread -Wl,-R/usr/local/lib -o snort main.o -Wl,--export-dynamic  -L/usr/local/lib target_based/libtarget_based.a managers/libmanagers.a main/libmain.a loggers/libloggers.a codecs/libcodecs.a codecs/ip/libip_codecs.a codecs/misc/libmisc_codecs.a codecs/root/libroot_codecs.a codecs/link/liblink_codecs.a codecs/libcodec_module.a network_inspectors/libnetwork_inspectors.a network_inspectors/binder/libbinder.a network_inspectors/normalize/libnormalize.a network_inspectors/perf_monitor/libperf_monitor.a service_inspectors/libservice_inspectors.a network_inspectors/arp_spoof/libarp_spoof.a service_inspectors/back_orifice/libback_orifice.a service_inspectors/dns/libdns.a service_inspectors/ftp_telnet/libftp_telnet.a service_inspectors/imap/libimap.a service_inspectors/nhttp_inspect/libnhttp_inspect.a service_inspectors/pop/libpop.a service_inspectors/rpc_decode/librpc_decode.a service_inspectors/sip/libsip.a service_inspectors/smtp/libsmtp.a service_inspectors/ssh/libssh.a service_inspectors/ssl/libssl.a service_inspectors/wizard/libwizard.a network_inspectors/port_scan/libport_scan.a stream/libstream.a stream/base/libstream_base.a stream/ip/libstream_ip.a stream/icmp/libstream_icmp.a stream/libtcp/libstream_libtcp.a stream/tcp/libstream_tcp.a stream/udp/libstream_udp.a stream/user/libstream_user.a stream/file/libstream_file.a file_api/libfile_api.a file_api/libs/libfile.a service_inspectors/http_inspect/libhttp_inspect.a ips_options/libips_options.a parser/libparser.a search_engines/libsearch_engines.a flow/libflow.a control/libcontrol.a filters/libfilter.a detection/libdetection.a framework/libframework.a time/libtime.a actions/libips_actions.a events/libevents.a hash/libhash.a log/liblog.a packet_io/libpacket_io.a helpers/libhelpers.a lua/liblua.a decompress/libdecompress.a sfip/libsfip.a sfrt/libsfrt.a protocols/libprotocols.a ports/libports.a utils/libutils.a /usr/local/lib/libdaq_static.a -ldnet -lpcre -lluajit-5.1 /usr/local/lib/libdaq_static_modules.a -lpcap /usr/local/lib/libsfbpf.so -lz -llzma -lcrypto -pthread -Wl,-rpath -Wl,/usr/local/lib -Wl,-rpath -Wl,/usr/local/lib
stream/tcp/libstream_tcp.a(tcp_session.o): In function `TcpSessionClear(Flow*, TcpSession*, int)':
/usr/local/etc/snort-3.0.0-a2/src/stream/tcp/tcp_session.cc:699: undefined reference to `paf_clear(PAF_State*)'
/usr/local/etc/snort-3.0.0-a2/src/stream/tcp/tcp_session.cc:700: undefined reference to `paf_clear(PAF_State*)'
stream/tcp/libstream_tcp.a(tcp_session.o): In function `TcpSession::set_splitter(bool, StreamSplitter*)':
/usr/local/etc/snort-3.0.0-a2/src/stream/tcp/tcp_session.cc:2602: undefined reference to `paf_setup(PAF_State*)'
stream/tcp/libstream_tcp.a(tcp_reassembly.o): In function `flush_pdu_ips(TcpSession*, TcpTracker*, unsigned int*)':
/usr/local/etc/snort-3.0.0-a2/src/stream/tcp/tcp_reassembly.cc:1197: undefined reference to `paf_check(StreamSplitter*, PAF_State*, Flow*, unsigned char const*, unsigned int, unsigned int, unsigned int, unsigned int*)'
stream/tcp/libstream_tcp.a(tcp_reassembly.o): In function `flush_pdu_ackd(TcpSession*, TcpTracker*, unsigned int*)':
/usr/local/etc/snort-3.0.0-a2/src/stream/tcp/tcp_reassembly.cc:1275: undefined reference to `paf_check(StreamSplitter*, PAF_State*, Flow*, unsigned char const*, unsigned int, unsigned int, unsigned int, unsigned int*)'
stream/user/libstream_user.a(user_session.o): In function `UserTracker::init()':
/usr/local/etc/snort-3.0.0-a2/src/stream/user/user_session.cc:130: undefined reference to `paf_clear(PAF_State*)'
/usr/local/etc/snort-3.0.0-a2/src/stream/user/user_session.cc:130: undefined reference to `paf_clear(PAF_State*)'
stream/user/libstream_user.a(user_session.o): In function `UserTracker::scan(Packet*, unsigned int&)':
/usr/local/etc/snort-3.0.0-a2/src/stream/user/user_session.cc:181: undefined reference to `paf_check(StreamSplitter*, PAF_State*, Flow*, unsigned char const*, unsigned int, unsigned int, unsigned int, unsigned int*)'
stream/user/libstream_user.a(user_session.o): In function `UserSession::restart(Packet*)':
/usr/local/etc/snort-3.0.0-a2/src/stream/user/user_session.cc:415: undefined reference to `paf_reset(PAF_State*)'
stream/user/libstream_user.a(user_session.o): In function `UserTracker::init()':
/usr/local/etc/snort-3.0.0-a2/src/stream/user/user_session.cc:130: undefined reference to `paf_clear(PAF_State*)'
/usr/local/etc/snort-3.0.0-a2/src/stream/user/user_session.cc:130: undefined reference to `paf_clear(PAF_State*)'
/usr/local/etc/snort-3.0.0-a2/src/stream/user/user_session.cc:130: undefined reference to `paf_clear(PAF_State*)'
/usr/local/etc/snort-3.0.0-a2/src/stream/user/user_session.cc:130: undefined reference to `paf_clear(PAF_State*)'
stream/user/libstream_user.a(user_session.o): In function `UserSession::set_splitter(bool, StreamSplitter*)':
/usr/local/etc/snort-3.0.0-a2/src/stream/user/user_session.cc:459: undefined reference to `paf_setup(PAF_State*)'
c++: error: linker command failed with exit code 1 (use -v to see invocation)
*** [snort] Error code 1

make[3]: stopped in /usr/local/etc/snort-3.0.0-a2/src
1 error

make[3]: stopped in /usr/local/etc/snort-3.0.0-a2/src
*** [all-recursive] Error code 1

make[2]: stopped in /usr/local/etc/snort-3.0.0-a2/src
1 error

make[2]: stopped in /usr/local/etc/snort-3.0.0-a2/src
*** [all-recursive] Error code 1

make[1]: stopped in /usr/local/etc/snort-3.0.0-a2
1 error

make[1]: stopped in /usr/local/etc/snort-3.0.0-a2
*** [all] Error code 2

make: stopped in /usr/local/etc/snort-3.0.0-a2
1 error

make: stopped in /usr/local/etc/snort-3.0.0-a2

Is this a bug with the current code or am I doing something wrong?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.snort.org/pipermail/snort-users/attachments/20150924/1ef569c6/attachment.html>


More information about the Snort-users mailing list