[Snort-devel] Compile Bug in FreeBSD 8.x with Snort-2.9.7.x

Michael Altizer mialtize at ...3461...
Fri Nov 14 11:44:11 EST 2014


For the benefit of the list: FreeBSD 8.4 does indeed contain copies of 
the netmap headers, just unfortunately ancient and incompatible ones.  
The next version of LibDAQ will be pickier about which versions of the 
netmap headers it accepts, and, in the meantime, FreeBSD 8.x users 
should use Bill's workaround of passing --disable-netmap-module to the 
configure script.  Thanks, Bill.

On 11/11/2014 12:39 PM, Michael Altizer wrote:
> Can you attach your config.log?  It should not be trying to build the 
> netmap DAQ module on FreeBSD 8.x due to missing the required headers 
> (Netmap was integrated into FreeBSD starting with version 10.0).
>
> When you run configure, you should see something like this:
>
> ...
> checking net/netmap_user.h usability... no
> checking net/netmap_user.h presence... no
> checking for net/netmap_user.h... no
> ...
>
> On 11/03/2014 01:17 PM, Bill Parker wrote:
>> 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 at ...2499... <mailto:wp02855 at ...2499...>)
>>
>>
>> ------------------------------------------------------------------------------
>>
>>
>> _______________________________________________
>> Snort-devel mailing list
>> Snort-devel at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/snort-devel
>> Archive:
>> http://sourceforge.net/mailarchive/forum.php?forum_name=snort-devel
>>
>> Please visithttp://blog.snort.org  for the latest news about Snort!
>
>
>
> ------------------------------------------------------------------------------
> Comprehensive Server Monitoring with Site24x7.
> Monitor 10 servers for $9/Month.
> Get alerted through email, SMS, voice calls or mobile push notifications.
> Take corrective actions from your mobile device.
> http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
>
>
> _______________________________________________
> Snort-devel mailing list
> Snort-devel at 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!

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


More information about the Snort-devel mailing list