[Snort-devel] Compilation Errors with Snort 3 a4 223: issues with DAQ (DAQ not declared in this scope)

Al Lewis (allewi) allewi at ...3461...
Sat Jan 7 09:26:50 EST 2017


Do you have the correct version of the daq installed (daq-2.2.1.tar.gz) ?


Albert Lewis
ENGINEER.SOFTWARE ENGINEERING
SOURCEfire, Inc. now part of Cisco
Email: allewi at ...3461...<mailto:allewi at ...3461...>

From: Noah Dietrich <noah_dietrich at ...3622...<mailto:noah_dietrich at ...3622...>>
Date: Saturday, January 7, 2017 at 5:59 AM
To: "snort-devel at lists.sourceforge.net<mailto:snort-devel at lists.sourceforge.net>" <snort-devel at lists.sourceforge.net<mailto:snort-devel at lists.sourceforge.net>>
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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.snort.org/pipermail/snort-devel/attachments/20170107/34ad9eaa/attachment.html>


More information about the Snort-devel mailing list