Hi  Jáder,

cc-ed nox-dev where these questions should be posted.  I do check this
mailing list regularly.

You need to checkout the openflow-1.0 branch.

> git clone git://noxrepo.org/nox
> cd nox
*git checkout -b openflow-1.0 origin/openflow-1.0
*> ./boot.sh
> mkdir build
> cd build/
> ../configure
> make

Regards
KK


2010/1/25 Jáder V. M. Moura <[email protected]>:
> Hi, KK.
>
> After the OF 1.0.0 announcemRegards
ent, I decide to update my codes to work well
> with the new OF version.
>
> I get the NOX 0.6.0 code via git:
>
> git clone git://noxrepo.org/nox
> cd nox
> ./boot.sh
> mkdir build
> cd build/
> ../configure
> make
>
> And I observed the OF version compiled on NOX:
>
> Nox controller
> nox/build/src# ./nox_core -V
> NOX 0.8.0~full~beta (nox_core), compiled Jan 21 2010 16:13:00
> Compiled with OpenFlow 0x97 (exp)
>
>
> Virtual switch (Qemu)
> hda:/cdrom# insmod openflow_mod.ko
> OpenFlow 0.8.9~1, built Feb  5 2009 07:31:52, protocol 0x97
>
>
> Is it necessary to run the same OF version on NOX and on virtual switches?
>
>
> I need to realize matching on IP fields ARP packets. So, I need to become
> the NOX compatible with OF 1.0.0. For this, is it necessary to update the
OF
> in both devices (NOX and virtual switches)? How to do this? How to get the
> updated module (openflow_mod.ko)?
>
>
> Thanks in advance,
>
> Jáder Moura
> www.dca.fee.unicamp.br/~jader
>
>
>
> ===========================================
>
> I followed some steps but some errors occured.
>
> Details:
> Root directory = /opt/OFv1.0.0_NOXv0.6/
>
> Openflow-1.0.0
> ===============
> cd /opt/OFv1.0.0_NOXv0.6/
> wget http://openflowswitch.org/downloads/openflow-1.0.0.tar.gz
> tar -zxvf openflow-1.0.0.tar.gz
>
>
> NOX controller
> ==============
> cd /opt/OFv1.0.0_NOXv0.6/
> git clone git://noxrepo.org/nox
> cd nox
> ./boot.sh
> mkdir build
> cd build/
> ../configure --with-python=`which python2.5` --enable-ndebug
> --with-openflow=/opt/OFv1.0.0_NOXv0.6/openflow-1.0.0/
> make
>
>
> Here, there're these make errors when using the option --with-openflow:
>
> make  all-recursive
> make[1]: Entering directory `/opt/OFv1.0.0_NOXv0.6/nox/build'
> Making all in src
> make[2]: Entering directory `/opt/OFv1.0.0_NOXv0.6/nox/build/src'
> make  all-recursive
> make[3]: Entering directory `/opt/OFv1.0.0_NOXv0.6/nox/build/src'
> Making all in include
> make[4]: Entering directory `/opt/OFv1.0.0_NOXv0.6/nox/build/src/include'
> make[4]: Nada a ser feito para `all'.
> make[4]: Leaving directory `/opt/OFv1.0.0_NOXv0.6/nox/build/src/include'
> Making all in lib
> make[4]: Entering directory `/opt/OFv1.0.0_NOXv0.6/nox/build/src/lib'
> make  all-am
> make[5]: Entering directory `/opt/OFv1.0.0_NOXv0.6/nox/build/src/lib'
> /bin/sh ../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I.
> -I../../../src/lib -I../..  -DPKGDATADIR=\"/usr/local/share/nox\"
> -DPKGLIBDIR=\"/usr/local/bin/lib\"
-DPKGLOCALSTATEDIR=\"/usr/local/var/nox\"
> -DPKGSYSCONFDIR=\"/usr/local/etc/nox\" -include ../../config.h -I
> ../../../src/include -I/opt/OFv1.0.0_NOXv0.6/openflow-1.0.0//include
> -I/usr/include -I/usr/include/xercesc -I/usr/include -D_GNU_SOURCE=1 -g
> -DNDEBUG  -D_REENTRANT -D__STDC_LIMIT_MACROS=1 -D__STDC_FORMAT_MACROS=1
> -D__STDC_CONSTANT_MACROS=1  -I/usr/include/python2.5
> -I/opt/OFv1.0.0_NOXv0.6/openflow-1.0.0//include -I../../../src/nox
> -fno-omit-frame-pointer -Wall -Wno-sign-compare -Winit-self
> -Wformat-nonliteral -Wformat-security -g -O2 -MT openflow-event.lo -MD -MP
> -MF .deps/openflow-event.Tpo -c -o openflow-event.lo
> ../../../src/lib/openflow-event.cc
>  g++ -DHAVE_CONFIG_H -I. -I../../../src/lib -I../..
> -DPKGDATADIR=\"/usr/local/share/nox\" -DPKGLIBDIR=\"/usr/local/bin/lib\"
> -DPKGLOCALSTATEDIR=\"/usr/local/var/nox\"
> -DPKGSYSCONFDIR=\"/usr/local/etc/nox\" -include ../../config.h -I
> ../../../src/include -I/opt/OFv1.0.0_NOXv0.6/openflow-1.0.0//include
> -I/usr/include -I/usr/include/xercesc -I/usr/include -D_GNU_SOURCE=1 -g
> -DNDEBUG -D_REENTRANT -D__STDC_LIMIT_MACROS=1 -D__STDC_FORMAT_MACROS=1
> -D__STDC_CONSTANT_MACROS=1 -I/usr/include/python2.5
> -I/opt/OFv1.0.0_NOXv0.6/openflow-1.0.0//include -I../../../src/nox
> -fno-omit-frame-pointer -Wall -Wno-sign-compare -Winit-self
> -Wformat-nonliteral -Wformat-security -g -O2 -MT openflow-event.lo -MD -MP
> -MF .deps/openflow-event.Tpo -c ../../../src/lib/openflow-event.cc  -fPIC
> -DPIC -o .libs/openflow-event.o
> In file included from ../../../src/lib/openflow-event.cc:45:
> ../../../src/include/ofmp-config-update.hh:23:36: error:
> openflow/openflow-mgmt.h: Arquivo ou diretório não encontrado
> In file included from ../../../src/lib/openflow-event.cc:44:
> ../../../src/include/flow-expired.hh:53: error: expected ‘,’ or ‘...’
before
> ‘*’ token
> ../../../src/include/flow-expired.hh:54: error: ISO C++ forbids
declaration
> of ‘ofp_flow_expired’ with no type
> ../../../src/include/flow-expired.hh:70: error: ISO C++ forbids
declaration
> of ‘ofp_flow_expired’ with no type
> ../../../src/include/flow-expired.hh:70: error: expected ‘;’ before ‘*’
> token
> ../../../src/include/flow-expired.hh:74: error: expected `;' before
‘static’
> ../../../src/include/flow-expired.hh: In member function ‘virtual const
> ofp_match* vigil::Flow_expired_event::get_flow() const’:
> ../../../src/include/flow-expired.hh:67: error: ‘get_flow_expired’ was not
> declared in this scope
> ../../../src/include/flow-expired.hh: At global scope:
> ../../../src/include/flow-expired.hh:81: error: expected ‘,’ or ‘...’
before
> ‘*’ token
> ../../../src/include/flow-expired.hh:82: error: ISO C++ forbids
declaration
> of ‘ofp_flow_expired’ with no type
> ../../../src/include/flow-expired.hh: In constructor
> ‘vigil::Flow_expired_event::Flow_expired_event(vigil::datapathid, int)’:
> ../../../src/include/flow-expired.hh:83: error: ‘ofe’ was not declared in
> this scope
> In file included from ../../../src/lib/openflow-event.cc:45:
> ../../../src/include/ofmp-config-update.hh: At global scope:
> ../../../src/include/ofmp-config-update.hh:38: error: expected ‘,’ or
‘...’
> before ‘*’ token
> ../../../src/include/ofmp-config-update.hh:38: error: ISO C++ forbids
> declaration of ‘ofmp_config_update’ with no type
> ../../../src/include/ofmp-config-update.hh:57: error: expected ‘,’ or
‘...’
> before ‘*’ token
> ../../../src/include/ofmp-config-update.hh:57: error: ISO C++ forbids
> declaration of ‘ofmp_config_update’ with no type
> ../../../src/include/ofmp-config-update.hh: In constructor
>
‘vigil::Ofmp_config_update_event::Ofmp_config_update_event(vigil::datapathid,
> int)’:
> ../../../src/include/ofmp-config-update.hh:62: error: ‘msg_len’ was not
> declared in this scope
> ../../../src/include/ofmp-config-update.hh:62: error: ‘ocu’ was not
declared
> in this scope
> ../../../src/include/ofmp-config-update.hh:69: error: ‘OFMPCOF_SIMPLE’ was
> not declared in this scope
> In file included from ../../../src/lib/openflow-event.cc:46:
> ../../../src/include/ofmp-config-update-ack.hh: At global scope:
> ../../../src/include/ofmp-config-update-ack.hh:38: error: expected ‘,’ or
> ‘...’ before ‘*’ token
> ../../../src/include/ofmp-config-update-ack.hh:38: error: ISO C++ forbids
> declaration of ‘ofmp_config_update_ack’ with no type
> ../../../src/include/ofmp-config-update-ack.hh:59: error: expected ‘,’ or
> ‘...’ before ‘*’ token
> ../../../src/include/ofmp-config-update-ack.hh:59: error: ISO C++ forbids
> declaration of ‘ofmp_config_update_ack’ with no type
> ../../../src/include/ofmp-config-update-ack.hh: In constructor
>
‘vigil::Ofmp_config_update_ack_event::Ofmp_config_update_ack_event(vigil::datapathid,
> int)’:
> ../../../src/include/ofmp-config-update-ack.hh:62: error: ‘ocua’ was not
> declared in this scope
> ../../../src/include/ofmp-config-update-ack.hh:63: error: ‘ocua’ was not
> declared in this scope
> ../../../src/include/ofmp-config-update-ack.hh:64: error: ‘ocua’ was not
> declared in this scope
> ../../../src/include/ofmp-config-update-ack.hh:65: error:
‘OFMPCUAF_SUCCESS’
> was not declared in this scope
> ../../../src/include/ofmp-config-update-ack.hh:66: error: ‘ocua’ was not
> declared in this scope
> In file included from ../../../src/lib/openflow-event.cc:47:
> ../../../src/include/ofmp-resources-update.hh: At global scope:
> ../../../src/include/ofmp-resources-update.hh:46: error: expected ‘,’ or
> ‘...’ before ‘*’ token
> ../../../src/include/ofmp-resources-update.hh:46: error: ISO C++ forbids
> declaration of ‘ofmp_resources_update’ with no type
> ../../../src/include/ofmp-resources-update.hh:74: error: expected ‘,’ or
> ‘...’ before ‘*’ token
> ../../../src/include/ofmp-resources-update.hh:74: error: ISO C++ forbids
> declaration of ‘ofmp_resources_update’ with no type
> ../../../src/include/ofmp-resources-update.hh: In constructor
>
‘vigil::Ofmp_resources_update_event::Ofmp_resources_update_event(vigil::datapathid,
> int)’:
> ../../../src/include/ofmp-resources-update.hh:78: error: ‘oru’ was not
> declared in this scope
> ../../../src/include/ofmp-resources-update.hh:80: error: ‘msg_len’ was not
> declared in this scope
> ../../../src/include/ofmp-resources-update.hh:86: error: invalid
application
> of ‘sizeof’ to incomplete type ‘vigil::ofmp_tlv’
> ../../../src/include/ofmp-resources-update.hh:88: error: invalid use of
> incomplete type ‘struct vigil::ofmp_tlv’
> ../../../src/include/ofmp-resources-update.hh:86: error: forward
declaration
> of ‘struct vigil::ofmp_tlv’
> ../../../src/include/ofmp-resources-update.hh:90: error: invalid use of
> incomplete type ‘struct vigil::ofmp_tlv’
> ../../../src/include/ofmp-resources-update.hh:86: error: forward
declaration
> of ‘struct vigil::ofmp_tlv’
> ../../../src/include/ofmp-resources-update.hh:90: error: ‘OFMPTSR_END’ was
> not declared in this scope
> ../../../src/include/ofmp-resources-update.hh:91: error: invalid
application
> of ‘sizeof’ to incomplete type ‘vigil::ofmp_tlv’
> ../../../src/include/ofmp-resources-update.hh:100: error: invalid use of
> incomplete type ‘struct vigil::ofmp_tlv’
> ../../../src/include/ofmp-resources-update.hh:86: error: forward
declaration
> of ‘struct vigil::ofmp_tlv’
> ../../../src/include/ofmp-resources-update.hh:101: error: ‘OFMPTSR_DP’ was
> not declared in this scope
> ../../../src/include/ofmp-resources-update.hh:103: error: invalid
> application of ‘sizeof’ to incomplete type ‘vigil::ofmptsr_dp’
> ../../../src/include/ofmp-resources-update.hh:108: error: invalid use of
> incomplete type ‘struct vigil::ofmptsr_dp’
> ../../../src/include/ofmp-resources-update.hh:102: error: forward
> declaration of ‘struct vigil::ofmptsr_dp’
> ../../../src/include/ofmp-resources-update.hh:108: error: invalid use of
> incomplete type ‘struct vigil::ofmptsr_dp’
> ../../../src/include/ofmp-resources-update.hh:102: error: forward
> declaration of ‘struct vigil::ofmptsr_dp’
> ../../../src/include/ofmp-resources-update.hh:111: error: invalid use of
> incomplete type ‘struct vigil::ofmptsr_dp’
> ../../../src/include/ofmp-resources-update.hh:102: error: forward
> declaration of ‘struct vigil::ofmptsr_dp’
> ../../../src/include/ofmp-resources-update.hh:112: error: invalid use of
> incomplete type ‘struct vigil::ofmptsr_dp’
> ../../../src/include/ofmp-resources-update.hh:102: error: forward
> declaration of ‘struct vigil::ofmptsr_dp’
> ../../../src/include/ofmp-resources-update.hh:116: error:
‘OFMPTSR_DP_UUID’
> was not declared in this scope
> ../../../src/include/ofmp-resources-update.hh:121: error: invalid
> application of ‘sizeof’ to incomplete type ‘vigil::ofmptsr_dp_uuid’
> ../../../src/include/ofmp-resources-update.hh:126: error: invalid
> application of ‘sizeof’ to incomplete type ‘vigil::ofmptsr_dp_uuid’
> ../../../src/include/ofmp-resources-update.hh:126: error: ‘OFMP_UUID_LEN’
> was not declared in this scope
> ../../../src/include/ofmp-resources-update.hh:130: error: invalid
> application of ‘sizeof’ to incomplete type ‘vigil::ofmptsr_dp_uuid’
> ../../../src/include/ofmp-resources-update.hh:130: error: ‘OFMP_UUID_LEN’
> was not declared in this scope
> ../../../src/include/ofmp-resources-update.hh:135: error: invalid
> application of ‘sizeof’ to incomplete type ‘vigil::ofmptsr_dp_uuid’
> ../../../src/include/ofmp-resources-update.hh:140: error: invalid use of
> incomplete type ‘struct vigil::ofmptsr_dp_uuid’
> ../../../src/include/ofmp-resources-update.hh:117: error: forward
> declaration of ‘struct vigil::ofmptsr_dp_uuid’
> ../../../src/include/ofmp-resources-update.hh:146: error:
> ‘OFMPTSR_MGMT_UUID’ was not declared in this scope
> ../../../src/include/ofmp-resources-update.hh:150: error: invalid
> application of ‘sizeof’ to incomplete type ‘vigil::ofmptsr_mgmt_uuid’
> ../../../src/include/ofmp-resources-update.hh:157: error: invalid use of
> incomplete type ‘struct vigil::ofmptsr_mgmt_uuid’
> ../../../src/include/ofmp-resources-update.hh:147: error: forward
> declaration of ‘struct vigil::ofmptsr_mgmt_uuid’
> ../../../src/include/ofmp-resources-update.hh:158: error: invalid use of
> incomplete type ‘struct vigil::ofmptsr_mgmt_uuid’
> ../../../src/include/ofmp-resources-update.hh:147: error: forward
> declaration of ‘struct vigil::ofmptsr_mgmt_uuid’
> ../../../src/include/ofmp-resources-update.hh:159: error: ‘OFMP_UUID_LEN’
> was not declared in this scope
> ../../../src/include/ofmp-resources-update.hh:163: error: ‘OFMPTSR_VIF’
was
> not declared in this scope
> ../../../src/include/ofmp-resources-update.hh:168: error: invalid
> application of ‘sizeof’ to incomplete type ‘vigil::ofmptsr_vif’
> ../../../src/include/ofmp-resources-update.hh:173: error: invalid use of
> incomplete type ‘struct vigil::ofmptsr_vif’
> ../../../src/include/ofmp-resources-update.hh:164: error: forward
> declaration of ‘struct vigil::ofmptsr_vif’
> ../../../src/include/ofmp-resources-update.hh:174: error: ‘OFMP_UUID_LEN’
> was not declared in this scope
> ../../../src/include/ofmp-resources-update.hh:175: error: invalid use of
> incomplete type ‘struct vigil::ofmptsr_vif’
> ../../../src/include/ofmp-resources-update.hh:164: error: forward
> declaration of ‘struct vigil::ofmptsr_vif’
> ../../../src/include/ofmp-resources-update.hh:176: error: invalid use of
> incomplete type ‘struct vigil::ofmptsr_vif’
> ../../../src/include/ofmp-resources-update.hh:164: error: forward
> declaration of ‘struct vigil::ofmptsr_vif’
> ../../../src/include/ofmp-resources-update.hh:178: error: invalid use of
> incomplete type ‘struct vigil::ofmptsr_vif’
> ../../../src/include/ofmp-resources-update.hh:164: error: forward
> declaration of ‘struct vigil::ofmptsr_vif’
> ../../../src/include/ofmp-resources-update.hh:183: error: invalid use of
> incomplete type ‘struct vigil::ofmptsr_vif’
> ../../../src/include/ofmp-resources-update.hh:164: error: forward
> declaration of ‘struct vigil::ofmptsr_vif’
> ../../../src/include/ofmp-resources-update.hh:188: error: invalid use of
> incomplete type ‘struct vigil::ofmp_tlv’
> ../../../src/include/ofmp-resources-update.hh:86: error: forward
declaration
> of ‘struct vigil::ofmp_tlv’
> ../../../src/lib/openflow-event.cc: At global scope:
> ../../../src/lib/openflow-event.cc:76: error: expected ‘,’ or ‘...’ before
> ‘*’ token
> ../../../src/lib/openflow-event.cc:76: error: ISO C++ forbids declaration
of
> ‘ofp_flow_expired’ with no type
> ../../../src/lib/openflow-event.cc: In function
>
‘vigil::Event*<unnamed>::handle_flow_expired(boost::shared_ptr<vigil::Openflow_connection>,
> int)’:
> ../../../src/lib/openflow-event.cc:82: error: ‘ofe’ was not declared in
this
> scope
> ../../../src/lib/openflow-event.cc:82: error: ‘buf’ was not declared in
this
> scope
> ../../../src/lib/openflow-event.cc: At global scope:
> ../../../src/lib/openflow-event.cc:235: error: expected ‘,’ or ‘...’
before
> ‘*’ token
> ../../../src/lib/openflow-event.cc:235: error: ISO C++ forbids declaration
> of ‘ofmp_config_update’ with no type
> ../../../src/lib/openflow-event.cc: In function
>
‘vigil::Event*<unnamed>::handle_ofmp_config_update(boost::shared_ptr<vigil::Openflow_connection>,
> int)’:
> ../../../src/lib/openflow-event.cc:241: error: ‘buf’ was not declared in
> this scope
> ../../../src/lib/openflow-event.cc:246: error: ‘ocu’ was not declared in
> this scope
> ../../../src/lib/openflow-event.cc:246: error: ‘buf’ was not declared in
> this scope
> ../../../src/lib/openflow-event.cc: At global scope:
> ../../../src/lib/openflow-event.cc:251: error: expected ‘,’ or ‘...’
before
> ‘*’ token
> ../../../src/lib/openflow-event.cc:251: error: ISO C++ forbids declaration
> of ‘ofmp_config_update_ack’ with no type
> ../../../src/lib/openflow-event.cc: In function
>
‘vigil::Event*<unnamed>::handle_ofmp_config_update_ack(boost::shared_ptr<vigil::Openflow_connection>,
> int)’:
> ../../../src/lib/openflow-event.cc:257: error: ‘buf’ was not declared in
> this scope
> ../../../src/lib/openflow-event.cc:262: error: ‘ocua’ was not declared in
> this scope
> ../../../src/lib/openflow-event.cc:262: error: ‘buf’ was not declared in
> this scope
> ../../../src/lib/openflow-event.cc: At global scope:
> ../../../src/lib/openflow-event.cc:267: error: expected ‘,’ or ‘...’
before
> ‘*’ token
> ../../../src/lib/openflow-event.cc:267: error: ISO C++ forbids declaration
> of ‘ofmp_resources_update’ with no type
> ../../../src/lib/openflow-event.cc: In function
>
‘vigil::Event*<unnamed>::handle_ofmp_resources_update(boost::shared_ptr<vigil::Openflow_connection>,
> int)’:
> ../../../src/lib/openflow-event.cc:273: error: ‘buf’ was not declared in
> this scope
> ../../../src/lib/openflow-event.cc:278: error: ‘oru’ was not declared in
> this scope
> ../../../src/lib/openflow-event.cc:278: error: ‘buf’ was not declared in
> this scope
> ../../../src/lib/openflow-event.cc: At global scope:
> ../../../src/lib/openflow-event.cc:283: error: expected ‘,’ or ‘...’
before
> ‘*’ token
> ../../../src/lib/openflow-event.cc:283: error: ISO C++ forbids declaration
> of ‘ofmp_extended_data’ with no type
> ../../../src/lib/openflow-event.cc: In function
>
‘vigil::Event*<unnamed>::handle_ofmp_extended_data(boost::shared_ptr<vigil::Openflow_connection>,
> int)’:
> ../../../src/lib/openflow-event.cc:285: error: ‘buf’ was not declared in
> this scope
> ../../../src/lib/openflow-event.cc:285: error: ‘oed’ was not declared in
> this scope
> ../../../src/lib/openflow-event.cc:298: error: ‘OFMPEDF_MORE_DATA’ was not
> declared in this scope
> ../../../src/lib/openflow-event.cc:309: error: ‘ofmp_header’ was not
> declared in this scope
> ../../../src/lib/openflow-event.cc:309: error: ‘oh’ was not declared in
this
> scope
> ../../../src/lib/openflow-event.cc:309: error: ‘ofmp_header’ cannot appear
> in a constant-expression
> ../../../src/lib/openflow-event.cc:309: error: no matching function for
call
> to ‘vigil::Buffer::try_at(int)’
> ../../../src/lib/openflow-event.cc:311: error: ‘NXT_MGMT’ was not declared
> in this scope
> ../../../src/lib/openflow-event.cc:312: error: ‘OFMPT_EXTENDED_DATA’ was
not
> declared in this scope
> ../../../src/lib/openflow-event.cc: In function
>
‘vigil::Event*<unnamed>::handle_nx_vendor(boost::shared_ptr<vigil::Openflow_connection>,
> const nicira_header*, std::auto_ptr<vigil::Buffer>)’:
> ../../../src/lib/openflow-event.cc:338: error: ‘NXT_MGMT’ was not declared
> in this scope
> ../../../src/lib/openflow-event.cc:339: error: invalid application of
> ‘sizeof’ to incomplete type ‘<unnamed>::ofmp_header’
> ../../../src/lib/openflow-event.cc:343: error: expected initializer before
> ‘*’ token
> ../../../src/lib/openflow-event.cc:353: error: ‘oh’ was not declared in
this
> scope
> ../../../src/lib/openflow-event.cc:353: error: ‘OFMPT_CONFIG_UPDATE’ was
not
> declared in this scope
> ../../../src/lib/openflow-event.cc:355: error: ISO C++ forbids declaration
> of ‘type name’ with no type
> ../../../src/lib/openflow-event.cc:355: error: ISO C++ forbids declaration
> of ‘type name’ with no type
> ../../../src/lib/openflow-event.cc:355: error: expected primary-expression
> before ‘const’
> ../../../src/lib/openflow-event.cc:355: error: expected `)' before ‘const’
> ../../../src/lib/openflow-event.cc:356: error: ‘OFMPT_CONFIG_UPDATE_ACK’
was
> not declared in this scope
> ../../../src/lib/openflow-event.cc:358: error: ISO C++ forbids declaration
> of ‘type name’ with no type
> ../../../src/lib/openflow-event.cc:358: error: ISO C++ forbids declaration
> of ‘type name’ with no type
> ../../../src/lib/openflow-event.cc:358: error: expected primary-expression
> before ‘const’
> ../../../src/lib/openflow-event.cc:358: error: expected `)' before ‘const’
> ../../../src/lib/openflow-event.cc:359: error: ‘OFMPT_RESOURCES_UPDATE’
was
> not declared in this scope
> ../../../src/lib/openflow-event.cc:361: error: ISO C++ forbids declaration
> of ‘type name’ with no type
> ../../../src/lib/openflow-event.cc:361: error: ISO C++ forbids declaration
> of ‘type name’ with no type
> ../../../src/lib/openflow-event.cc:361: error: expected primary-expression
> before ‘const’
> ../../../src/lib/openflow-event.cc:361: error: expected `)' before ‘const’
> ../../../src/lib/openflow-event.cc:362: error: ‘OFMPT_ERROR’ was not
> declared in this scope
> ../../../src/lib/openflow-event.cc:363: error: ‘ofmp_error_msg’ was not
> declared in this scope
> ../../../src/lib/openflow-event.cc:363: error: ‘oem’ was not declared in
> this scope
> ../../../src/lib/openflow-event.cc:363: error: ‘ofmp_error_msg’ cannot
> appear in a constant-expression
> ../../../src/lib/openflow-event.cc:363: error: no matching function for
call
> to ‘vigil::Buffer::try_at(int)’
> ../../../src/lib/openflow-event.cc:367: error: ‘OFMPT_EXTENDED_DATA’ was
not
> declared in this scope
> ../../../src/lib/openflow-event.cc:369: error: ISO C++ forbids declaration
> of ‘type name’ with no type
> ../../../src/lib/openflow-event.cc:369: error: ISO C++ forbids declaration
> of ‘type name’ with no type
> ../../../src/lib/openflow-event.cc:369: error: expected primary-expression
> before ‘const’
> ../../../src/lib/openflow-event.cc:369: error: expected `)' before ‘const’
> ../../../src/lib/openflow-event.cc: In function ‘vigil::Event*
>
vigil::openflow_packet_to_event(boost::shared_ptr<vigil::Openflow_connection>,
> std::auto_ptr<vigil::Buffer>)’:
> ../../../src/lib/openflow-event.cc:471: error: ‘OFPT_FLOW_EXPIRED’ was not
> declared in this scope
> ../../../src/lib/openflow-event.cc:472: error: no matching function for
call
> to ‘handle_packet(vigil::Event*
> (&)(boost::shared_ptr<vigil::Openflow_connection>, int),
> boost::shared_ptr<vigil::Openflow_connection>&, const ofp_header*&,
> std::auto_ptr<vigil::Buffer>&)’
> make[5]: ** [openflow-event.lo] Erro 1
> make[5]: Leaving directory `/opt/OFv1.0.0_NOXv0.6/nox/build/src/lib'
> make[4]: ** [all] Erro 2
> make[4]: Leaving directory `/opt/OFv1.0.0_NOXv0.6/nox/build/src/lib'
> make[3]: ** [all-recursive] Erro 1
> make[3]: Leaving directory `/opt/OFv1.0.0_NOXv0.6/nox/build/src'
> make[2]: ** [all] Erro 2
> make[2]: Leaving directory `/opt/OFv1.0.0_NOXv0.6/nox/build/src'
> make[1]: ** [all-recursive] Erro 1
> make[1]: Leaving directory `/opt/OFv1.0.0_NOXv0.6/nox/build'
> make: ** [all] Erro 2
>
> However, if I don't use the aditional
> --with-openflow=/opt/OFv1.0.0_NOXv0.6/openflow-1.0.0/, the errors don't
> occurs.
> ----------------
> ../configure --with-python=`which python2.5` --enable-ndebug
> make
> make check
>
> Correct compilation process
>
>
_______________________________________________
nox-dev mailing list
[email protected]
http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org

Reply via email to