[prev in list] [next in list] [prev in thread] [next in thread] 

List:       snort-users
Subject:    Re: [Snort-users] Not able to compile pfring-daq-module in PF_RING 6.4.1
From:       fatema bannatwala <fatema.bannatwala () gmail ! com>
Date:       2016-11-30 23:24:39
Message-ID: CACX0rUQJDPoig8jkym3bPBo3=KeExuv5nh92RC2q5EM+9ogHEA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hmm so this worked:
$ ./configure CPPFLAGS=-I/usr/local/daq/2.0.6/include
<snip>
checking daq_api.h usability... yes
checking daq_api.h presence... yes
checking for daq_api.h... yes
checking sfbpf.h usability... yes
checking sfbpf.h presence... yes
checking for sfbpf.h... yes
checking for sfbpf_compile in -lsfbpf... no
configure: error: Could not link against the SFBPF library!

But now getting SFBPF library error :(
*The never ending loop of errors..Sigh* ;)

On Wed, Nov 30, 2016 at 6:19 PM, Marcin Dulak <marcin.dulak@gmail.com>
wrote:

> Maybe,
> CPPFLAGS='-I/usr/local/daq/2.0.6/include' ./configure
>
> Marcin
>
> On Thu, Dec 1, 2016 at 12:16 AM, fatema bannatwala <
> fatema.bannatwala@gmail.com> wrote:
>
>> Hi Marcin,
>>
>> Thanks for the suggestions.
>> I have daq_api.h in the daq/2.0.6 folder, hence tried using that.
>>
>> I did:
>>
>> [~]$ locate daq_api.h
>> /usr/local/daq/2.0.6/include/daq_api.h
>>
>> [~pfring-daq-module]$ ./configure CPPFLAGS =
>> '-I/usr/local/daq/2.0.6/include'
>> configure: WARNING: you should use --build, --host, --target
>> configure: error: invalid variable name: `'
>>
>> And getting error invalid variable name.
>>
>> Did I miss something here?
>>
>> Thanks,
>> Fatema.
>>
>>
>> On Wed, Nov 30, 2016 at 6:08 PM, Marcin Dulak <marcin.dulak@gmail.com>
>> wrote:
>>
>>> Hi,
>>>
>>> cd /tmp
>>> wget https://www.snort.org/downloads/snort/daq-2.0.6-1.centos7.x8
>>> 6_64.rpm
>>> rpm -qpl daq-2.0.6-1.centos7.x86_64.rpm | grep 'daq_api.h'
>>> /usr/include/daq_api.h
>>>
>>> Maybe the easiest way is to go with this daq RPM which will put
>>> daq_api.h into the default include path.
>>> Otherwise search
>>> find /usr/local/daq/2.0.6 -name daq_api.h
>>> and provide this include path, possibly with CPPFLAGS = '-I
>>> /usr/local/daq/2.0.6/include'
>>>
>>> Marcin
>>>
>>>
>>> On Wed, Nov 30, 2016 at 11:44 PM, fatema bannatwala <
>>> fatema.bannatwala@gmail.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> I am trying to make snort work with the latest PF_RING 6.4.1, hence
>>>> started with the install of different modules comes with pf_ring tar file.
>>>> I successfully installed kernel, userland/lib, userland/libpcap and
>>>> userland/tcpdump.
>>>> But when trying to configure userland/snort/pfring-daq-module getting
>>>> consistent error:
>>>>
>>>> [~pfring-daq-module]$ ./configure
>>>>  <snip>
>>>> checking CFLAGS for gcc -Wformat... -Wformat
>>>> checking CFLAGS for gcc -Wformat-security... -Wformat-security
>>>> checking CFLAGS for gcc -Wno-unused-parameter... -Wno-unused-parameter
>>>> checking CFLAGS for gcc -fno-strict-aliasing... -fno-strict-aliasing
>>>> checking CFLAGS for gcc -fdiagnostics-show-option...
>>>> -fdiagnostics-show-option
>>>> checking CFLAGS for gcc -pedantic -std=c99 -D_GNU_SOURCE... -pedantic
>>>> -std=c99 -D_GNU_SOURCE
>>>> checking daq_api.h usability... no
>>>> checking daq_api.h presence... no
>>>> checking for daq_api.h... no
>>>> configure: error: Could not find daq_api.h!
>>>>
>>>> I am not able to figure out why it is not able to find daq_api.h, or do
>>>> I have to copy it from somewhere in some directory?
>>>>
>>>> Also, After installing various modules of pf ring (except
>>>> pfring-daq-module) I installed daq-2.0.6
>>>> as well, which successfully got configured and installed.
>>>> [ ~/daq-2.0.6]$ ./configure --prefix=/usr/local/daq/2.0.6
>>>> --with-libpcap-includes=/usr/local/pfring/6.4.1/include
>>>> --with-libpcap-libraries=/usr/local/pfring/6.4.1/lib
>>>> --with-dnet-includes=/usr/local/libdnet/include
>>>> --with-dnet-libraries=/usr/local/libdnet/lib
>>>> --with-libpfring-includes=/usr/local/pfring/6.4.1/include
>>>> --with-libpfring-libraries=/usr/local/pfring/6.4.1/lib LIBS=-lpthread
>>>>
>>>> After installing daq module I again tried installing pfring-daq-module
>>>> from PF_RING pakage, but same error.
>>>> Running CentOS7
>>>>
>>>> Any help appreciated.
>>>>
>>>> Thanks,
>>>> Fatema.
>>>>
>>>>
>>>> ------------------------------------------------------------
>>>> ------------------
>>>>
>>>> _______________________________________________
>>>> Snort-users mailing list
>>>> Snort-users@lists.sourceforge.net
>>>> Go to this URL to change user options or unsubscribe:
>>>> https://lists.sourceforge.net/lists/listinfo/snort-users
>>>> Snort-users list archive:
>>>> http://sourceforge.net/mailarchive/forum.php?forum_name=snort-users
>>>>
>>>> Please visit http://blog.snort.org to stay current on all the latest
>>>> Snort news!
>>>>
>>>
>>>
>>
>

[Attachment #5 (text/html)]

<div dir="ltr">Hmm so this worked:<div>$ ./configure \
CPPFLAGS=-I/usr/local/daq/2.0.6/include<br></div><div>&lt;snip&gt;</div><div><div>checking \
daq_api.h usability... yes</div><div>checking daq_api.h presence... \
yes</div><div>checking for daq_api.h... yes</div><div>checking sfbpf.h usability... \
yes</div><div>checking sfbpf.h presence... yes</div><div>checking for sfbpf.h... \
yes</div><div>checking for sfbpf_compile in -lsfbpf... no</div><div>configure: error: \
Could not link against the SFBPF library!</div></div><div><br></div><div>But now \
getting SFBPF library error :(</div><div>*The never ending loop of errors..Sigh* \
;)</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 30, \
2016 at 6:19 PM, Marcin Dulak <span dir="ltr">&lt;<a \
href="mailto:marcin.dulak@gmail.com" \
target="_blank">marcin.dulak@gmail.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div \
dir="ltr"><div>Maybe,<br>CPPFLAGS=&#39;-I/usr/local/daq/2.<wbr>0.6/include&#39; \
./configure <br><span class="HOEnZb"><font \
color="#888888"><br></font></span></div><span class="HOEnZb"><font \
color="#888888">Marcin<br></font></span></div><div class="HOEnZb"><div \
class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 1, 2016 \
at 12:16 AM, fatema bannatwala <span dir="ltr">&lt;<a \
href="mailto:fatema.bannatwala@gmail.com" \
target="_blank">fatema.bannatwala@gmail.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr">Hi Marcin,<div><br></div><div>Thanks for the \
suggestions.</div><div>I have daq_api.h in the daq/2.0.6 folder, hence tried using \
that.</div><div><div><br></div><div>I did:</div><div><br></div><div>[~]$ locate \
daq_api.h</div><div>/usr/local/daq/2.0.6/include/d<wbr>aq_api.h</div></div><div><br></div><div><div>[~pfring-daq-module]$ \
./configure CPPFLAGS = \
&#39;-I/usr/local/daq/2.0.6/includ<wbr>e&#39;</div><div>configure: WARNING: you \
should use --build, --host, --target</div><div>configure: error: invalid variable \
name: `&#39;</div></div><div><br></div><div>And getting error invalid variable \
name.</div><div><br></div><div>Did I miss something \
here?</div><div><br></div><div>Thanks,</div><div>Fatema.</div><div><br></div></div><div \
class="m_-7938174592289636818HOEnZb"><div class="m_-7938174592289636818h5"><div \
class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 30, 2016 at 6:08 PM, \
Marcin Dulak <span dir="ltr">&lt;<a href="mailto:marcin.dulak@gmail.com" \
target="_blank">marcin.dulak@gmail.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr">Hi,<br><div><br>cd /tmp<br>wget <a \
href="https://www.snort.org/downloads/snort/daq-2.0.6-1.centos7.x86_64.rpm" \
target="_blank">https://www.snort.org/download<wbr>s/snort/daq-2.0.6-1.centos7.x8<wbr>6_64.rpm</a><br>rpm \
-qpl daq-2.0.6-1.centos7.x86_64.rpm | grep \
&#39;daq_api.h&#39;<br>/usr/include/daq_api.h<br><br></div><div>Maybe the easiest way \
is to go with this daq RPM which will put daq_api.h into the default include \
path.<br></div><div>Otherwise search<br>find /usr/local/daq/2.0.6 -name \
daq_api.h<br></div><div>and provide this include path, possibly with <span \
class="m_-7938174592289636818m_-3622365248402195686m_-7288831570757719644gmail-pl-s">CPPFLAGS \
= &#39;-I</span><span \
class="m_-7938174592289636818m_-3622365248402195686m_-7288831570757719644gmail-pl-s">/usr/local/daq/2.0.6/includ<wbr>e&#39;<br><br></span></div><div><span \
class="m_-7938174592289636818m_-3622365248402195686m_-7288831570757719644gmail-pl-s">Marcin<br></span></div><div><br></div></div><div \
class="gmail_extra"><br><div class="gmail_quote"><div><div \
class="m_-7938174592289636818m_-3622365248402195686h5">On Wed, Nov 30, 2016 at 11:44 \
PM, fatema bannatwala <span dir="ltr">&lt;<a \
href="mailto:fatema.bannatwala@gmail.com" \
target="_blank">fatema.bannatwala@gmail.com</a>&gt;</span> \
wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div \
class="m_-7938174592289636818m_-3622365248402195686h5"><div \
dir="ltr">Hi,<div><br></div><div>I am trying to make snort work with the latest \
PF_RING 6.4.1, hence started with the install of different modules comes with pf_ring \
tar file.</div><div>I successfully installed kernel, userland/lib, userland/libpcap \
and userland/tcpdump.</div><div>But when trying to configure  \
userland/snort/pfrin<wbr>g-daq-module getting consistent \
error:</div><div><br></div><div>[~pfring-daq-module]$ ./configure<br></div><div>  \
&lt;snip&gt;</div><div><div>checking CFLAGS for gcc -Wformat... \
-Wformat</div><div>checking CFLAGS for gcc -Wformat-security... \
-Wformat-security</div><div>checking CFLAGS for gcc -Wno-unused-parameter... \
-Wno-unused-parameter</div><div>checking CFLAGS for gcc -fno-strict-aliasing... \
-fno-strict-aliasing</div><div>checking CFLAGS for gcc -fdiagnostics-show-option... \
-fdiagnostics-show-option</div><div>checking CFLAGS for gcc -pedantic -std=c99 \
-D_GNU_SOURCE... -pedantic -std=c99 -D_GNU_SOURCE</div><div>checking daq_api.h \
usability... no</div><div>checking daq_api.h presence... no</div><div>checking for \
daq_api.h... no</div><div>configure: error: Could not find \
daq_api.h!</div></div><div><br></div><div>I am not able to figure out why it is not \
able to find daq_api.h, or do I have to copy it from somewhere in some \
directory?</div><div><br>Also, After installing various modules of pf ring (except \
pfring-daq-module) I installed daq-2.0.6</div>as well, which successfully got \
configured and installed.<br>[ ~/daq-2.0.6]$ ./configure \
--prefix=/usr/local/daq/2.0.6 \
<br>--with-libpcap-includes=/usr/l<wbr>ocal/pfring/6.4.1/include \
<br>--with-libpcap-libraries=/usr/<wbr>local/pfring/6.4.1/lib \
<br>--with-dnet-includes=/usr/loca<wbr>l/libdnet/include<br>--with-dnet-libraries=/usr/loc<wbr>al/libdnet/lib \
<br>--with-libpfring-includes=/usr<wbr>/local/pfring/6.4.1/include \
<br>--with-libpfring-libraries=/us<wbr>r/local/pfring/6.4.1/lib \
LIBS=-lpthread<div><span style="color:rgb(51,51,51);font-family:&quot;lucida \
grande&quot;,&quot;lucida \
sans&quot;,verdana,arial,sans-serif"><br></span></div><div><span \
style="color:rgb(51,51,51);font-family:&quot;lucida grande&quot;,&quot;lucida \
sans&quot;,verdana,arial,sans-serif">A</span>fter installing daq module I again tried \
installing pfring-daq-module from PF_RING pakage, but same error.</div><div>Running \
CentOS7</div><div><br></div><div>Any help \
appreciated.</div><div><br></div><div>Thanks,</div><div>Fatema.</div><div><br></div></div>
 <br></div></div>------------------------------<wbr>------------------------------<wbr>------------------<br>
 <br>______________________________<wbr>_________________<br>
