Re: Compilation Errors with Snort 3 a4 223: issues with DAQ (DAQ not declared in this scope)

Noah Dietrich <[email protected]>
Newsgroups gmane.comp.security.ids.snort.devel
Message-ID <CA+N0JEwuAb2WAtGm7Nx0PqwVxZXC4sqHPwjg8=1P9HHkpDo+yw@mail.gmail.com>
That fixed it. I did not realize there was a different DAQ for snort 3.

thank you for your help.

Noah


On Sat, Jan 7, 2017 at 4:26 PM, Al Lewis (allewi) <[email protected]> wrote:

> Do you have the correct version of the daq installed (daq-2.2.1.tar.gz) ?
>
>
> *Albert Lewis*
>
> ENGINEER.SOFTWARE ENGINEERING
>
> SOURCE*fire*, Inc. now part of *Cisco*
>
> Email: [email protected]
>
> From: Noah Dietrich <[email protected]>
> Date: Saturday, January 7, 2017 at 5:59 AM
> To: "[email protected]" <[email protected]
> >
> Subject: [Snort-devel] Compilation Errors with Snort 3 a4 223: issues
> with DAQ (DAQ not declared in this scope)
>
> Hello,
>
> I am getting compilation errors with the latest version of Snort 3 A4
> build 223 (snort-3.0.0-a4-223).
> I see similar errors with both cmake and with autotools, on Ubuntu 14 x86
> and x64, with all recommended software installed
>
> The error seems to have something to do with not being able to locate
> information in the DAQ libraries (which installed with no issues).  I tried
> manually pointing to the daq directories in ./configure without any success.
>
> thank you,
> Noah
>
>
>
> *********************
> ** CMAKE Errors:
> * Build steps:
> wget https://snort.org/downloads/snortplus/snort-3.0.0-a4-223-cmake.tar.gz
> tar -xzvf snort-3.0.0-a4-223-cmake.tar.gz
> cd snort-3.0.0-a4
> ./configure_cmake.sh --prefix=/opt/snort
> cd build
> make
>
> * output from Make:
> --SNIP--
>
> Linking CXX static library libhash.a
> [ 13%] Built target hash
> Scanning dependencies of target utils
> [ 13%] Building CXX object src/utils/CMakeFiles/utils.dir/boyer_moore.cc.o
> [ 13%] Building CXX object src/utils/CMakeFiles/utils.dir/dyn_array.cc.o
> [ 13%] Building CXX object src/utils/CMakeFiles/utils.dir/kmap.cc.o
> [ 14%] Building CXX object src/utils/CMakeFiles/utils.dir/segment_mem.cc.o
> [ 14%] Building CXX object src/utils/CMakeFiles/utils.dir/sflsq.cc.o
> [ 14%] Building CXX object src/utils/CMakeFiles/utils.dir/sfmemcap.cc.o
> [ 14%] Building CXX object src/utils/CMakeFiles/utils.
> dir/sfsnprintfappend.cc.o
> [ 14%] Building CXX object src/utils/CMakeFiles/utils.dir/stats.cc.o
> [ 14%] Building CXX object src/utils/CMakeFiles/utils.dir/util.cc.o
> /home/noah/snort_src/snort-3.0.0-a4/src/utils/util.cc: In function ‘int
> DisplayBanner()’:
> /home/noah/snort_src/snort-3.0.0-a4/src/utils/util.cc:117:72: error:
> ‘daq_version_string’ was not declared in this scope
>     LogMessage("           Using DAQ version %s\n", daq_version_string());
>                                                                ^
> make[2]: *** [src/utils/CMakeFiles/utils.dir/util.cc.o] Error 1
> make[1]: *** [src/utils/CMakeFiles/utils.dir/all] Error 2
> make: *** [all] Error 2
>
> *********************
> *** autotoos errors:
> * build steps:
> ./configure  --prefix=/opt/snort
> make
>
> * output from ./configure:
> --SNIP---
> config.status: executing libtool commands
>
>     snort 3.0.0-a4
>     ========
>
>     prefix:         /opt/snort
>     sysconfdir:     ${prefix}/etc
>     libdir:         ${exec_prefix}/lib
>     includedir:     ${prefix}/include
>
>     compiler:       gcc
>     compiler++:     g++ -std=c++11
>     cflags:         -std=gnu99 -g -O2
>     cxxflags:       -pthread -g -O2
>     cppflags:          -fvisibility=hidden -I/usr//include/luajit-2.0
> -I/usr/include -I/usr/local/include/safec-1.0 -I/usr/local/lib/safec-1.0/include
>   -I/usr/local/include/hs
>     ldflags:           -L/usr//lib     -L/usr/lib -ldumbnet
> -L/usr/local/lib   -L/usr/local/lib
>     libs:           -lcrypto -lz -ldaq_static -ldumbnet -lpcre
> -lluajit-5.1 -lhwloc -lpcap  -ldl -L/usr/local/lib -ldaq_static_modules
>  -lsfbpf -lpcap -lsfbpf -lpcap -lsfbpf -lz -llzma -lsafec-1.0 -lhs
>
>     am_cppflags:    -I$(top_builddir) -I$(top_srcdir) -I$(top_srcdir)/src
> -I$(top_srcdir)/src/network_inspectors
>     am_cflags:
>     am_cxxflags:
>     am_ldflags:
>
> * output from make:
>
> ---SNIP ---
> Making all in packet_io
> make[3]: Entering directory `/home/noah/snort_src/snort-3.
> 0.0-a4/src/packet_io'
>  CXX      active.o
>  CXX      intf.o
>  CXX      sfdaq.o
> sfdaq.cc: In member function ‘int SFDAQInstance::modify_flow_opaque(const
> DAQ_PktHdr_t*, uint32_t)’:
> sfdaq.cc:544:9: error: ‘DAQ_ModFlow_t’ has no member named ‘type’
>     mod.type = DAQ_MODFLOW_TYPE_OPAQUE;
> ^
> sfdaq.cc:544:16: error: ‘DAQ_MODFLOW_TYPE_OPAQUE’ was not declared in this
> scope
>     mod.type = DAQ_MODFLOW_TYPE_OPAQUE;
>        ^
> sfdaq.cc:545:9: error: ‘DAQ_ModFlow_t’ has no member named ‘length’
>     mod.length = sizeof(opaque);
> ^
> sfdaq.cc:546:9: error: ‘DAQ_ModFlow_t’ has no member named ‘value’
>     mod.value = &opaque;
> ^
> sfdaq.cc: In member function ‘int SFDAQInstance::add_expected(const
> Packet*, const SfIp*, uint16_t, const SfIp*, uint16_t, IpProtocol, unsigned
> int, unsigned int)’:
> sfdaq.cc:555:5: error: ‘DAQ_Data_Channel_Params_t’ was not declared in
> this scope
>     DAQ_Data_Channel_Params_t daq_params;
>     ^
> sfdaq.cc:555:31: error: expected ‘;’ before ‘daq_params’
>     DAQ_Data_Channel_Params_t daq_params;
>                       ^
> sfdaq.cc:558:12: error: ‘DAQ_DP_key_t’ has no member named ‘src_af’
>     dp_key.src_af = cliIP->get_family();
>    ^
> sfdaq.cc:565:12: error: ‘DAQ_DP_key_t’ has no member named ‘dst_af’
>     dp_key.dst_af = srvIP->get_family();
>    ^
> sfdaq.cc:582:30: error: ‘DAQ_DP_TUNNEL_TYPE_MPLS_TUNNEL’ was not declared
> in this scope
> dp_key.tunnel_type = DAQ_DP_TUNNEL_TYPE_MPLS_TUNNEL;
>                      ^
> sfdaq.cc:590:13: error: ‘daq_params’ was not declared in this scope
>     memset(&daq_params, 0, sizeof(daq_params));
>     ^
> make[3]: *** [sfdaq.o] Error 1
> make[3]: Leaving directory `/home/noah/snort_src/snort-3.
> 0.0-a4/src/packet_io'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/noah/snort_src/snort-3.0.0-a4/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/noah/snort_src/snort-3.0.0-a4'
> make: *** [all] Error 2
>
>

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot

_______________________________________________
Snort-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/snort-devel

Archive:
http://sourceforge.net/mailarchive/forum.php?forum_name=snort-devel

Please visit http://blog.snort.org for the latest news about Snort!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.