Giter Site home page Giter Site logo

libdaq's Introduction

LibDAQ: The Data AcQuisition Library

Overview

LibDAQ is a pluggable abstraction layer for interacting with a data source (traditionally a network interface or network data plane). Applications using LibDAQ use the library API defined in daq.h to load, configure, and interact with pluggable DAQ modules.

DAQ Modules

Each DAQ module implements some or all parts of the DAQ module API depending on its type and capabilities. There are two main classes of DAQ modules: base modules and wrapper modules. Base modules provide a full-fledged and independently usable implementation of the DAQ module API, while wrapper modules provide a subset of the API that is applied in a decorator pattern when combined with a base module.

DAQ Instances

A DAQ instance is an instantiation of a DAQ configuration that contains exactly one base module and zero or more wrapper modules. The wrapper modules are layered on top of the base module in LIFO order (sometimes referred to as a "module stack") and the overrides present in the wrapper module API implementations will be resolved from the top down. The basic life cycle of a DAQ instance once a configuration is defined is as such: instantiation, starting, stopping, and destruction (instantiate => start => stop => destroy).

DAQ Messages

At its core, LibDAQ is about receiving and processing data. The fundamental unit used for passing data from a DAQ instance up to the application is the DAQ message. Each message is composed of three main components: a type, a header, and some data. For example, the message used to convey a packet is of the DAQ Packet Message type with an associated DAQ Packet Header and the actual packet data itself. Messages are received in vectors/batches from the DAQ instance and finalized individually. The vector of messages received is free to be heterogeneous based entirely on what the DAQ instance happens to yield.

The basic main loop for any simple LibDAQ program will look something like this:

DAQ_Msg_h msgs[16];
DAQ_RecvStatus rstat;
unsigned num_recv = daq_instance_msg_receive(instance, 16, msgs, &rstat);
<Check the receive status in rstat for error conditions and bail>
for (unsigned idx = 0; idx < num_recv; idx++)
{
    DAQ_Msg_h msg = ctxt->msgs[idx];
    <Perform work on the DAQ message that results in a verdict>
    daq_instance_msg_finalize(instance, msg, DAQ_VERDICT_*);
}

Repeated inside of a loop until an error or otherwise terminal condition is met.

DAQ messages may be finalized in any order and even finalized many receive calls later. Once a message is finalized, the message handle should be considered invalid by the application, as well as any and all of its data.

This is a large departure from the way LibDAQ 2.x worked. Previously, packets were received via a callback from a looping acquisition function and a verdict for each packet was the required return value from the callback. Once the callback returned, any ownership or control of the packet was surrendered back to the DAQ instance. The new paradigm allows for far more control by the application, with the responsibility that comes along with that power.

DAQ IOCTLs

DAQ IOCTLs (input/output controls) represent a semi-generic method for communicating with special functionality in the DAQ modules and the data planes they are abstracting. There are a set of first-class IOCTLs defined in the API, while IOCTL command IDs between 1025 and 65535 can be used for custom IOCTLs. Each IOCTL takes a pointer to an argument and a length and beyond that is generally free-form. An example of a first-class DAQ IOCTL would be the CREATE_EXPECTED_FLOW command, which will request that the backing data source set up the expectation for a new flow based on a potentially complex set of features to identify the expected flow with.

Although the majority of them currently do, there is no requirement that IOCTL operations pertain to a particular DAQ message or flow.

For those familiar with LibDAQ 2.x, the IOCTL functionality has subsumed the previously separate Modify Flow, Query Flow, Data Plane Add Data Channel, and Get Device Index functions.

Build and Install

LibDAQ is a standard autotools project and builds and installs as such:

./configure
make
make install

If building from git, you will need to do the following to generate the configure script prior to running the steps above:

./bootstrap

This will build and install both the library and modules.

When the DAQ library is built, both static and dynamic flavors will be generated. The various DAQ modules will be built if the requisite headers and libraries are available. You can disable individual modules, etc. with options to configure. For the complete list of configure options, run:

./configure --help

libdaq's People

Contributors

arunkayambu avatar btholpady avatar davism-cisco avatar dkyrylov avatar ffontaine avatar ma-dagon avatar mjs717 avatar priyanka-gurudev avatar snortadmin avatar stechew avatar sunimukh avatar xiche avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

libdaq's Issues

make command trigger error

Hello Team,

When I run the make command it triggers and error ( My Linux flavor is CentOS 7) :

