<div dir="ltr"><div><div><div><div>Hi Antonin,<br></div>thank <a href="http://you.it">you.it</a> is working fine now. <br></div>regards,<br></div>Mahesh Dananjaya,<br></div><div>Paraqum Technologies.<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 15, 2016 at 10:47 PM, Antonin Bas <span dir="ltr"><<a href="mailto:antonin@barefootnetworks.com" target="_blank">antonin@barefootnetworks.com</a>></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><div><div><div>Hi <span><font color="#888888"><span style="font-variant:normal"><font color="#000000"><span style="text-decoration:none"><font face="arial"><font style="font-size:10pt" size="2"><span style="font-style:normal"><span style="font-weight:normal"><span style="background:transparent none repeat scroll 0% 0%">Sandaruwan,<br><br></span></span></span></font></font></span></font></span></font></span></div><span><font color="#888888"><span style="font-variant:normal"><font color="#000000"><span style="text-decoration:none"><font face="arial"><font style="font-size:10pt" size="2"><span style="font-style:normal"><span style="font-weight:normal"><span style="background:transparent none repeat scroll 0% 0%">Did you install bmv2 before compiling p4ofagent?<br></span></span></span></font></font></span></font></span></font></span></div><span><font color="#888888"><span style="font-variant:normal"><font color="#000000"><span style="text-decoration:none"><font face="arial"><font style="font-size:10pt" size="2"><span style="font-style:normal"><span style="font-weight:normal"><span style="background:transparent none repeat scroll 0% 0%">If you install bmv2 in a system location (with "sudo make install") then you should not have this issue.<br><br></span></span></span></font></font></span></font></span></font></span></div><span><font color="#888888"><span style="font-variant:normal"><font color="#000000"><span style="text-decoration:none"><font face="arial"><font style="font-size:10pt" size="2"><span style="font-style:normal"><span style="font-weight:normal"><span style="background:transparent none repeat scroll 0% 0%">Best,<br><br></span></span></span></font></font></span></font></span></font></span></div><span><font color="#888888"><span style="font-variant:normal"><font color="#000000"><span style="text-decoration:none"><font face="arial"><font style="font-size:10pt" size="2"><span style="font-style:normal"><span style="font-weight:normal"><span style="background:transparent none repeat scroll 0% 0%">Antonin<br></span></span></span></font></font></span></font></span></font></span></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Thu, Sep 15, 2016 at 2:48 AM, Sandaruwan Jayaweera <span dir="ltr"><<a href="mailto:sandaruwangayantha@gmail.com" target="_blank">sandaruwangayantha@gmail.com</a>></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="h5"><div dir="ltr">


        
        
        
        


<p style="margin-bottom:0.2in;line-height:100%">Hi all,</p>
<p style="margin-bottom:0.2in;line-height:100%">I am trying to use
bmv2 with openflow support. When I try to install p4ofagent using,</p>
<p><code><font style="font-size:12pt" size="3"><i>git
submodule update --init --recursive</i></font></code></p>
<p><code><font style="font-size:12pt" size="3"><i>./autogen.sh</i></font></code></p>
<p><code><font style="font-size:12pt" size="3"><i>./configure
</i></font></code><font style="font-size:12pt" size="3"><i>CPPFLAGS=-D_BMV2_
</i></font>
</p>
<p><code><font style="font-size:12pt" size="3"><i>make
p4ofagent</i></font></code></p>
<p>I get the error,</p>
<p><font face="Liberation Mono, monospace"><font style="font-size:12pt" size="3"><i>In
file included from src/callbacks.c:21:0:<br>src/state.h: At top
level:<br>src/state.h:31:31: fatal error: bm/pdfixed/pd_pre.h: No
such file or directory<br> #include <bm/pdfixed/pd_pre.h></i></font></font></p>
<p><a name="m_6679695596274561178_m_-6680412271079145847_gmail-docs-internal-guid-42ba20fb-2d38-0481-3c5b-d9d5d2495db0"></a><a name="m_6679695596274561178_m_-6680412271079145847_docs-internal-guid-42ba20fb-2d3a-5e5b-9388-7f493fa9be9b"></a>
Then I manually copied the <font color="#ff0000">bm</font> file in
<span style="font-variant:normal"><font color="#ff0000"><span style="text-decoration:none"><font face="arial"><font style="font-size:10pt" size="2"><span style="font-style:normal"><span style="font-weight:normal"><span style="background:transparent none repeat scroll 0% 0%">behavioral-model/pdfixed/inclu<wbr>de
</span></span></span></font></font></span></font></span><span style="font-variant:normal"><font color="#000000"><span style="text-decoration:none"><font face="arial"><font style="font-size:10pt" size="2"><span style="font-style:normal"><span style="font-weight:normal"><span style="background:transparent none repeat scroll 0% 0%">into
</span></span></span></font></font></span></font></span><span style="font-variant:normal"><font color="#ff0000"><span style="text-decoration:none"><font face="Arial"><font style="font-size:10pt" size="2"><span style="font-style:normal"><span style="font-weight:normal"><span style="background:transparent none repeat scroll 0% 0%">p4ofagent/inc</span></span></span></font></font></span></font></span><span style="font-variant:normal"><font color="#000000"><span style="text-decoration:none"><font face="arial"><font style="font-size:10pt" size="2"><span style="font-style:normal"><span style="font-weight:normal"><span style="background:transparent none repeat scroll 0% 0%">.
After that I was able to install p4ofagent.</span></span></span></font></font></span></font></span></p>
<p><span style="font-variant:normal"><font color="#000000"><span style="text-decoration:none"><font face="arial"><font style="font-size:10pt" size="2"><span style="font-style:normal"><span style="font-weight:normal"><span style="background:transparent none repeat scroll 0% 0%">Can
anyone give any hints? Have I done something wrong while building?</span></span></span></font></font></span></font></span></p><span><font color="#888888"><p><span style="font-variant:normal"><font color="#000000"><span style="text-decoration:none"><font face="arial"><font style="font-size:10pt" size="2"><span style="font-style:normal"><span style="font-weight:normal"><span style="background:transparent none repeat scroll 0% 0%"><br></span></span></span></font></font></span></font></span></p>
<p><span style="font-variant:normal"><font color="#000000"><span style="text-decoration:none"><font face="arial"><font style="font-size:10pt" size="2"><span style="font-style:normal"><span style="font-weight:normal"><span style="background:transparent none repeat scroll 0% 0%">Sandaruwan</span></span></span></font></font></span></font></span></p>

<p><code></code><code></code></p><br></font></span></div>
<br></div></div>______________________________<wbr>_________________<br>
P4-dev mailing list<br>
<a href="mailto:P4-dev@lists.p4.org" target="_blank">P4-dev@lists.p4.org</a><br>
<a href="http://lists.p4.org/mailman/listinfo/p4-dev_lists.p4.org" rel="noreferrer" target="_blank">http://lists.p4.org/mailman/li<wbr>stinfo/p4-dev_lists.p4.org</a><span class="HOEnZb"><font color="#888888"><br></font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br><div data-smartmail="gmail_signature"><div dir="ltr">Antonin<br></div></div>
</font></span></div>
<br>______________________________<wbr>_________________<br>
P4-dev mailing list<br>
<a href="mailto:P4-dev@lists.p4.org">P4-dev@lists.p4.org</a><br>
<a href="http://lists.p4.org/mailman/listinfo/p4-dev_lists.p4.org" rel="noreferrer" target="_blank">http://lists.p4.org/mailman/<wbr>listinfo/p4-dev_lists.p4.org</a><br></blockquote></div><br></div>