Snort-users mailing list<br>
<a href="mailto:Snort-users@lists.sourceforge.net" \
target="_blank">Snort-users@lists.sourceforge.<wbr>net</a><br> Go to this URL to \
change user options or unsubscribe:<br> <a \
href="https://lists.sourceforge.net/lists/listinfo/snort-users" rel="noreferrer" \
target="_blank">https://lists.sourceforge.net/<wbr>lists/listinfo/snort-users</a><br> \
Snort-users list archive:<br> <a \
href="http://sourceforge.net/mailarchive/forum.php?forum_name=snort-users" \
rel="noreferrer" target="_blank">http://sourceforge.net/mailarc<wbr>hive/forum.php?forum_name=snor<wbr>t-users</a><br>
 <br>
Please visit <a href="http://blog.snort.org" rel="noreferrer" \
target="_blank">http://blog.snort.org</a> to stay current on all the latest Snort \
news!<br></blockquote></div><br></div> </blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>



------------------------------------------------------------------------------


_______________________________________________
Snort-users mailing list
Snort-users@lists.sourceforge.net
Go to this URL to change user options or unsubscribe:
https://lists.sourceforge.net/lists/listinfo/snort-users
Snort-users list archive:
http://sourceforge.net/mailarchive/forum.php?forum_name=snort-users

Please visit http://blog.snort.org to stay current on all the latest Snort news!

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic