Snort mailing list archives

Compile Bug in FreeBSD 8.x with Snort-2.9.7.x


From: Bill Parker <wp02855 () gmail com>
Date: Mon, 3 Nov 2014 10:17:39 -0800

NetMap Module Error in FreeBSD 8.x/9.x

Hi All,

   Here is an error which I encountered when building DAQ-2.0.4 on FreeBSD
8.x (64-Bit):

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../api -I../sfbpf
-I../sfbpf -I/usr/local/include -DBUILD_PCAP_MODULE -DBUILD_DUMP_MODULE
-DBUILD_IPFW_MODULE -DBUILD_NETMAP_MODULE -g -O2 -fvisibility=hidden -Wall
-Wwrite-strings -Wsign-compare -Wcast-align -Wextra -Wformat
-Wformat-security -Wno-unused-parameter -fno-strict-aliasing
-fdiagnostics-show-option -pedantic -std=c99 -D_GNU_SOURCE -MT
libdaq_static_modules_la-daq_netmap.lo -MD -MP -MF
.deps/libdaq_static_modules_la-daq_netmap.Tpo -c daq_netmap.c  -fPIC -DPIC
-o .libs/libdaq_static_modules_la-daq_netmap.o
In file included from daq_netmap.c:27:
/usr/include/net/if.h:360: error: field 'ifru_addr' has incomplete type
/usr/include/net/if.h:361: error: field 'ifru_dstaddr' has incomplete type
/usr/include/net/if.h:362: error: field 'ifru_broadaddr' has incomplete type
/usr/include/net/if.h:400: error: field 'ifra_addr' has incomplete type
/usr/include/net/if.h:401: error: field 'ifra_broadaddr' has incomplete type
/usr/include/net/if.h:402: error: field 'ifra_mask' has incomplete type
/usr/include/net/if.h:490: error: field 'addr' has incomplete type
/usr/include/net/if.h:491: error: field 'dstaddr' has incomplete type
daq_netmap.c: In function 'create_instance':
daq_netmap.c:187: error: 'NETMAP_API' undeclared (first use in this
function)
daq_netmap.c:187: error: (Each undeclared identifier is reported only once
daq_netmap.c:187: error: for each function it appears in.)
daq_netmap.c: In function 'start_instance':
daq_netmap.c:253: error: 'struct nmreq' has no member named 'nr_tx_rings'
daq_netmap.c:254: error: 'struct nmreq' has no member named 'nr_rx_rings'
daq_netmap.c:259: error: 'struct nmreq' has no member named 'nr_tx_slots'
daq_netmap.c:260: error: 'struct nmreq' has no member named 'nr_rx_slots'
daq_netmap.c:261: error: 'struct nmreq' has no member named 'nr_tx_rings'
daq_netmap.c:262: error: 'struct nmreq' has no member named 'nr_rx_rings'
*** Error code 1

Stop in /usr/local/src/daq-2.0.4/os-daq-modules.
*** Error code 1

Stop in /usr/local/src/daq-2.0.4.
*** Error code 1

If I use ./configure --disable-netmap-module, it builds fine, is there
something I am missing here?  This did not occur under DAQ-2.0.2, btw.

This issue does not occur in FreeBSD 9.x for DAQ-2.0.4, btw.

Bill (wp02855 () gmail com)
------------------------------------------------------------------------------
_______________________________________________
Snort-devel mailing list
Snort-devel () lists sourceforge net
https://lists.sourceforge.net/lists/listinfo/snort-devel
Archive:
http://sourceforge.net/mailarchive/forum.php?forum_name=snort-devel

Please visit http://blog.snort.org for the latest news about Snort!

Current thread: