[P4-dev] Error when running 'make p4ofagent' with bmv2 support

Mahesh Dananjaya dananjayamahesh at gmail.com
Mon Sep 19 02:48:58 EDT 2016


Hi Antonin,
thank you.it is working fine now.
regards,
Mahesh Dananjaya,
Paraqum Technologies.

On Thu, Sep 15, 2016 at 10:47 PM, Antonin Bas <antonin at barefootnetworks.com>
wrote:

> Hi Sandaruwan,
>
> Did you install bmv2 before compiling p4ofagent?
> If you install bmv2 in a system location (with "sudo make install") then
> you should not have this issue.
>
> Best,
>
> Antonin
>
> On Thu, Sep 15, 2016 at 2:48 AM, Sandaruwan Jayaweera <
> sandaruwangayantha at gmail.com> wrote:
>
>> Hi all,
>>
>> I am trying to use bmv2 with openflow support. When I try to install
>> p4ofagent using,
>>
>> *git submodule update --init --recursive*
>>
>> *./autogen.sh*
>>
>> *./configure **CPPFLAGS=-D_BMV2_ *
>>
>> *make p4ofagent*
>>
>> I get the error,
>>
>>
>>
>>
>> *In file included from src/callbacks.c:21:0:src/state.h: At top
>> level:src/state.h:31:31: fatal error: bm/pdfixed/pd_pre.h: No such file or
>> directory #include <bm/pdfixed/pd_pre.h>*
>>
>> Then I manually copied the bm file in behavioral-model/pdfixed/include into
>> p4ofagent/inc. After that I was able to install p4ofagent.
>>
>> Can anyone give any hints? Have I done something wrong while building?
>>
>>
>> Sandaruwan
>>
>>
>>
>> _______________________________________________
>> P4-dev mailing list
>> P4-dev at lists.p4.org
>> http://lists.p4.org/mailman/listinfo/p4-dev_lists.p4.org
>>
>
>
>
> --
> Antonin
>
> _______________________________________________
> P4-dev mailing list
> P4-dev at lists.p4.org
> http://lists.p4.org/mailman/listinfo/p4-dev_lists.p4.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p4.org/pipermail/p4-dev_lists.p4.org/attachments/20160919/16710686/attachment-0002.html>


More information about the P4-dev mailing list