fst/fst.h:178:16: error: 'const TcpHdr' has no member named 'th_flags'
{ return (tcp->th_flags & flag) == flag; }
^
fst/fst.h: In member function 'void FstTcpTracker::eval(const DecodeData&, bool)':
fst/fst.h:187:45: error: 'TH_SYN' was not declared in this scope
if (c2s && is_tcp_flag_set(tcp, TH_SYN) && !is_tcp_flag_set(tcp, TH_ACK))
^
fst/fst.h:187:78: error: 'TH_ACK' was not declared in this scope
if (c2s && is_tcp_flag_set(tcp, TH_SYN) && !is_tcp_flag_set(tcp, TH_ACK))
^
fst/fst.h:192:46: error: 'TH_SYN' was not declared in this scope
if (!c2s && is_tcp_flag_set(tcp, TH_SYN | TH_ACK))
^
fst/fst.h:192:55: error: 'TH_ACK' was not declared in this scope
if (!c2s && is_tcp_flag_set(tcp, TH_SYN | TH_ACK))
^
fst/fst.h:197:45: error: 'TH_ACK' was not declared in this scope
if (c2s && is_tcp_flag_set(tcp, TH_ACK) && !is_tcp_flag_set(tcp, TH_SYN))
^
fst/fst.h:197:78: error: 'TH_SYN' was not declared in this scope
if (c2s && is_tcp_flag_set(tcp, TH_ACK) && !is_tcp_flag_set(tcp, TH_SYN))
^
fst/fst.h:206:38: error: 'TH_FIN' was not declared in this scope
if (is_tcp_flag_set(tcp, TH_FIN))
^
fst/fst.h: In member function 'bool FstTcpTracker::process_bare_ack(const DecodeData&, bool)':
fst/fst.h:222:63: error: 'TH_ACK' was not declared in this scope
if (tcp_state != TTS_ESTABLISHED || !is_tcp_flag_set(tcp, TH_ACK) || dd.tcp_data_segment)
^
fst/fst.h:226:27: error: 'const TcpHdr' has no member named 'th_ack'
if (SEQ_GT(ntohl(tcp->th_ack), ntohl(meta_ack_data.tcp_ack_seq_num)))
^
fst/fst.h:33:30: note: in definition of macro 'SEQ_GT'
#define SEQ_GT(a,b) ((int)((a) - (b)) > 0)
^
fst/fst.h:228:46: error: 'const TcpHdr' has no member named 'th_ack'
meta_ack_data.tcp_ack_seq_num = tcp->th_ack;
^
fst/fst.h:229:46: error: 'const TcpHdr' has no member named 'th_win'
meta_ack_data.tcp_window_size = tcp->th_win;
^
fst/fst.h: In member function 'bool FstTcpTracker::get_meta_ack_data(DAQ_PktTcpAckData_t&, bool)':
fst/fst.h:240:23: warning: missing initializer for member '_daq_pkt_tcp_ack_data::tcp_ack_seq_num' [-Wmissing-field-initializers]
meta_ack_data = { };
^
fst/fst.h:240:23: warning: missing initializer for member '_daq_pkt_tcp_ack_data::tcp_window_size' [-Wmissing-field-initializers]
fst/fst.h: In member function 'bool FstKey::populate(const DAQ_PktHdr_t*, const DecodeData*)':
fst/fst.h:546:29: error: 'const TcpHdr' has no member named 'th_sport'
src_port = dd->tcp->th_sport;
^
fst/fst.h:547:29: error: 'const TcpHdr' has no member named 'th_dport'
dst_port = dd->tcp->th_dport;
^
fst/fst.h:552:29: error: 'const UdpHdr' has no member named 'uh_sport'
src_port = dd->udp->uh_sport;
^
fst/fst.h:553:29: error: 'const UdpHdr' has no member named 'uh_dport'
dst_port = dd->udp->uh_dport;
^
fst/daq_fst.cc: At global scope:
fst/daq_fst.cc:88:25: warning: missing initializer for member 'FstMsgPool::pool' [-Wmissing-field-initializers]
FstMsgPool pool = { };
^
fst/daq_fst.cc:88:25: warning: missing initializer for member 'FstMsgPool::freelist' [-Wmissing-field-initializers]
fst/daq_fst.cc:88:25: warning: missing initializer for member 'FstMsgPool::info' [-Wmissing-field-initializers]
make[1]: *** [fst/fst_libdaq_static_fst_la-daq_fst.lo] Error 1
make[1]: Leaving directory `/root/libdaq/modules'
make: *** [install-recursive] Error 1

`make check` fails with `mold: error: undefined symbol: __wrap_stat`

Checked out v3.0.15 from git:

  1. autoreconf -fvi
  2. CFLAGS="-O2 -pipe -ffat-lto-objects -fPIC -fuse-ld=mold -flto=auto" CXXFLAGS="-O2 -pipe -ffat-lto-objects -fPIC -fuse-ld=mold -flto=auto" FCFLAGS="-O2 -pipe -ffat-lto-objects -fPIC -fuse-ld=mold -flto=auto" FFLAGS="-O2 -pipe -ffat-lto-objects -fPIC -fuse-ld=mold -flto=auto" LD_LIBRARY_PATH="/usr/local/lib64" LDFLAGS="-flto=auto " ./configure --prefix=/usr/local --libdir=/usr/local/lib64 --mandir=/usr/local/share/man --disable-dependency-tracking --build=x86_64-cros-linux-gnu --host=x86_64-cros-linux-gnu --target=x86_64-cros-linux-gnu --program-prefix='' --program-suffix=''
  3. make -j8
  4. make check
/bin/sh ../libtool  --tag=CC   --mode=link x86_64-cros-linux-gnu-gcc -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs   -I../api -O2 -pipe -ffat-lto-objects -fPIC  -fuse-ld=mold  -flto=auto   -static-libtool-libs -Wl,--wrap,printf -Wl,--wrap,__printf_chk -Wl,--wrap,fprintf -Wl,--wrap,__fprintf_chk -Wl,--wrap,opendir -Wl,--wrap,readdir -Wl,--wrap,closedir -Wl,--wrap,stat -Wl,--wrap,__xstat -Wl,--wrap,dlopen -Wl,--wrap,dlsym -Wl,--wrap,dlclose -flto=auto  -o api_base_test api_base_test-api_base_test.o api_base_test-daq_test_module.o api_base_test-mock_stdio.o ../api/libdaq.la -ldl -lcmocka 
libtool: link: x86_64-cros-linux-gnu-gcc -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -I../api -O2 -pipe -ffat-lto-objects -fPIC -fuse-ld=mold -flto=auto -Wl,--wrap -Wl,printf -Wl,--wrap -Wl,__printf_chk -Wl,--wrap -Wl,fprintf -Wl,--wrap -Wl,__fprintf_chk -Wl,--wrap -Wl,opendir -Wl,--wrap -Wl,readdir -Wl,--wrap -Wl,closedir -Wl,--wrap -Wl,stat -Wl,--wrap -Wl,__xstat -Wl,--wrap -Wl,dlopen -Wl,--wrap -Wl,dlsym -Wl,--wrap -Wl,dlclose -flto=auto -o api_base_test api_base_test-api_base_test.o api_base_test-daq_test_module.o api_base_test-mock_stdio.o  ../api/.libs/libdaq.a -ldl -lcmocka
mold: error: undefined symbol: __wrap_stat
>>> referenced by <artificial>
>>>               /usr/local/tmp/cciLfe0g.ltrans0.ltrans.o:(daq_load_dynamic_modules)
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:641: api_base_test] Error 1
make[2]: Leaving directory '/home/chronos/user/libdaq/test'
make[1]: *** [Makefile:1017: check-am] Error 2
make[1]: Leaving directory '/home/chronos/user/libdaq/test'
make: *** [Makefile:567: check-recursive] Error 1

Error in building libdaq

Hello, I have cloned the git repo on my pc and as well in docker. I am getting the following error when I run ./bootstrap. am I missing any package that I have to install? Thank you in advance.
'''
root@c9435c7e7551:/snort/libdaq# ./bootstrap

  • autoreconf -ivf --warnings=all
    autoreconf: Entering directory `.'
    autoreconf: configure.ac: not using Gettext
    autoreconf: running: aclocal --force --warnings=all -I m4
    autoreconf: configure.ac: tracing
    autoreconf: running: libtoolize --copy --force
    libtoolize: putting auxiliary files in '.'.
    libtoolize: copying file './ltmain.sh'
    libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
    libtoolize: copying file 'm4/libtool.m4'
    libtoolize: copying file 'm4/ltoptions.m4'
    libtoolize: copying file 'm4/ltsugar.m4'
    libtoolize: copying file 'm4/ltversion.m4'
    libtoolize: copying file 'm4/lt~obsolete.m4'
    autoreconf: running: /usr/bin/autoconf --force --warnings=all
    configure.ac:133: error: possibly undefined macro: AC_CHECK_HEADERS
    If this token and others are legitimate, please use m4_pattern_allow.
    See the Autoconf documentation.
    configure.ac:152: error: possibly undefined macro: AC_MSG_WARN
    configure:18282: error: possibly undefined macro: dnl
    configure:18287: error: possibly undefined macro: AS_IF
    autoreconf: /usr/bin/autoconf failed with exit status: 1
    '''

3.0.11: cmocka has not been found -> autoconf finishes with exit 0 -> test suite build fails on missing cmocka headers

From configure output:

checking for x86_64-redhat-linux-gnu-pkg-config... /usr/bin/x86_64-redhat-linux-gnu-pkg-config
checking pkg-config is at least version 0.9.0... yes
configure: WARNING: No libcmocka-1.0.0 or newer library found, cmocka tests will not be built

and check target fails on

[tkloczko@pers-jacek libdaq-3.0.11]$ make check
Making check in api
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libdaq-3.0.11/api'
make[1]: Nothing to be done for 'check'.
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libdaq-3.0.11/api'
Making check in modules
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libdaq-3.0.11/modules'
make[1]: Nothing to be done for 'check'.
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libdaq-3.0.11/modules'
Making check in example
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libdaq-3.0.11/example'
make[1]: Nothing to be done for 'check'.
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libdaq-3.0.11/example'
Making check in test
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libdaq-3.0.11/test'
make  api_base_test api_config_test
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libdaq-3.0.11/test'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option  -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs   -I../api -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o api_base_test-api_base_test.o `test -f 'api_base_test.c' || echo './'`api_base_test.c
api_base_test.c:33:10: fatal error: cmocka.h: No such file or directory
   33 | #include <cmocka.h>
      |          ^~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:691: api_base_test-api_base_test.o] Error 1
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libdaq-3.0.11/test'

There is no ./configure file

The first step in the "Build and Install" instructions in README.md state to run "./configure" -- but there is no such file in either the v3.0.5 release nor the master. I suggest putting the "./bootstrap" instruction BEFORE the "./configure" instruction.

few errors with libdaq-3.0.3

  • debain8 3.16.0-10-686-pae
  • Libdaq3 compiles and supports netmap has been wrong but daq 2.0.7 does

image
image

  • daq 2.0.7

image
image

  • libdaq-3.0.3

image
image

Error in building LibDAQ

Hello everyone!

I am trying to install SNORT v3 on a Standalone Laptop with Operating System (PRETTY_NAME) Red Hat Enterprise Linux Workstation 7.9 (Maipo).

From the "Download" page of the https://www.snort.org/ website I downloaded the three Source files:

  • snort3-3.1.78.0.tar.gz
  • libdaq-3.0.14.tar.gz
  • snort3_extra-3.1.78.0.tar.gz.

I also downloaded the "Dependencies" from https://github.com/snort3/snort3#readme.

Saved everything on a USB stick and copied it to the Laptop (not connected to Intenet) in the following repository:

/tmp/SNORT-3/Source

Executed the decompression tar and extracted all the files mentioned above to the same repository (Source).

The manual installation procedure that you can see here https://docs.snort.org/start/installation
says to run first the LibDAQ installation but, unfortunately, I already encounter the first error when I run
(under /tmp/SNORT-3/Source/libdaq-3.0.14):

$ ./Bootsrap

  • autoreconf -ivf --warnings=all
    ./Boostrap: line 4: autoreconf: command not found

I read an answer to a similar post "Error in building libdaq" and I checked if the package "pkg-config" is installed and indeed it is present in the "/usr/bin/pkg-config" directory but if I run the following command to check the installation of the package the result is as follows:

$ sudo -s rpm -q pkg-config
package pkg-config is not installed

Thank you in advance for any support on how to proceed

KR,
Paolo

somthings is error

a@zhou-machine:~/snort_src/libdaq$ ./bootstrap

  • autoreconf -ivf --warnings=all
    autoreconf: Entering directory `.'
    autoreconf: configure.ac: not using Gettext
    autoreconf: running: aclocal --force --warnings=all -I m4
    autoreconf: configure.ac: tracing
    autoreconf: running: libtoolize --copy --force
    libtoolize: putting auxiliary files in '../..'.
    libtoolize: copying file '../../ltmain.sh'
    libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
    libtoolize: copying file 'm4/libtool.m4'
    libtoolize: copying file 'm4/ltoptions.m4'
    libtoolize: copying file 'm4/ltsugar.m4'
    libtoolize: copying file 'm4/ltversion.m4'
    libtoolize: copying file 'm4/lt~obsolete.m4'
    autoreconf: running: /usr/bin/autoconf --force --warnings=all
    autoreconf: running: /usr/bin/autoheader --force --warnings=all
    autoreconf: running: automake --add-missing --copy --force-missing --warnings=all
    configure.ac:29: installing './ar-lib'
    configure.ac:26: installing './compile'
    configure.ac:34: installing './config.guess'
    configure.ac:34: installing './config.sub'
    configure.ac:19: installing './install-sh'
    configure.ac:34: error: required file './ltmain.sh' not found
    configure.ac:19: installing './missing'
    api/Makefile.am: installing './depcomp'
    parallel-tests: installing './test-driver'
    autoreconf: automake failed with exit status: 1

Error executing ./configure

Expects

  • Fedora Server 38
  • Virtual Machine with VirtualBox

Details

After executing ./bootstrap I generated the file configure, but when I executed it I got an error on the line 5132.
When I checked the code I found an error sintax on line 5131, cause there was an empty '' and a ')' was missing on the first case.

image

After I fixed that I got another error on the 6031 line. It was an extra at the end of the code ')'.

image

After If fixed those errors it went all good.

3.0.11: test suite fails on `Failed to register static DAQ module`

+ cd libdaq-3.0.11
+ /usr/bin/make -O -j48 V=1 VERBOSE=1 check
Making check in api
make[1]: Nothing to be done for 'check'.
Making check in modules
make[1]: Nothing to be done for 'check'.
Making check in example
make[1]: Nothing to be done for 'check'.
Making check in test
/usr/bin/make  api_base_test api_config_test
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libdaq-3.0.11/test'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option  -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs   -I../api -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o api_config_test-daq_test_module.o `test -f 'daq_test_module.c' || echo './'`daq_test_module.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libdaq-3.0.11/test'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libdaq-3.0.11/test'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option  -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs   -I../api -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o api_base_test-mock_stdio.o `test -f 'mock_stdio.c' || echo './'`mock_stdio.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libdaq-3.0.11/test'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libdaq-3.0.11/test'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option  -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs   -I../api -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o api_base_test-daq_test_module.o `test -f 'daq_test_module.c' || echo './'`daq_test_module.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libdaq-3.0.11/test'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libdaq-3.0.11/test'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option  -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs   -I../api -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o api_config_test-api_config_test.o `test -f 'api_config_test.c' || echo './'`api_config_test.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libdaq-3.0.11/test'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libdaq-3.0.11/test'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option  -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs   -I../api -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o api_base_test-api_base_test.o `test -f 'api_base_test.c' || echo './'`api_base_test.c
api_base_test.c: In function 'test_daq_load_modules':
api_base_test.c:238:6: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual]
  238 |     *(uint32_t *) &test1_module.module_version = TEST1_MODULE_VERSION;
      |      ^
api_base_test.c:242:6: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual]
  242 |     *(uint32_t *) &test2_module.module_version = TEST2_MODULE_VERSION;
      |      ^
api_base_test.c:246:6: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual]
  246 |     *(uint32_t *) &test3_module.api_version = TEST3_MODULE_API_VERSION;
      |      ^
api_base_test.c:247:6: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual]
  247 |     *(uint32_t *) &test3_module.module_version = TEST3_MODULE_VERSION;
      |      ^
api_base_test.c:251:6: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual]
  251 |     *(uint32_t *) &test4_module.api_size = TEST4_MODULE_API_SIZE;
      |      ^
api_base_test.c:252:6: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual]
  252 |     *(uint32_t *) &test4_module.module_version = TEST4_MODULE_VERSION;
      |      ^
api_base_test.c:256:6: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual]
  256 |     *(uint32_t *) &test5_module.api_version = DAQ_MODULE_API_VERSION;
      |      ^
api_base_test.c:257:6: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual]
  257 |     *(uint32_t *) &test5_module.api_size = sizeof(DAQ_ModuleAPI_t);
      |      ^
api_base_test.c:258:6: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual]
  258 |     *(uint32_t *) &test5_module.module_version = TEST5_MODULE_VERSION;
      |      ^
api_base_test.c:260:6: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual]
  260 |     *(uint32_t *) &test5_module.type = TEST_MODULE_TYPE;
      |      ^
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libdaq-3.0.11/test'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libdaq-3.0.11/test'
/bin/sh ../libtool  --tag=CC   --mode=link /usr/bin/gcc -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs   -I../api -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none   -static-libtool-libs -Wl,--gc-sections -Wl,--as-needed -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,--build-id=sha1 -o api_config_test api_config_test-api_config_test.o api_config_test-daq_test_module.o ../api/libdaq.la -ldl -lcmocka
libtool: link: /usr/bin/gcc -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -I../api -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Wl,--gc-sections -Wl,--as-needed -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,--build-id=sha1 -o api_config_test api_config_test-api_config_test.o api_config_test-daq_test_module.o  ../api/.libs/libdaq.so -ldl -lcmocka -Wl,-rpath -Wl,/home/tkloczko/rpmbuild/BUILD/libdaq-3.0.11/api/.libs
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libdaq-3.0.11/test'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libdaq-3.0.11/test'
/bin/sh ../libtool  --tag=CC   --mode=link /usr/bin/gcc -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs   -I../api -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none   -static-libtool-libs -Wl,--wrap,printf -Wl,--wrap,__printf_chk -Wl,--wrap,fprintf -Wl,--wrap,__fprintf_chk -Wl,--wrap,opendir -Wl,--wrap,readdir -Wl,--wrap,closedir -Wl,--wrap,stat -Wl,--wrap,__xstat -Wl,--wrap,dlopen -Wl,--wrap,dlsym -Wl,--wrap,dlclose -Wl,--gc-sections -Wl,--as-needed -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,--build-id=sha1 -o api_base_test api_base_test-api_base_test.o api_base_test-daq_test_module.o api_base_test-mock_stdio.o ../api/libdaq.la -ldl -lcmocka
libtool: link: /usr/bin/gcc -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -I../api -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Wl,--wrap -Wl,printf -Wl,--wrap -Wl,__printf_chk -Wl,--wrap -Wl,fprintf -Wl,--wrap -Wl,__fprintf_chk -Wl,--wrap -Wl,opendir -Wl,--wrap -Wl,readdir -Wl,--wrap -Wl,closedir -Wl,--wrap -Wl,stat -Wl,--wrap -Wl,__xstat -Wl,--wrap -Wl,dlopen -Wl,--wrap -Wl,dlsym -Wl,--wrap -Wl,dlclose -Wl,--gc-sections -Wl,--as-needed -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,--build-id=sha1 -o api_base_test api_base_test-api_base_test.o api_base_test-daq_test_module.o api_base_test-mock_stdio.o  ../api/.libs/libdaq.so -ldl -lcmocka -Wl,-rpath -Wl,/home/tkloczko/rpmbuild/BUILD/libdaq-3.0.11/api/.libs
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libdaq-3.0.11/test'
/usr/bin/make  check-TESTS
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libdaq-3.0.11/test'
PASS: api_config_test
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libdaq-3.0.11/test'
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libdaq-3.0.11/test'
FAIL: api_base_test
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libdaq-3.0.11/test'
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libdaq-3.0.11/test'
========================================
   libdaq 3.0.11: test/test-suite.log
========================================

# TOTAL: 2
# PASS:  1
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: api_base_test
===================

[==========] tests: Running 4 test(s).
[ RUN      ] test_verbosity
[  ERROR   ] --- "" != "DAQ verbosity level is set to 3.
"
[   LINE   ] --- api_base_test.c:58: error: Failure!
DAQ verbosity level is set to 3.
[  FAILED  ] test_verbosity
[ RUN      ] test_string_translation
[       OK ] test_string_translation
[ RUN      ] test_non_existent_dynamic_path
[  ERROR   ] --- "" != "Unable to open directory "."
"
[   LINE   ] --- api_base_test.c:209: error: Failure!
Loading modules in: .
[  FAILED  ] test_non_existent_dynamic_path
[ RUN      ] test_daq_load_modules
Test (1): Failed to register static DAQ module.
[static]: Module API version (0x30000) differs from expected version (0x30001)
BadAPIVersionTest (3): Failed to register static DAQ module.
[static]: Module API structure size (196609) differs from the expected size (216)
BadAPISizeTest (4): Failed to register static DAQ module.
MissingFunctionsTest: Module API is missing required functions!
MissingFunctionsTest (5): Failed to register static DAQ module.
[  ERROR   ] --- module
[   LINE   ] --- api_base_test.c:313: error: Failure!
Registered daq module: Test
DAQ module with name 'Test' was already loaded with version 1 (versus 1)!
Registered daq module: Test
Static modules: 6
Loading modules in: .
[  FAILED  ] test_daq_load_modules
[==========] tests: 4 test(s) run.
[  PASSED  ] 1 test(s).
[  FAILED  ] tests: 3 test(s), listed below:
[  FAILED  ] test_verbosity
[  FAILED  ] test_non_existent_dynamic_path
[  FAILED  ] test_daq_load_modules

 3 FAILED TEST(S)
FAIL api_base_test (exit status: 3)

============================================================================
Testsuite summary for libdaq 3.0.11
============================================================================
# TOTAL: 2
# PASS:  1
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
============================================================================
See test/test-suite.log
Please report to [email protected]
============================================================================
make[3]: *** [Makefile:830: test-suite.log] Error 1
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libdaq-3.0.11/test'
make[2]: *** [Makefile:938: check-TESTS] Error 2
make[1]: *** [Makefile:1018: check-am] Error 2
make: *** [Makefile:567: check-recursive] Error 1

./configure missing from libdaq-master

After downloading master.zip, below is the output. I am unable to run ./configure because it does not exist. Kindly assist.

Output

root@ucu-monitor-01:/snort_src/libdaq-master# ls -l
total 116
drwxr-xr-x 2 root root 4096 Aug 20 18:54 api
-rwxr-xr-x 1 root root 50 Aug 20 18:54 bootstrap
-rw-r--r-- 1 root root 13956 Aug 20 18:54 ChangeLog-2.x
-rw-r--r-- 1 root root 14092 Aug 20 18:54 configure.ac
-rw-r--r-- 1 root root 21108 Aug 20 18:54 COPYING
drwxr-xr-x 2 root root 4096 Aug 20 18:54 example
-rw-r--r-- 1 root root 281 Aug 20 18:54 libdaq.pc.in
-rw-r--r-- 1 root root 21108 Aug 20 18:54 LICENSE
drwxr-xr-x 2 root root 4096 Aug 20 18:54 m4
-rw-r--r-- 1 root root 215 Aug 20 18:54 Makefile.am
drwxr-xr-x 11 root root 4096 Aug 20 18:54 modules
-rw-r--r-- 1 root root 747 Aug 20 18:54 README.md
drwxr-xr-x 2 root root 4096 Aug 20 18:54 test

root@ucu-monitor-01:/snort_src/libdaq-master# ./configure
bash: ./configure: No such file or directory
root@ucu-monitor-01:/snort_src/libdaq-master#

error: possibly undefined macro: AC_CHECK_HEADERS

Hi,

I have been getting the below error after running ./bootstrap:
autoreconf: running: /usr/bin/autoconf --force --warnings=all
configure.ac:133: error: possibly undefined macro: AC_CHECK_HEADERS
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.ac:152: error: possibly undefined macro: AC_MSG_WARN
configure:18244: error: possibly undefined macro: dnl
configure:18249: error: possibly undefined macro: AS_IF
autoreconf: /usr/bin/autoconf failed with exit status: 1

Thanks.

NFQ libraries not enabled on Ubuntu

Installing libdaq 3.0.0 (from git clone of the head) on ubuntu 18, configure sees the netfilter libraries, but does not enable the NFQ DAQ. Required libraries are installed via ubuntu package repo:

sudo apt-get install -y libnetfilter-queue-dev

( i beleive this is v 1.0.2, where the latest release is 1.0.3, but not in the repos yet)

./configure seems to see the necessary libraries

checking linux/netfilter.h usability... yes
checking linux/netfilter.h presence... yes
checking for linux/netfilter.h... yes
checking linux/netfilter/nfnetlink_queue.h usability... yes
checking linux/netfilter/nfnetlink_queue.h presence... yes
checking for linux/netfilter/nfnetlink_queue.h... yes

but isn't enabled:

    Build AFPacket DAQ module.. : yes
    Build BPF DAQ module....... : yes
    Build Divert DAQ module.... : no
    Build Dump DAQ module...... : yes
    Build FST DAQ module....... : yes
    Build NFQ DAQ module....... : no   <<<<<<<<<<<<<<<<<<<<<<<<
    Build PCAP DAQ module...... : yes
    Build netmap DAQ module.... : no
    Build Trace DAQ module..... : yes

NFQ has worked no problem with DAQ 2.2.2.

An error occurred during make

An error occurred during "make", the operation flow is as follows
./bootstrap && ./configure && make

gcc version 4.8.5 20150623 (Red Hat 4.8.5-39) (GCC)
cmake version 3.17.2
automake (GNU automake) 1.13.4
autoconf (GNU Autoconf) 2.69
In file included from fst/fst.h:30:0,
                 from fst/daq_fst.cc:30:
../example/decode.h: In function 'bool decode_tcp(const uint8_t*, uint32_t, DecodeData*)':
../example/decode.h:204:26: error: 'const TcpHdr' has no member named 'th_off'
     uint16_t hlen = tcp->th_off * 4;
                          ^
In file included from /usr/include/bits/byteswap.h:35:0,
                 from /usr/include/endian.h:60,
                 from /usr/include/sys/types.h:216,
                 from /usr/include/sys/uio.h:24,
                 from /usr/include/sys/socket.h:27,
                 from /usr/include/netinet/in.h:24,
                 from ../api/daq_common.h:29,
                 from ../api/daq_module_api.h:29,
                 from fst/daq_fst.cc:29:
../example/decode.h: In function 'bool decode_udp(const uint8_t*, uint32_t, DecodeData*)':
../example/decode.h:246:32: error: 'const UdpHdr' has no member named 'uh_ulen'
     uint16_t ulen = ntohs(udp->uh_ulen);
                                ^
In file included from fst/daq_fst.cc:30:0:
fst/fst.h: At global scope:
fst/fst.h:70:33: warning: missing initializer for member '_flow_stats::ingressZone' [-Wmissing-field-initializers]
     Flow_Stats_t flow_stats = { };



fst/fst.h: In member function 'bool FstKey::populate(const DAQ_PktHdr_t*, const DecodeData*)':
fst/fst.h:445:29: error: 'const TcpHdr' has no member named 'th_sport'
         src_port = dd->tcp->th_sport;
                             ^
fst/fst.h:446:29: error: 'const TcpHdr' has no member named 'th_dport'
         dst_port = dd->tcp->th_dport;
                             ^
fst/fst.h:451:29: error: 'const UdpHdr' has no member named 'uh_sport'
         src_port = dd->udp->uh_sport;
                             ^
fst/fst.h:452:29: error: 'const UdpHdr' has no member named 'uh_dport'
         dst_port = dd->udp->uh_dport;
                             ^
fst/daq_fst.cc: At global scope:
fst/daq_fst.cc:81:25: warning: missing initializer for member 'FstMsgPool::pool' [-Wmissing-field-initializers]
     FstMsgPool pool = { };
                         ^
fst/daq_fst.cc:81:25: warning: missing initializer for member 'FstMsgPool::freelist' [-Wmissing-field-initializers]
fst/daq_fst.cc:81:25: warning: missing initializer for member 'FstMsgPool::info' [-Wmissing-field-initializers]
make[2]: *** [fst/fst_libdaq_static_fst_la-daq_fst.lo] Error 1
make[2]: Leaving directory `/home/libdaq-3.0.0-alpha6/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/libdaq-3.0.0-alpha6'
make: *** [all] Error 2

libdaq 3.0.5 compiling errors

Hi i cannot compile libdaq 3.0.5 on Debian 10 (4.19.194-3)

./bootstrap:

root@vps:~/snort_src/libdaq-3.0.5# ./bootstrap
+ autoreconf -ivf --warnings=all
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force --warnings=all -I m4
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
autoreconf: running: /usr/bin/autoconf --force --warnings=all
autoreconf: running: /usr/bin/autoheader --force --warnings=all
autoreconf: running: automake --add-missing --copy --force-missing --warnings=all
configure.ac:29: installing './ar-lib'
configure.ac:26: installing './compile'
configure.ac:34: installing './config.guess'
configure.ac:34: installing './config.sub'
configure.ac:19: installing './install-sh'
configure.ac:19: installing './missing'
api/Makefile.am: installing './depcomp'
parallel-tests: installing './test-driver'
autoreconf: Leaving directory `.'
root@vps:~/snort_src/libdaq-3.0.5#

./configure:

root@vps:~/snort_src/libdaq-3.0.5# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of gcc... gcc3
checking for gcc option to accept ISO C99... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for ar... ar
checking the archiver (ar) interface... ar
checking for a sed that does not truncate output... /usr/bin/sed
checking whether g++ supports C++11 features with -std=gnu++11... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... g++ -std=gnu++11 -E
checking for ld used by g++ -std=gnu++11... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ -std=gnu++11 linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ -std=gnu++11 option to produce PIC... -fPIC -DPIC
checking if g++ -std=gnu++11 PIC flag -fPIC -DPIC works... yes
checking if g++ -std=gnu++11 static flag -static works... yes
checking if g++ -std=gnu++11 supports -c -o file.o... yes
checking if g++ -std=gnu++11 supports -c -o file.o... (cached) yes
checking whether the g++ -std=gnu++11 linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether the -Werror option is usable... yes
checking for simple visibility declarations... yes
checking whether C preprocessor accepts -Wall... yes
checking whether C preprocessor accepts -Wmissing-declarations... yes
checking whether C preprocessor accepts -Wpointer-arith... yes
checking whether C preprocessor accepts -Wcast-align... yes
checking whether C preprocessor accepts -Wcast-qual... yes
checking whether C preprocessor accepts -Wformat... yes
checking whether C preprocessor accepts -Wformat-nonliteral... yes
checking whether C preprocessor accepts -Wformat-security... yes
checking whether C preprocessor accepts -Wundef... yes
checking whether C preprocessor accepts -Wwrite-strings... yes
checking whether C preprocessor accepts -Wextra... yes
checking whether C preprocessor accepts -Wsign-compare... yes
checking whether C preprocessor accepts -Wno-unused-parameter... yes
checking whether C preprocessor accepts -fno-strict-aliasing... yes
checking whether C preprocessor accepts -fdiagnostics-show-option... yes
checking whether C preprocessor accepts -Wstrict-prototypes... yes
checking whether C preprocessor accepts -Wmissing-prototypes... yes
checking whether C preprocessor accepts -Wold-style-definition... yes
checking whether C preprocessor accepts -Wnested-externs... yes
checking whether to build with code coverage support... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking setjmp.h usability... yes
checking setjmp.h presence... yes
checking for setjmp.h... yes
checking for CMOCKA... yes
checking pcap.h usability... yes
checking pcap.h presence... yes
checking for pcap.h... yes
checking for pcap_lib_version in -lpcap... yes
checking linux/if_ether.h usability... yes
checking linux/if_ether.h presence... yes
checking for linux/if_ether.h... yes
checking linux/if_packet.h usability... yes
checking linux/if_packet.h presence... yes
checking for linux/if_packet.h... yes
checking whether PACKET_FANOUT_QM is declared... yes
checking whether PACKET_QDISC_BYPASS is declared... yes
checking whether TP_STATUS_VLAN_TPID_VALID is declared... yes
checking whether IPPROTO_DIVERT is declared... no
checking for net/netmap.h... no
checking for net/netmap_user.h... no
checking whether NETMAP_API is declared... no
checking linux/netfilter.h usability... yes
checking linux/netfilter.h presence... yes
checking for linux/netfilter.h... yes
checking linux/netfilter/nfnetlink_queue.h usability... yes
checking linux/netfilter/nfnetlink_queue.h presence... yes
checking for linux/netfilter/nfnetlink_queue.h... yes
checking libmnl/libmnl.h usability... yes
checking libmnl/libmnl.h presence... yes
checking for libmnl/libmnl.h... yes
checking for mnl_socket_open in -lmnl... yes
checking for dlopen in -ldl... yes
checking for inttypes.h... (cached) yes
checking for memory.h... (cached) yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for inline... inline
checking for size_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for uint8_t... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking for gethostbyname... yes
checking for getpagesize... (cached) yes
checking for memset... yes
checking for munmap... yes
checking for socket... yes
checking for strchr... yes
checking for strcspn... yes
checking for strdup... yes
checking for strerror... yes
checking for strrchr... yes
checking for strstr... yes
checking for strtoul... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating modules/afpacket/libdaq_static_afpacket.pc
config.status: creating modules/bpf/libdaq_static_bpf.pc
config.status: creating modules/dump/libdaq_static_dump.pc
config.status: creating modules/fst/libdaq_static_fst.pc
config.status: creating modules/nfq/libdaq_static_nfq.pc
config.status: creating modules/pcap/libdaq_static_pcap.pc
config.status: creating modules/savefile/libdaq_static_savefile.pc
config.status: creating modules/trace/libdaq_static_trace.pc
config.status: creating Makefile
config.status: creating api/daq_version.h
config.status: creating api/Makefile
config.status: creating example/Makefile
config.status: creating modules/Makefile
config.status: creating test/Makefile
config.status: creating libdaq.pc
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands

    libdaq 3.0.5

    prefix:         /usr/local
    sysconfdir:     ${prefix}/etc
    libdir:         ${exec_prefix}/lib
    includedir:     ${prefix}/include

    cc:             gcc
    cppflags:
    am_cppflags:     -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option
    cflags:         -g -O2
    am_cflags:       -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs
    ldflags:
    am_ldflags:
    libs:

    code_coverage_enabled:  no
    code_coverage_cppflags:
    code_coverage_cflags:
    code_coverage_ldflags:

    Build AFPacket DAQ module.. : yes
    Build BPF DAQ module....... : yes
    Build Divert DAQ module.... : no
    Build Dump DAQ module...... : yes
    Build FST DAQ module....... : yes
    Build netmap DAQ module.... : no
    Build NFQ DAQ module....... : yes
    Build PCAP DAQ module...... : yes
    Build Savefile DAQ module.. : yes
    Build Trace DAQ module..... : yes

root@vps:~/snort_src/libdaq-3.0.5#

make:

root@vps:~/snort_src/libdaq-3.0.5# make
make  all-recursive
make[1]: Entering directory '/root/snort_src/libdaq-3.0.5'
Making all in api
make[2]: Entering directory '/root/snort_src/libdaq-3.0.5/api'
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option   -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs  -g -O2 -MT libdaq_la-daq_base.lo -MD -MP -MF .deps/libdaq_la-daq_base.Tpo -c -o libdaq_la-daq_base.lo `test -f 'daq_base.c' || echo './'`daq_base.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT libdaq_la-daq_base.lo -MD -MP -MF .deps/libdaq_la-daq_base.Tpo -c daq_base.c  -fPIC -DPIC -o .libs/libdaq_la-daq_base.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT libdaq_la-daq_base.lo -MD -MP -MF .deps/libdaq_la-daq_base.Tpo -c daq_base.c -o libdaq_la-daq_base.o >/dev/null 2>&1
mv -f .deps/libdaq_la-daq_base.Tpo .deps/libdaq_la-daq_base.Plo
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option   -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs  -g -O2 -MT libdaq_la-daq_base_api.lo -MD -MP -MF .deps/libdaq_la-daq_base_api.Tpo -c -o libdaq_la-daq_base_api.lo `test -f 'daq_base_api.c' || echo './'`daq_base_api.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT libdaq_la-daq_base_api.lo -MD -MP -MF .deps/libdaq_la-daq_base_api.Tpo -c daq_base_api.c  -fPIC -DPIC -o .libs/libdaq_la-daq_base_api.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT libdaq_la-daq_base_api.lo -MD -MP -MF .deps/libdaq_la-daq_base_api.Tpo -c daq_base_api.c -o libdaq_la-daq_base_api.o >/dev/null 2>&1
mv -f .deps/libdaq_la-daq_base_api.Tpo .deps/libdaq_la-daq_base_api.Plo
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option   -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs  -g -O2 -MT libdaq_la-daq_config.lo -MD -MP -MF .deps/libdaq_la-daq_config.Tpo -c -o libdaq_la-daq_config.lo `test -f 'daq_config.c' || echo './'`daq_config.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT libdaq_la-daq_config.lo -MD -MP -MF .deps/libdaq_la-daq_config.Tpo -c daq_config.c  -fPIC -DPIC -o .libs/libdaq_la-daq_config.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT libdaq_la-daq_config.lo -MD -MP -MF .deps/libdaq_la-daq_config.Tpo -c daq_config.c -o libdaq_la-daq_config.o >/dev/null 2>&1
mv -f .deps/libdaq_la-daq_config.Tpo .deps/libdaq_la-daq_config.Plo
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option   -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs  -g -O2 -MT libdaq_la-daq_instance_api_defaults.lo -MD -MP -MF .deps/libdaq_la-daq_instance_api_defaults.Tpo -c -o libdaq_la-daq_instance_api_defaults.lo `test -f 'daq_instance_api_defaults.c' || echo './'`daq_instance_api_defaults.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT libdaq_la-daq_instance_api_defaults.lo -MD -MP -MF .deps/libdaq_la-daq_instance_api_defaults.Tpo -c daq_instance_api_defaults.c  -fPIC -DPIC -o .libs/libdaq_la-daq_instance_api_defaults.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT libdaq_la-daq_instance_api_defaults.lo -MD -MP -MF .deps/libdaq_la-daq_instance_api_defaults.Tpo -c daq_instance_api_defaults.c -o libdaq_la-daq_instance_api_defaults.o >/dev/null 2>&1
mv -f .deps/libdaq_la-daq_instance_api_defaults.Tpo .deps/libdaq_la-daq_instance_api_defaults.Plo
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option   -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs  -g -O2 -MT libdaq_la-daq_mod_ops.lo -MD -MP -MF .deps/libdaq_la-daq_mod_ops.Tpo -c -o libdaq_la-daq_mod_ops.lo `test -f 'daq_mod_ops.c' || echo './'`daq_mod_ops.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT libdaq_la-daq_mod_ops.lo -MD -MP -MF .deps/libdaq_la-daq_mod_ops.Tpo -c daq_mod_ops.c  -fPIC -DPIC -o .libs/libdaq_la-daq_mod_ops.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT libdaq_la-daq_mod_ops.lo -MD -MP -MF .deps/libdaq_la-daq_mod_ops.Tpo -c daq_mod_ops.c -o libdaq_la-daq_mod_ops.o >/dev/null 2>&1
mv -f .deps/libdaq_la-daq_mod_ops.Tpo .deps/libdaq_la-daq_mod_ops.Plo
/bin/bash ../libtool  --tag=CC   --mode=link gcc -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs  -g -O2  -version-info 3:0:0  -o libdaq.la -rpath /usr/local/lib libdaq_la-daq_base.lo libdaq_la-daq_base_api.lo libdaq_la-daq_config.lo libdaq_la-daq_instance_api_defaults.lo libdaq_la-daq_mod_ops.lo -ldl
libtool: link: gcc -shared  -fPIC -DPIC  .libs/libdaq_la-daq_base.o .libs/libdaq_la-daq_base_api.o .libs/libdaq_la-daq_config.o .libs/libdaq_la-daq_instance_api_defaults.o .libs/libdaq_la-daq_mod_ops.o   -ldl  -g -O2   -Wl,-soname -Wl,libdaq.so.3 -o .libs/libdaq.so.3.0.0
libtool: link: (cd ".libs" && rm -f "libdaq.so.3" && ln -s "libdaq.so.3.0.0" "libdaq.so.3")
libtool: link: (cd ".libs" && rm -f "libdaq.so" && ln -s "libdaq.so.3.0.0" "libdaq.so")
libtool: link: ar cru .libs/libdaq.a  libdaq_la-daq_base.o libdaq_la-daq_base_api.o libdaq_la-daq_config.o libdaq_la-daq_instance_api_defaults.o libdaq_la-daq_mod_ops.o
ar: `u' modifier ignored since `D' is the default (see `U')
libtool: link: ranlib .libs/libdaq.a
libtool: link: ( cd ".libs" && rm -f "libdaq.la" && ln -s "../libdaq.la" "libdaq.la" )
make[2]: Leaving directory '/root/snort_src/libdaq-3.0.5/api'
Making all in modules
make[2]: Entering directory '/root/snort_src/libdaq-3.0.5/modules'
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api   -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT afpacket/libdaq_static_afpacket_la-daq_afpacket.lo -MD -MP -MF afpacket/.deps/libdaq_static_afpacket_la-daq_afpacket.Tpo -c -o afpacket/libdaq_static_afpacket_la-daq_afpacket.lo `test -f 'afpacket/daq_afpacket.c' || echo './'`afpacket/daq_afpacket.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT afpacket/libdaq_static_afpacket_la-daq_afpacket.lo -MD -MP -MF afpacket/.deps/libdaq_static_afpacket_la-daq_afpacket.Tpo -c afpacket/daq_afpacket.c  -fPIC -DPIC -o afpacket/.libs/libdaq_static_afpacket_la-daq_afpacket.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT afpacket/libdaq_static_afpacket_la-daq_afpacket.lo -MD -MP -MF afpacket/.deps/libdaq_static_afpacket_la-daq_afpacket.Tpo -c afpacket/daq_afpacket.c -o afpacket/libdaq_static_afpacket_la-daq_afpacket.o >/dev/null 2>&1
mv -f afpacket/.deps/libdaq_static_afpacket_la-daq_afpacket.Tpo afpacket/.deps/libdaq_static_afpacket_la-daq_afpacket.Plo
/bin/bash ../libtool  --tag=CC   --mode=link gcc -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -static -avoid-version  -o afpacket/libdaq_static_afpacket.la -rpath /usr/local/lib afpacket/libdaq_static_afpacket_la-daq_afpacket.lo
libtool: link: ar cru afpacket/.libs/libdaq_static_afpacket.a  afpacket/libdaq_static_afpacket_la-daq_afpacket.o
ar: `u' modifier ignored since `D' is the default (see `U')
libtool: link: ranlib afpacket/.libs/libdaq_static_afpacket.a
libtool: link: ( cd "afpacket/.libs" && rm -f "libdaq_static_afpacket.la" && ln -s "../libdaq_static_afpacket.la" "libdaq_static_afpacket.la" )
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api   -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT bpf/libdaq_static_bpf_la-daq_bpf.lo -MD -MP -MF bpf/.deps/libdaq_static_bpf_la-daq_bpf.Tpo -c -o bpf/libdaq_static_bpf_la-daq_bpf.lo `test -f 'bpf/daq_bpf.c' || echo './'`bpf/daq_bpf.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT bpf/libdaq_static_bpf_la-daq_bpf.lo -MD -MP -MF bpf/.deps/libdaq_static_bpf_la-daq_bpf.Tpo -c bpf/daq_bpf.c  -fPIC -DPIC -o bpf/.libs/libdaq_static_bpf_la-daq_bpf.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT bpf/libdaq_static_bpf_la-daq_bpf.lo -MD -MP -MF bpf/.deps/libdaq_static_bpf_la-daq_bpf.Tpo -c bpf/daq_bpf.c -o bpf/libdaq_static_bpf_la-daq_bpf.o >/dev/null 2>&1
mv -f bpf/.deps/libdaq_static_bpf_la-daq_bpf.Tpo bpf/.deps/libdaq_static_bpf_la-daq_bpf.Plo
/bin/bash ../libtool  --tag=CC   --mode=link gcc -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -static -avoid-version  -o bpf/libdaq_static_bpf.la -rpath /usr/local/lib bpf/libdaq_static_bpf_la-daq_bpf.lo
libtool: link: ar cru bpf/.libs/libdaq_static_bpf.a  bpf/libdaq_static_bpf_la-daq_bpf.o
ar: `u' modifier ignored since `D' is the default (see `U')
libtool: link: ranlib bpf/.libs/libdaq_static_bpf.a
libtool: link: ( cd "bpf/.libs" && rm -f "libdaq_static_bpf.la" && ln -s "../libdaq_static_bpf.la" "libdaq_static_bpf.la" )
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api   -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT dump/libdaq_static_dump_la-daq_dump.lo -MD -MP -MF dump/.deps/libdaq_static_dump_la-daq_dump.Tpo -c -o dump/libdaq_static_dump_la-daq_dump.lo `test -f 'dump/daq_dump.c' || echo './'`dump/daq_dump.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT dump/libdaq_static_dump_la-daq_dump.lo -MD -MP -MF dump/.deps/libdaq_static_dump_la-daq_dump.Tpo -c dump/daq_dump.c  -fPIC -DPIC -o dump/.libs/libdaq_static_dump_la-daq_dump.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT dump/libdaq_static_dump_la-daq_dump.lo -MD -MP -MF dump/.deps/libdaq_static_dump_la-daq_dump.Tpo -c dump/daq_dump.c -o dump/libdaq_static_dump_la-daq_dump.o >/dev/null 2>&1
mv -f dump/.deps/libdaq_static_dump_la-daq_dump.Tpo dump/.deps/libdaq_static_dump_la-daq_dump.Plo
/bin/bash ../libtool  --tag=CC   --mode=link gcc -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -static -avoid-version  -o dump/libdaq_static_dump.la -rpath /usr/local/lib dump/libdaq_static_dump_la-daq_dump.lo
libtool: link: ar cru dump/.libs/libdaq_static_dump.a  dump/libdaq_static_dump_la-daq_dump.o
ar: `u' modifier ignored since `D' is the default (see `U')
libtool: link: ranlib dump/.libs/libdaq_static_dump.a
libtool: link: ( cd "dump/.libs" && rm -f "libdaq_static_dump.la" && ln -s "../libdaq_static_dump.la" "libdaq_static_dump.la" )
/bin/bash ../libtool  --tag=CXX   --mode=compile g++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I..  -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api -I../example   -g -O2 -MT fst/libdaq_static_fst_la-daq_fst.lo -MD -MP -MF fst/.deps/libdaq_static_fst_la-daq_fst.Tpo -c -o fst/libdaq_static_fst_la-daq_fst.lo `test -f 'fst/daq_fst.cc' || echo './'`fst/daq_fst.cc
libtool: compile:  g++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api -I../example -g -O2 -MT fst/libdaq_static_fst_la-daq_fst.lo -MD -MP -MF fst/.deps/libdaq_static_fst_la-daq_fst.Tpo -c fst/daq_fst.cc  -fPIC -DPIC -o fst/.libs/libdaq_static_fst_la-daq_fst.o
libtool: compile:  g++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api -I../example -g -O2 -MT fst/libdaq_static_fst_la-daq_fst.lo -MD -MP -MF fst/.deps/libdaq_static_fst_la-daq_fst.Tpo -c fst/daq_fst.cc -o fst/libdaq_static_fst_la-daq_fst.o >/dev/null 2>&1
mv -f fst/.deps/libdaq_static_fst_la-daq_fst.Tpo fst/.deps/libdaq_static_fst_la-daq_fst.Plo
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api -I../example  -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT fst/libdaq_static_fst_la-PMurHash.lo -MD -MP -MF fst/.deps/libdaq_static_fst_la-PMurHash.Tpo -c -o fst/libdaq_static_fst_la-PMurHash.lo `test -f 'fst/PMurHash.c' || echo './'`fst/PMurHash.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api -I../example -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT fst/libdaq_static_fst_la-PMurHash.lo -MD -MP -MF fst/.deps/libdaq_static_fst_la-PMurHash.Tpo -c fst/PMurHash.c  -fPIC -DPIC -o fst/.libs/libdaq_static_fst_la-PMurHash.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api -I../example -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT fst/libdaq_static_fst_la-PMurHash.lo -MD -MP -MF fst/.deps/libdaq_static_fst_la-PMurHash.Tpo -c fst/PMurHash.c -o fst/libdaq_static_fst_la-PMurHash.o >/dev/null 2>&1
mv -f fst/.deps/libdaq_static_fst_la-PMurHash.Tpo fst/.deps/libdaq_static_fst_la-PMurHash.Plo
/bin/bash ../libtool  --tag=CXX   --mode=link g++ -std=gnu++11  -g -O2 -static -avoid-version  -o fst/libdaq_static_fst.la -rpath /usr/local/lib fst/libdaq_static_fst_la-daq_fst.lo fst/libdaq_static_fst_la-PMurHash.lo
libtool: link: ar cru fst/.libs/libdaq_static_fst.a  fst/libdaq_static_fst_la-daq_fst.o fst/libdaq_static_fst_la-PMurHash.o
ar: `u' modifier ignored since `D' is the default (see `U')
libtool: link: ranlib fst/.libs/libdaq_static_fst.a
libtool: link: ( cd "fst/.libs" && rm -f "libdaq_static_fst.la" && ln -s "../libdaq_static_fst.la" "libdaq_static_fst.la" )
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api  -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT nfq/libdaq_static_nfq_la-daq_nfq.lo -MD -MP -MF nfq/.deps/libdaq_static_nfq_la-daq_nfq.Tpo -c -o nfq/libdaq_static_nfq_la-daq_nfq.lo `test -f 'nfq/daq_nfq.c' || echo './'`nfq/daq_nfq.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT nfq/libdaq_static_nfq_la-daq_nfq.lo -MD -MP -MF nfq/.deps/libdaq_static_nfq_la-daq_nfq.Tpo -c nfq/daq_nfq.c  -fPIC -DPIC -o nfq/.libs/libdaq_static_nfq_la-daq_nfq.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT nfq/libdaq_static_nfq_la-daq_nfq.lo -MD -MP -MF nfq/.deps/libdaq_static_nfq_la-daq_nfq.Tpo -c nfq/daq_nfq.c -o nfq/libdaq_static_nfq_la-daq_nfq.o >/dev/null 2>&1
mv -f nfq/.deps/libdaq_static_nfq_la-daq_nfq.Tpo nfq/.deps/libdaq_static_nfq_la-daq_nfq.Plo
/bin/bash ../libtool  --tag=CC   --mode=link gcc -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -static -avoid-version  -o nfq/libdaq_static_nfq.la -rpath /usr/local/lib nfq/libdaq_static_nfq_la-daq_nfq.lo
libtool: link: ar cru nfq/.libs/libdaq_static_nfq.a  nfq/libdaq_static_nfq_la-daq_nfq.o
ar: `u' modifier ignored since `D' is the default (see `U')
libtool: link: ranlib nfq/.libs/libdaq_static_nfq.a
libtool: link: ( cd "nfq/.libs" && rm -f "libdaq_static_nfq.la" && ln -s "../libdaq_static_nfq.la" "libdaq_static_nfq.la" )
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api   -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT pcap/libdaq_static_pcap_la-daq_pcap.lo -MD -MP -MF pcap/.deps/libdaq_static_pcap_la-daq_pcap.Tpo -c -o pcap/libdaq_static_pcap_la-daq_pcap.lo `test -f 'pcap/daq_pcap.c' || echo './'`pcap/daq_pcap.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT pcap/libdaq_static_pcap_la-daq_pcap.lo -MD -MP -MF pcap/.deps/libdaq_static_pcap_la-daq_pcap.Tpo -c pcap/daq_pcap.c  -fPIC -DPIC -o pcap/.libs/libdaq_static_pcap_la-daq_pcap.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT pcap/libdaq_static_pcap_la-daq_pcap.lo -MD -MP -MF pcap/.deps/libdaq_static_pcap_la-daq_pcap.Tpo -c pcap/daq_pcap.c -o pcap/libdaq_static_pcap_la-daq_pcap.o >/dev/null 2>&1
mv -f pcap/.deps/libdaq_static_pcap_la-daq_pcap.Tpo pcap/.deps/libdaq_static_pcap_la-daq_pcap.Plo
/bin/bash ../libtool  --tag=CC   --mode=link gcc -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -static -avoid-version  -o pcap/libdaq_static_pcap.la -rpath /usr/local/lib pcap/libdaq_static_pcap_la-daq_pcap.lo
libtool: link: ar cru pcap/.libs/libdaq_static_pcap.a  pcap/libdaq_static_pcap_la-daq_pcap.o
ar: `u' modifier ignored since `D' is the default (see `U')
libtool: link: ranlib pcap/.libs/libdaq_static_pcap.a
libtool: link: ( cd "pcap/.libs" && rm -f "libdaq_static_pcap.la" && ln -s "../libdaq_static_pcap.la" "libdaq_static_pcap.la" )
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api  -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT savefile/libdaq_static_savefile_la-daq_savefile.lo -MD -MP -MF savefile/.deps/libdaq_static_savefile_la-daq_savefile.Tpo -c -o savefile/libdaq_static_savefile_la-daq_savefile.lo `test -f 'savefile/daq_savefile.c' || echo './'`savefile/daq_savefile.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT savefile/libdaq_static_savefile_la-daq_savefile.lo -MD -MP -MF savefile/.deps/libdaq_static_savefile_la-daq_savefile.Tpo -c savefile/daq_savefile.c  -fPIC -DPIC -o savefile/.libs/libdaq_static_savefile_la-daq_savefile.o
savefile/daq_savefile.c: In function ‘savefile_read_message’:
savefile/daq_savefile.c:167:43: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘off_t’ {aka ‘long int’} [-Wsign-compare]
     if (sfc->file_offset + sizeof(*sfhdr) > sfc->file_size)
                                           ^
savefile/daq_savefile.c: In function ‘savefile_daq_start’:
savefile/daq_savefile.c:315:24: warning: comparison of integer expressions of different signedness: ‘off_t’ {aka ‘long int’} and ‘long unsigned int’ [-Wsign-compare]
     if (sfc->file_size < sizeof(struct pcap_file_header))
                        ^
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT savefile/libdaq_static_savefile_la-daq_savefile.lo -MD -MP -MF savefile/.deps/libdaq_static_savefile_la-daq_savefile.Tpo -c savefile/daq_savefile.c -o savefile/libdaq_static_savefile_la-daq_savefile.o >/dev/null 2>&1
mv -f savefile/.deps/libdaq_static_savefile_la-daq_savefile.Tpo savefile/.deps/libdaq_static_savefile_la-daq_savefile.Plo
/bin/bash ../libtool  --tag=CC   --mode=link gcc -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -static -avoid-version  -o savefile/libdaq_static_savefile.la -rpath /usr/local/lib savefile/libdaq_static_savefile_la-daq_savefile.lo
libtool: link: ar cru savefile/.libs/libdaq_static_savefile.a  savefile/libdaq_static_savefile_la-daq_savefile.o
ar: `u' modifier ignored since `D' is the default (see `U')
libtool: link: ranlib savefile/.libs/libdaq_static_savefile.a
libtool: link: ( cd "savefile/.libs" && rm -f "libdaq_static_savefile.la" && ln -s "../libdaq_static_savefile.la" "libdaq_static_savefile.la" )
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api  -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT trace/libdaq_static_trace_la-daq_trace.lo -MD -MP -MF trace/.deps/libdaq_static_trace_la-daq_trace.Tpo -c -o trace/libdaq_static_trace_la-daq_trace.lo `test -f 'trace/daq_trace.c' || echo './'`trace/daq_trace.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT trace/libdaq_static_trace_la-daq_trace.lo -MD -MP -MF trace/.deps/libdaq_static_trace_la-daq_trace.Tpo -c trace/daq_trace.c  -fPIC -DPIC -o trace/.libs/libdaq_static_trace_la-daq_trace.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT trace/libdaq_static_trace_la-daq_trace.lo -MD -MP -MF trace/.deps/libdaq_static_trace_la-daq_trace.Tpo -c trace/daq_trace.c -o trace/libdaq_static_trace_la-daq_trace.o >/dev/null 2>&1
mv -f trace/.deps/libdaq_static_trace_la-daq_trace.Tpo trace/.deps/libdaq_static_trace_la-daq_trace.Plo
/bin/bash ../libtool  --tag=CC   --mode=link gcc -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -static -avoid-version  -o trace/libdaq_static_trace.la -rpath /usr/local/lib trace/libdaq_static_trace_la-daq_trace.lo
libtool: link: ar cru trace/.libs/libdaq_static_trace.a  trace/libdaq_static_trace_la-daq_trace.o
ar: `u' modifier ignored since `D' is the default (see `U')
libtool: link: ranlib trace/.libs/libdaq_static_trace.a
libtool: link: ( cd "trace/.libs" && rm -f "libdaq_static_trace.la" && ln -s "../libdaq_static_trace.la" "libdaq_static_trace.la" )
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api -DBUILDING_SO   -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT afpacket/daq_afpacket_la-daq_afpacket.lo -MD -MP -MF afpacket/.deps/daq_afpacket_la-daq_afpacket.Tpo -c -o afpacket/daq_afpacket_la-daq_afpacket.lo `test -f 'afpacket/daq_afpacket.c' || echo './'`afpacket/daq_afpacket.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api -DBUILDING_SO -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT afpacket/daq_afpacket_la-daq_afpacket.lo -MD -MP -MF afpacket/.deps/daq_afpacket_la-daq_afpacket.Tpo -c afpacket/daq_afpacket.c  -fPIC -DPIC -o afpacket/.libs/daq_afpacket_la-daq_afpacket.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api -DBUILDING_SO -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT afpacket/daq_afpacket_la-daq_afpacket.lo -MD -MP -MF afpacket/.deps/daq_afpacket_la-daq_afpacket.Tpo -c afpacket/daq_afpacket.c -o afpacket/daq_afpacket_la-daq_afpacket.o >/dev/null 2>&1
mv -f afpacket/.deps/daq_afpacket_la-daq_afpacket.Tpo afpacket/.deps/daq_afpacket_la-daq_afpacket.Plo
/bin/bash ../libtool  --tag=CC   --mode=link gcc -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -module -export-dynamic -avoid-version -shared   -o afpacket/daq_afpacket.la -rpath /usr/local/lib/daq afpacket/daq_afpacket_la-daq_afpacket.lo -lpcap -lpthread
libtool: link: gcc -shared  -fPIC -DPIC  afpacket/.libs/daq_afpacket_la-daq_afpacket.o   -lpcap -lpthread  -g -O2   -Wl,-soname -Wl,daq_afpacket.so -o afpacket/.libs/daq_afpacket.so
libtool: link: ( cd "afpacket/.libs" && rm -f "daq_afpacket.la" && ln -s "../daq_afpacket.la" "daq_afpacket.la" )
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api -DBUILDING_SO   -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT bpf/daq_bpf_la-daq_bpf.lo -MD -MP -MF bpf/.deps/daq_bpf_la-daq_bpf.Tpo -c -o bpf/daq_bpf_la-daq_bpf.lo `test -f 'bpf/daq_bpf.c' || echo './'`bpf/daq_bpf.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api -DBUILDING_SO -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT bpf/daq_bpf_la-daq_bpf.lo -MD -MP -MF bpf/.deps/daq_bpf_la-daq_bpf.Tpo -c bpf/daq_bpf.c  -fPIC -DPIC -o bpf/.libs/daq_bpf_la-daq_bpf.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api -DBUILDING_SO -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT bpf/daq_bpf_la-daq_bpf.lo -MD -MP -MF bpf/.deps/daq_bpf_la-daq_bpf.Tpo -c bpf/daq_bpf.c -o bpf/daq_bpf_la-daq_bpf.o >/dev/null 2>&1
mv -f bpf/.deps/daq_bpf_la-daq_bpf.Tpo bpf/.deps/daq_bpf_la-daq_bpf.Plo
/bin/bash ../libtool  --tag=CC   --mode=link gcc -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -module -export-dynamic -avoid-version -shared   -o bpf/daq_bpf.la -rpath /usr/local/lib/daq bpf/daq_bpf_la-daq_bpf.lo -lpcap -lpthread
libtool: link: gcc -shared  -fPIC -DPIC  bpf/.libs/daq_bpf_la-daq_bpf.o   -lpcap -lpthread  -g -O2   -Wl,-soname -Wl,daq_bpf.so -o bpf/.libs/daq_bpf.so
libtool: link: ( cd "bpf/.libs" && rm -f "daq_bpf.la" && ln -s "../daq_bpf.la" "daq_bpf.la" )
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api -DBUILDING_SO   -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT dump/daq_dump_la-daq_dump.lo -MD -MP -MF dump/.deps/daq_dump_la-daq_dump.Tpo -c -o dump/daq_dump_la-daq_dump.lo `test -f 'dump/daq_dump.c' || echo './'`dump/daq_dump.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api -DBUILDING_SO -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT dump/daq_dump_la-daq_dump.lo -MD -MP -MF dump/.deps/daq_dump_la-daq_dump.Tpo -c dump/daq_dump.c  -fPIC -DPIC -o dump/.libs/daq_dump_la-daq_dump.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api -DBUILDING_SO -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT dump/daq_dump_la-daq_dump.lo -MD -MP -MF dump/.deps/daq_dump_la-daq_dump.Tpo -c dump/daq_dump.c -o dump/daq_dump_la-daq_dump.o >/dev/null 2>&1
mv -f dump/.deps/daq_dump_la-daq_dump.Tpo dump/.deps/daq_dump_la-daq_dump.Plo
/bin/bash ../libtool  --tag=CC   --mode=link gcc -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -module -export-dynamic -avoid-version -shared   -o dump/daq_dump.la -rpath /usr/local/lib/daq dump/daq_dump_la-daq_dump.lo -lpcap
libtool: link: gcc -shared  -fPIC -DPIC  dump/.libs/daq_dump_la-daq_dump.o   -lpcap  -g -O2   -Wl,-soname -Wl,daq_dump.so -o dump/.libs/daq_dump.so
libtool: link: ( cd "dump/.libs" && rm -f "daq_dump.la" && ln -s "../daq_dump.la" "daq_dump.la" )
/bin/bash ../libtool  --tag=CXX   --mode=compile g++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I..  -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api -I../example -DBUILDING_SO   -g -O2 -MT fst/daq_fst_la-daq_fst.lo -MD -MP -MF fst/.deps/daq_fst_la-daq_fst.Tpo -c -o fst/daq_fst_la-daq_fst.lo `test -f 'fst/daq_fst.cc' || echo './'`fst/daq_fst.cc
libtool: compile:  g++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api -I../example -DBUILDING_SO -g -O2 -MT fst/daq_fst_la-daq_fst.lo -MD -MP -MF fst/.deps/daq_fst_la-daq_fst.Tpo -c fst/daq_fst.cc  -fPIC -DPIC -o fst/.libs/daq_fst_la-daq_fst.o
libtool: compile:  g++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api -I../example -DBUILDING_SO -g -O2 -MT fst/daq_fst_la-daq_fst.lo -MD -MP -MF fst/.deps/daq_fst_la-daq_fst.Tpo -c fst/daq_fst.cc -o fst/daq_fst_la-daq_fst.o >/dev/null 2>&1
mv -f fst/.deps/daq_fst_la-daq_fst.Tpo fst/.deps/daq_fst_la-daq_fst.Plo
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api -I../example -DBUILDING_SO  -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT fst/daq_fst_la-PMurHash.lo -MD -MP -MF fst/.deps/daq_fst_la-PMurHash.Tpo -c -o fst/daq_fst_la-PMurHash.lo `test -f 'fst/PMurHash.c' || echo './'`fst/PMurHash.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api -I../example -DBUILDING_SO -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT fst/daq_fst_la-PMurHash.lo -MD -MP -MF fst/.deps/daq_fst_la-PMurHash.Tpo -c fst/PMurHash.c  -fPIC -DPIC -o fst/.libs/daq_fst_la-PMurHash.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api -I../example -DBUILDING_SO -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT fst/daq_fst_la-PMurHash.lo -MD -MP -MF fst/.deps/daq_fst_la-PMurHash.Tpo -c fst/PMurHash.c -o fst/daq_fst_la-PMurHash.o >/dev/null 2>&1
mv -f fst/.deps/daq_fst_la-PMurHash.Tpo fst/.deps/daq_fst_la-PMurHash.Plo
/bin/bash ../libtool  --tag=CXX   --mode=link g++ -std=gnu++11  -g -O2 -module -export-dynamic -avoid-version -shared  -o fst/daq_fst.la -rpath /usr/local/lib/daq fst/daq_fst_la-daq_fst.lo fst/daq_fst_la-PMurHash.lo
libtool: link: g++ -std=gnu++11  -fPIC -DPIC -shared -nostdlib /usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/8/crtbeginS.o  fst/.libs/daq_fst_la-daq_fst.o fst/.libs/daq_fst_la-PMurHash.o   -L/usr/lib/gcc/x86_64-linux-gnu/8 -L/usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/8/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/8/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-linux-gnu/8/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/crtn.o  -g -O2   -Wl,-soname -Wl,daq_fst.so -o fst/.libs/daq_fst.so
libtool: link: ( cd "fst/.libs" && rm -f "daq_fst.la" && ln -s "../daq_fst.la" "daq_fst.la" )
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api -DBUILDING_SO  -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT nfq/daq_nfq_la-daq_nfq.lo -MD -MP -MF nfq/.deps/daq_nfq_la-daq_nfq.Tpo -c -o nfq/daq_nfq_la-daq_nfq.lo `test -f 'nfq/daq_nfq.c' || echo './'`nfq/daq_nfq.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api -DBUILDING_SO -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT nfq/daq_nfq_la-daq_nfq.lo -MD -MP -MF nfq/.deps/daq_nfq_la-daq_nfq.Tpo -c nfq/daq_nfq.c  -fPIC -DPIC -o nfq/.libs/daq_nfq_la-daq_nfq.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api -DBUILDING_SO -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT nfq/daq_nfq_la-daq_nfq.lo -MD -MP -MF nfq/.deps/daq_nfq_la-daq_nfq.Tpo -c nfq/daq_nfq.c -o nfq/daq_nfq_la-daq_nfq.o >/dev/null 2>&1
mv -f nfq/.deps/daq_nfq_la-daq_nfq.Tpo nfq/.deps/daq_nfq_la-daq_nfq.Plo
/bin/bash ../libtool  --tag=CC   --mode=link gcc -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -module -export-dynamic -avoid-version -shared  -o nfq/daq_nfq.la -rpath /usr/local/lib/daq nfq/daq_nfq_la-daq_nfq.lo -lmnl
libtool: link: gcc -shared  -fPIC -DPIC  nfq/.libs/daq_nfq_la-daq_nfq.o   -lmnl  -g -O2   -Wl,-soname -Wl,daq_nfq.so -o nfq/.libs/daq_nfq.so
libtool: link: ( cd "nfq/.libs" && rm -f "daq_nfq.la" && ln -s "../daq_nfq.la" "daq_nfq.la" )
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api -DBUILDING_SO   -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT pcap/daq_pcap_la-daq_pcap.lo -MD -MP -MF pcap/.deps/daq_pcap_la-daq_pcap.Tpo -c -o pcap/daq_pcap_la-daq_pcap.lo `test -f 'pcap/daq_pcap.c' || echo './'`pcap/daq_pcap.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api -DBUILDING_SO -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT pcap/daq_pcap_la-daq_pcap.lo -MD -MP -MF pcap/.deps/daq_pcap_la-daq_pcap.Tpo -c pcap/daq_pcap.c  -fPIC -DPIC -o pcap/.libs/daq_pcap_la-daq_pcap.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api -DBUILDING_SO -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT pcap/daq_pcap_la-daq_pcap.lo -MD -MP -MF pcap/.deps/daq_pcap_la-daq_pcap.Tpo -c pcap/daq_pcap.c -o pcap/daq_pcap_la-daq_pcap.o >/dev/null 2>&1
mv -f pcap/.deps/daq_pcap_la-daq_pcap.Tpo pcap/.deps/daq_pcap_la-daq_pcap.Plo
/bin/bash ../libtool  --tag=CC   --mode=link gcc -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -module -export-dynamic -avoid-version -shared   -o pcap/daq_pcap.la -rpath /usr/local/lib/daq pcap/daq_pcap_la-daq_pcap.lo -lpcap -lpthread
libtool: link: gcc -shared  -fPIC -DPIC  pcap/.libs/daq_pcap_la-daq_pcap.o   -lpcap -lpthread  -g -O2   -Wl,-soname -Wl,daq_pcap.so -o pcap/.libs/daq_pcap.so
libtool: link: ( cd "pcap/.libs" && rm -f "daq_pcap.la" && ln -s "../daq_pcap.la" "daq_pcap.la" )
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api -DBUILDING_SO  -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT savefile/daq_savefile_la-daq_savefile.lo -MD -MP -MF savefile/.deps/daq_savefile_la-daq_savefile.Tpo -c -o savefile/daq_savefile_la-daq_savefile.lo `test -f 'savefile/daq_savefile.c' || echo './'`savefile/daq_savefile.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api -DBUILDING_SO -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT savefile/daq_savefile_la-daq_savefile.lo -MD -MP -MF savefile/.deps/daq_savefile_la-daq_savefile.Tpo -c savefile/daq_savefile.c  -fPIC -DPIC -o savefile/.libs/daq_savefile_la-daq_savefile.o
savefile/daq_savefile.c: In function ‘savefile_read_message’:
savefile/daq_savefile.c:167:43: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘off_t’ {aka ‘long int’} [-Wsign-compare]
     if (sfc->file_offset + sizeof(*sfhdr) > sfc->file_size)
                                           ^
savefile/daq_savefile.c: In function ‘savefile_daq_start’:
savefile/daq_savefile.c:315:24: warning: comparison of integer expressions of different signedness: ‘off_t’ {aka ‘long int’} and ‘long unsigned int’ [-Wsign-compare]
     if (sfc->file_size < sizeof(struct pcap_file_header))
                        ^
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api -DBUILDING_SO -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT savefile/daq_savefile_la-daq_savefile.lo -MD -MP -MF savefile/.deps/daq_savefile_la-daq_savefile.Tpo -c savefile/daq_savefile.c -o savefile/daq_savefile_la-daq_savefile.o >/dev/null 2>&1
mv -f savefile/.deps/daq_savefile_la-daq_savefile.Tpo savefile/.deps/daq_savefile_la-daq_savefile.Plo
/bin/bash ../libtool  --tag=CC   --mode=link gcc -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -module -export-dynamic -avoid-version -shared  -o savefile/daq_savefile.la -rpath /usr/local/lib/daq savefile/daq_savefile_la-daq_savefile.lo
libtool: link: gcc -shared  -fPIC -DPIC  savefile/.libs/daq_savefile_la-daq_savefile.o    -g -O2   -Wl,-soname -Wl,daq_savefile.so -o savefile/.libs/daq_savefile.so
libtool: link: ( cd "savefile/.libs" && rm -f "daq_savefile.la" && ln -s "../daq_savefile.la" "daq_savefile.la" )
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api -DBUILDING_SO  -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT trace/daq_trace_la-daq_trace.lo -MD -MP -MF trace/.deps/daq_trace_la-daq_trace.Tpo -c -o trace/daq_trace_la-daq_trace.lo `test -f 'trace/daq_trace.c' || echo './'`trace/daq_trace.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api -DBUILDING_SO -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT trace/daq_trace_la-daq_trace.lo -MD -MP -MF trace/.deps/daq_trace_la-daq_trace.Tpo -c trace/daq_trace.c  -fPIC -DPIC -o trace/.libs/daq_trace_la-daq_trace.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api -DBUILDING_SO -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT trace/daq_trace_la-daq_trace.lo -MD -MP -MF trace/.deps/daq_trace_la-daq_trace.Tpo -c trace/daq_trace.c -o trace/daq_trace_la-daq_trace.o >/dev/null 2>&1
mv -f trace/.deps/daq_trace_la-daq_trace.Tpo trace/.deps/daq_trace_la-daq_trace.Plo
/bin/bash ../libtool  --tag=CC   --mode=link gcc -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -module -export-dynamic -avoid-version -shared  -o trace/daq_trace.la -rpath /usr/local/lib/daq trace/daq_trace_la-daq_trace.lo
libtool: link: gcc -shared  -fPIC -DPIC  trace/.libs/daq_trace_la-daq_trace.o    -g -O2   -Wl,-soname -Wl,daq_trace.so -o trace/.libs/daq_trace.so
libtool: link: ( cd "trace/.libs" && rm -f "daq_trace.la" && ln -s "../daq_trace.la" "daq_trace.la" )
make[2]: Leaving directory '/root/snort_src/libdaq-3.0.5/modules'
Making all in example
make[2]: Entering directory '/root/snort_src/libdaq-3.0.5/example'
gcc -DHAVE_CONFIG_H -I. -I..  -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option  -Wall -I../api -g -O2 -MT daqtest.o -MD -MP -MF .deps/daqtest.Tpo -c -o daqtest.o daqtest.c
daqtest.c: In function ‘replace_icmp_data’:
daqtest.c:309:12: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual]
     icmp = (IcmpHdr *) dtp->dd.icmp;
            ^
mv -f .deps/daqtest.Tpo .deps/daqtest.Po
/bin/bash ../libtool  --tag=CC   --mode=link gcc -Wall -I../api -g -O2   -o daqtest daqtest.o ../api/libdaq.la -lpthread
libtool: link: gcc -Wall -I../api -g -O2 -o .libs/daqtest daqtest.o  ../api/.libs/libdaq.so -lpthread
gcc -DHAVE_CONFIG_H -I. -I..  -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option  -Wall -I../api -DUSE_STATIC_MODULES -DBUILD_AFPACKET_MODULE -DBUILD_BPF_MODULE  -DBUILD_DUMP_MODULE -DBUILD_FST_MODULE  -DBUILD_NFQ_MODULE -DBUILD_PCAP_MODULE -DBUILD_SAVEFILE_MODULE -DBUILD_TRACE_MODULE -g -O2 -MT daqtest_static-daqtest.o -MD -MP -MF .deps/daqtest_static-daqtest.Tpo -c -o daqtest_static-daqtest.o `test -f 'daqtest.c' || echo './'`daqtest.c
daqtest.c: In function ‘replace_icmp_data’:
daqtest.c:309:12: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual]
     icmp = (IcmpHdr *) dtp->dd.icmp;
            ^
mv -f .deps/daqtest_static-daqtest.Tpo .deps/daqtest_static-daqtest.Po
/bin/bash ../libtool  --tag=CC   --mode=link gcc -Wall -I../api -DUSE_STATIC_MODULES -DBUILD_AFPACKET_MODULE -DBUILD_BPF_MODULE  -DBUILD_DUMP_MODULE -DBUILD_FST_MODULE  -DBUILD_NFQ_MODULE -DBUILD_PCAP_MODULE -DBUILD_SAVEFILE_MODULE -DBUILD_TRACE_MODULE -g -O2 -static-libtool-libs   -o daqtest-static daqtest_static-daqtest.o ../api/libdaq.la -lpthread ../modules/afpacket/libdaq_static_afpacket.la -lpcap -lpthread ../modules/bpf/libdaq_static_bpf.la -lpcap -lpthread  ../modules/dump/libdaq_static_dump.la -lpcap ../modules/fst/libdaq_static_fst.la -lstdc++  ../modules/nfq/libdaq_static_nfq.la -lmnl ../modules/pcap/libdaq_static_pcap.la -lpcap -lpthread ../modules/savefile/libdaq_static_savefile.la ../modules/trace/libdaq_static_trace.la
libtool: link: gcc -Wall -I../api -DUSE_STATIC_MODULES -DBUILD_AFPACKET_MODULE -DBUILD_BPF_MODULE -DBUILD_DUMP_MODULE -DBUILD_FST_MODULE -DBUILD_NFQ_MODULE -DBUILD_PCAP_MODULE -DBUILD_SAVEFILE_MODULE -DBUILD_TRACE_MODULE -g -O2 -o daqtest-static daqtest_static-daqtest.o  ../api/.libs/libdaq.a -ldl ../modules/afpacket/.libs/libdaq_static_afpacket.a ../modules/bpf/.libs/libdaq_static_bpf.a ../modules/dump/.libs/libdaq_static_dump.a ../modules/fst/.libs/libdaq_static_fst.a -lstdc++ ../modules/nfq/.libs/libdaq_static_nfq.a -lmnl ../modules/pcap/.libs/libdaq_static_pcap.a -lpcap -lpthread ../modules/savefile/.libs/libdaq_static_savefile.a ../modules/trace/.libs/libdaq_static_trace.a
make[2]: Leaving directory '/root/snort_src/libdaq-3.0.5/example'
Making all in test
make[2]: Entering directory '/root/snort_src/libdaq-3.0.5/test'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/root/snort_src/libdaq-3.0.5/test'
make[2]: Entering directory '/root/snort_src/libdaq-3.0.5'
make[2]: Leaving directory '/root/snort_src/libdaq-3.0.5'
make[1]: Leaving directory '/root/snort_src/libdaq-3.0.5'
root@vps:~/snort_src/libdaq-3.0.5#

What did i wrong?

afpacket inline

2023.05.05

  • 环境
    • virtuabox6.1
    • 系统版本:ubuntu18.4
    • 内核版本:5.4.0
    • daq版本:master分支3.0.11, commit cbad742060 (2023 Feb)
  • 现象
    • daq使用afpacket 模块,并使能了 inline模式,但是peer端无法收到对应的流量
  • 复现步骤
    1. sudo ./daqtest-static -d afpacket -M inline -i enp0s9:enp0s10
      image
    2. 使用 tcpreplay向enp0s9 回放dns流量,并使用tcpdump对enp0s10收包
      • 回放 sudo tcpreplay -M1 -i enp0s9 dns.pcap
        image
      • 收包 sudo tcpdump -nn -i enp0s10
        image
      • daq处理
        image
  • 结果
    • 期望可以从enp0s10收到经过daq转发后的dns流量。但实际并没有收到这些流量。

NFQ DAQ and unprivileged operation

I am trying to migrate Snort from 2.9.17 to 3.1.0.0

I run snort in inline mode with NFQ DAQ.

Till snort 2.9.17 snort used to work fine. But now that I am trying to run snort 3.1.0 it gives this error:

ERROR: Cannot drop privileges - at least one of the configured DAQ modules does not support unprivileged operation.

Looking at the NFQ module code I see that README file mentions this:

Last I checked, the process cannot operate in unprivileged mode. This needs to be revalidated, but the module is marked as such in the meantime.

I think this comment indeed needs a re-validation based on how it worked in snort 2.9.17 (atleast for me)?

There can be two things why it worked in snort 2.9.17

  1. Snort 2.9.17 first bound to NFQ before dropping privilege and hence it worked (Just my guess. Not sure if it is so)
  2. NFQ DAQ actually works even after dropping privilege. In that case marking it as DAQ_TYPE_NO_UNPRIV is incorrect and needs to be changed.

I do not know about DAQ, NFQ and internals. But I do request a review on setting DAQ NFQ module as DAQ_TYPE_NO_UNPRIV

I use Arch Linux and I run snort 3 using this:
snort -Q -u snort -g snort -c /etc/snort/snort.lua -l /var/log/snort --tweaks local

libdaq crash using nfq module

Hello all.
I have an issue using libdaq-3.0.3 and snort 3.1.5.0.

It's running with NFQ module :

 pkts bytes target     prot opt in     out     source               destination                                                                                                                                                                                          
 115M  261G NFQUEUE    all  --  *      *       0.0.0.0/0            0.0.0.0/0            match-set iface dst,dst match-set lface src,src NFQUEUE balance 4:7 bypass                                                                                                      
  99M 5283M NFQUEUE    all  --  *      *       0.0.0.0/0            0.0.0.0/0            match-set lface dst,dst match-set iface src,src NFQUEUE balance 4:7 bypass                                                                                                      

and daq config is :

daq = {
        modules = {{
                name = 'nfq',
                mode = 'inline',
                variables = { 'fail-open' }
        }},
        inputs = { '4','5','6','7' }
}

Snort is launched with this command line :
/usr/local/snort/bin/snort -z 0 -U -c /DATA/conf/snort/snort.lua -Q -k none --create-pidfile -l /DATA/run
The stack is :

Error receiving message from the DAQ instance: nfq_daq_msg_receive: Netlink message processing failed: -1 - No such file or directory (2)
-- [1] 5
*** Error in `/usr/local/snort/bin/snort': double free or corruption (!prev): 0x1bad2650 ***
======= Backtrace: =========
/lib/libc.so.6(+0x71270)[0xb6de4270]
/lib/libc.so.6(+0x7ba73)[0xb6deea73]
/lib/libc.so.6(cfree+0x58)[0xb6df35d8]
/usr/local/snort/bin/snort[0x82e29e1]
/usr/local/snort/lib/libdaq.so.3(daq_instance_destroy+0x35)[0xb7ee56a5]
/usr/local/snort/bin/snort[0x81567eb]
/usr/local/snort/bin/snort[0x811b17e]
/usr/local/snort/bin/snort[0x809796d]
/usr/local/snort/bin/snort[0x807bac7]
/lib/libc.so.6(__libc_start_main+0x107)[0xb6d8b697]
/usr/local/snort/bin/snort[0x80973ea]
======= Memory map: ========
08048000-08466000 r-xp 00000000 08:01 110461     /usr/local/snort/bin/snort
08467000-08468000 r--p 0041e000 08:01 110461     /usr/local/snort/bin/snort
08468000-0846c000 rw-p 0041f000 08:01 110461     /usr/local/snort/bin/snort
0846c000-1bf8b000 rw-p 00000000 00:00 0          [heap]
a8000000-a809d000 rw-p 00000000 00:00 0 
a809d000-a8100000 ---p 00000000 00:00 0 
a8100000-a8199000 rw-p 00000000 00:00 0 
a8199000-a8200000 ---p 00000000 00:00 0 
a8200000-a82c0000 rw-p 00000000 00:00 0 
a82c0000-a8300000 ---p 00000000 00:00 0 
[ ...........]

Snort (PID 589673802577758235) caught fatal signal: (null)
Version: 3.1.5.0

Aborted

If you need more informations let me know.
Thanks

Dump module should support an option to roll the files

In Linux systems "logrotate" is commonly used to perform this action, however, the program (daq_dump) would have to interpret something along with that (a signal perhaps?) to indicate that the file should be opened by name (thus getting a descriptor to the new empty log file.

Alternatively, this could be supported internally by the module as well by enabling it with a daq var by specifying a roll size / count of packets / time or whatever. IMO rolling by packet count or size would be ideal.

libdaq error build

mv -f .deps/libdaq_la-daq_instance_api_defaults.Tpo .deps/libdaq_la-daq_instance_api_defaults.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option   -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs  -g -O2 -MT libdaq_la-daq_mod_ops.lo -MD -MP -MF .deps/libdaq_la-daq_mod_ops.Tpo -c -o libdaq_la-daq_mod_ops.lo `test -f 'daq_mod_ops.c' || echo './'`daq_mod_ops.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT libdaq_la-daq_mod_ops.lo -MD -MP -MF .deps/libdaq_la-daq_mod_ops.Tpo -c daq_mod_ops.c  -fPIC -DPIC -o .libs/libdaq_la-daq_mod_ops.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT libdaq_la-daq_mod_ops.lo -MD -MP -MF .deps/libdaq_la-daq_mod_ops.Tpo -c daq_mod_ops.c -o libdaq_la-daq_mod_ops.o >/dev/null 2>&1
mv -f .deps/libdaq_la-daq_mod_ops.Tpo .deps/libdaq_la-daq_mod_ops.Plo
/bin/sh ../libtool  --tag=CC   --mode=link gcc -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs  -g -O2  -version-info 3:0:0  -o libdaq.la -rpath /usr/local/lib libdaq_la-daq_base.lo libdaq_la-daq_base_api.lo libdaq_la-daq_config.lo libdaq_la-daq_instance_api_defaults.lo libdaq_la-daq_mod_ops.lo -ldl
libtool: link: gcc -shared  -fPIC -DPIC  .libs/libdaq_la-daq_base.o .libs/libdaq_la-daq_base_api.o .libs/libdaq_la-daq_config.o .libs/libdaq_la-daq_instance_api_defaults.o .libs/libdaq_la-daq_mod_ops.o   -ldl  -g -O2   -Wl,-soname -Wl,libdaq.so.3 -o .libs/libdaq.so.3.0.0
libtool: link: (cd ".libs" && rm -f "libdaq.so.3" && ln -s "libdaq.so.3.0.0" "libdaq.so.3")
libtool: link: (cd ".libs" && rm -f "libdaq.so" && ln -s "libdaq.so.3.0.0" "libdaq.so")
libtool: link: ar cru .libs/libdaq.a  libdaq_la-daq_base.o libdaq_la-daq_base_api.o libdaq_la-daq_config.o libdaq_la-daq_instance_api_defaults.o libdaq_la-daq_mod_ops.o
libtool: link: ranlib .libs/libdaq.a
libtool: link: ( cd ".libs" && rm -f "libdaq.la" && ln -s "../libdaq.la" "libdaq.la" )
make[2]: Leaving directory `/root/libdaq/api'
Making all in modules
make[2]: Entering directory `/root/libdaq/modules'
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api   -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT bpf/libdaq_static_bpf_la-daq_bpf.lo -MD -MP -MF bpf/.deps/libdaq_static_bpf_la-daq_bpf.Tpo -c -o bpf/libdaq_static_bpf_la-daq_bpf.lo `test -f 'bpf/daq_bpf.c' || echo './'`bpf/daq_bpf.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT bpf/libdaq_static_bpf_la-daq_bpf.lo -MD -MP -MF bpf/.deps/libdaq_static_bpf_la-daq_bpf.Tpo -c bpf/daq_bpf.c  -fPIC -DPIC -o bpf/.libs/libdaq_static_bpf_la-daq_bpf.o
bpf/daq_bpf.c: In function ‘bpf_daq_set_filter’:
bpf/daq_bpf.c:131:5: warning: ‘pcap_compile_nopcap’ is deprecated: use pcap_open_dead(), pcap_compile() and pcap_close() [-Wdeprecated-declarations]
     if (pcap_compile_nopcap(bc->snaplen, DLT_EN10MB, &fcode, bc->filter, 1, PCAP_NETMASK_UNKNOWN) == -1)
     ^~
In file included from /usr/local/include/pcap.h:43:0,
                 from bpf/daq_bpf.c:25:
/usr/local/include/pcap/pcap.h:618:14: note: declared here
 PCAP_API int pcap_compile_nopcap(int, int, struct bpf_program *,
              ^~~~~~~~~~~~~~~~~~~
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT bpf/libdaq_static_bpf_la-daq_bpf.lo -MD -MP -MF bpf/.deps/libdaq_static_bpf_la-daq_bpf.Tpo -c bpf/daq_bpf.c -o bpf/libdaq_static_bpf_la-daq_bpf.o >/dev/null 2>&1
mv -f bpf/.deps/libdaq_static_bpf_la-daq_bpf.Tpo bpf/.deps/libdaq_static_bpf_la-daq_bpf.Plo
/bin/sh ../libtool  --tag=CC   --mode=link gcc -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -static -avoid-version  -o bpf/libdaq_static_bpf.la -rpath /usr/local/lib bpf/libdaq_static_bpf_la-daq_bpf.lo
libtool: link: ar cru bpf/.libs/libdaq_static_bpf.a  bpf/libdaq_static_bpf_la-daq_bpf.o
libtool: link: ranlib bpf/.libs/libdaq_static_bpf.a
libtool: link: ( cd "bpf/.libs" && rm -f "libdaq_static_bpf.la" && ln -s "../libdaq_static_bpf.la" "libdaq_static_bpf.la" )
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api   -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT dump/libdaq_static_dump_la-daq_dump.lo -MD -MP -MF dump/.deps/libdaq_static_dump_la-daq_dump.Tpo -c -o dump/libdaq_static_dump_la-daq_dump.lo `test -f 'dump/daq_dump.c' || echo './'`dump/daq_dump.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT dump/libdaq_static_dump_la-daq_dump.lo -MD -MP -MF dump/.deps/libdaq_static_dump_la-daq_dump.Tpo -c dump/daq_dump.c  -fPIC -DPIC -o dump/.libs/libdaq_static_dump_la-daq_dump.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT dump/libdaq_static_dump_la-daq_dump.lo -MD -MP -MF dump/.deps/libdaq_static_dump_la-daq_dump.Tpo -c dump/daq_dump.c -o dump/libdaq_static_dump_la-daq_dump.o >/dev/null 2>&1
mv -f dump/.deps/libdaq_static_dump_la-daq_dump.Tpo dump/.deps/libdaq_static_dump_la-daq_dump.Plo
/bin/sh ../libtool  --tag=CC   --mode=link gcc -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -static -avoid-version  -o dump/libdaq_static_dump.la -rpath /usr/local/lib dump/libdaq_static_dump_la-daq_dump.lo
libtool: link: ar cru dump/.libs/libdaq_static_dump.a  dump/libdaq_static_dump_la-daq_dump.o
libtool: link: ranlib dump/.libs/libdaq_static_dump.a
libtool: link: ( cd "dump/.libs" && rm -f "libdaq_static_dump.la" && ln -s "../libdaq_static_dump.la" "libdaq_static_dump.la" )
/bin/sh ../libtool  --tag=CXX   --mode=compile g++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I..  -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api -I../example   -g -O2 -MT fst/libdaq_static_fst_la-daq_fst.lo -MD -MP -MF fst/.deps/libdaq_static_fst_la-daq_fst.Tpo -c -o fst/libdaq_static_fst_la-daq_fst.lo `test -f 'fst/daq_fst.cc' || echo './'`fst/daq_fst.cc
libtool: compile:  g++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api -I../example -g -O2 -MT fst/libdaq_static_fst_la-daq_fst.lo -MD -MP -MF fst/.deps/libdaq_static_fst_la-daq_fst.Tpo -c fst/daq_fst.cc  -fPIC -DPIC -o fst/.libs/libdaq_static_fst_la-daq_fst.o
In file included from fst/fst.h:30:0,
                 from fst/daq_fst.cc:32:
../example/decode.h: In function ‘bool decode_tcp(const uint8_t*, uint32_t, DecodeData*)’:
../example/decode.h:291:26: error: ‘const TcpHdr {aka const struct tcphdr}’ has no member named ‘th_off’; did you mean ‘doff’?
     uint16_t hlen = tcp->th_off * 4;
                          ^~~~~~
                          doff
In file included from /usr/local/include/bits/byteswap.h:34:0,
                 from /usr/local/include/endian.h:60,
                 from /usr/local/include/sys/types.h:216,
                 from /usr/local/include/sys/uio.h:24,
                 from /usr/local/include/sys/socket.h:27,
                 from /usr/local/include/netinet/in.h:24,
                 from ../api/daq_common.h:29,
                 from ../api/daq_module_api.h:29,
                 from fst/daq_fst.cc:31:
../example/decode.h: In function ‘bool decode_udp(const uint8_t*, uint32_t, DecodeData*)’:
../example/decode.h:341:32: error: ‘const UdpHdr {aka const struct udphdr}’ has no member named ‘uh_ulen’
     uint16_t ulen = ntohs(udp->uh_ulen);
                                ^
In file included from fst/daq_fst.cc:32:0:
fst/fst.h: In function ‘bool is_tcp_flag_set(const TcpHdr*, uint8_t)’:
fst/fst.h:178:16: error: ‘const TcpHdr {aka const struct tcphdr}’ has no member named ‘th_flags’
 { return (tcp->th_flags & flag) == flag; }
                ^~~~~~~~
fst/fst.h: In member function ‘void FstTcpTracker::eval(const DecodeData&, bool)’:
fst/fst.h:187:45: error: ‘TH_SYN’ was not declared in this scope
             if (c2s && is_tcp_flag_set(tcp, TH_SYN) && !is_tcp_flag_set(tcp, TH_ACK))
                                             ^~~~~~
fst/fst.h:187:45: note: suggested alternative: ‘MSG_SYN’
             if (c2s && is_tcp_flag_set(tcp, TH_SYN) && !is_tcp_flag_set(tcp, TH_ACK))
                                             ^~~~~~
                                             MSG_SYN
fst/fst.h:187:78: error: ‘TH_ACK’ was not declared in this scope
             if (c2s && is_tcp_flag_set(tcp, TH_SYN) && !is_tcp_flag_set(tcp, TH_ACK))
                                                                              ^~~~~~
fst/fst.h:192:46: error: ‘TH_SYN’ was not declared in this scope
             if (!c2s && is_tcp_flag_set(tcp, TH_SYN | TH_ACK))
                                              ^~~~~~
fst/fst.h:192:46: note: suggested alternative: ‘MSG_SYN’
             if (!c2s && is_tcp_flag_set(tcp, TH_SYN | TH_ACK))
                                              ^~~~~~
                                              MSG_SYN
fst/fst.h:192:55: error: ‘TH_ACK’ was not declared in this scope
             if (!c2s && is_tcp_flag_set(tcp, TH_SYN | TH_ACK))
                                                       ^~~~~~
fst/fst.h:197:45: error: ‘TH_ACK’ was not declared in this scope
             if (c2s && is_tcp_flag_set(tcp, TH_ACK) && !is_tcp_flag_set(tcp, TH_SYN))
                                             ^~~~~~
fst/fst.h:197:78: error: ‘TH_SYN’ was not declared in this scope
             if (c2s && is_tcp_flag_set(tcp, TH_ACK) && !is_tcp_flag_set(tcp, TH_SYN))
                                                                              ^~~~~~
fst/fst.h:197:78: note: suggested alternative: ‘MSG_SYN’
             if (c2s && is_tcp_flag_set(tcp, TH_ACK) && !is_tcp_flag_set(tcp, TH_SYN))
                                                                              ^~~~~~
                                                                              MSG_SYN
fst/fst.h:206:38: error: ‘TH_FIN’ was not declared in this scope
             if (is_tcp_flag_set(tcp, TH_FIN))
                                      ^~~~~~
fst/fst.h:206:38: note: suggested alternative: ‘MSG_FIN’
             if (is_tcp_flag_set(tcp, TH_FIN))
                                      ^~~~~~
                                      MSG_FIN
fst/fst.h: In member function ‘bool FstTcpTracker::process_bare_ack(const DecodeData&, bool)’:
fst/fst.h:222:63: error: ‘TH_ACK’ was not declared in this scope
     if (tcp_state != TTS_ESTABLISHED || !is_tcp_flag_set(tcp, TH_ACK) || dd.tcp_data_segment)
                                                               ^~~~~~
fst/fst.h:226:27: error: ‘const TcpHdr {aka const struct tcphdr}’ has no member named ‘th_ack’; did you mean ‘ack’?
     if (SEQ_GT(ntohl(tcp->th_ack), ntohl(meta_ack_data.tcp_ack_seq_num)))
                           ^
fst/fst.h:33:30: note: in definition of macro ‘SEQ_GT’
 #define SEQ_GT(a,b)  ((int)((a) - (b)) >  0)
                              ^
fst/fst.h:228:46: error: ‘const TcpHdr {aka const struct tcphdr}’ has no member named ‘th_ack’; did you mean ‘ack’?
         meta_ack_data.tcp_ack_seq_num = tcp->th_ack;
                                              ^~~~~~
                                              ack
fst/fst.h:229:46: error: ‘const TcpHdr {aka const struct tcphdr}’ has no member named ‘th_win’
         meta_ack_data.tcp_window_size = tcp->th_win;
                                              ^~~~~~
fst/fst.h: In member function ‘bool FstKey::populate(const DAQ_PktHdr_t*, const DecodeData*)’:
fst/fst.h:546:29: error: ‘const TcpHdr {aka const struct tcphdr}’ has no member named ‘th_sport’
         src_port = dd->tcp->th_sport;
                             ^~~~~~~~
fst/fst.h:547:29: error: ‘const TcpHdr {aka const struct tcphdr}’ has no member named ‘th_dport’
         dst_port = dd->tcp->th_dport;
                             ^~~~~~~~
fst/fst.h:552:29: error: ‘const UdpHdr {aka const struct udphdr}’ has no member named ‘uh_sport’
         src_port = dd->udp->uh_sport;
                             ^~~~~~~~
fst/fst.h:553:29: error: ‘const UdpHdr {aka const struct udphdr}’ has no member named ‘uh_dport’
         dst_port = dd->udp->uh_dport;
                             ^~~~~~~~
make[2]: *** [fst/libdaq_static_fst_la-daq_fst.lo] Error 1
make[2]: Leaving directory `/root/libdaq/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/libdaq'
make: *** [all] Error 2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.