I am using ubuntu 9.10 (Karmic), and I have all the dependencies
installed. I had an old installation of nox 0.5-beta on ubuntu 9.04 that
worked fine with 0.8.9~2.

I can't seem to get NOX to compile with 0.8.9~2, when I pass the folder
as an option to configure with 

./configure --with-python=`which python2.5`
--with-openflow=`pwd`/../openflow --enable-ndebug

When I run make, I get following errors.

openflow-event.cc: At global scope:
openflow-event.cc:235: error: ISO C++ forbids declaration of
'ofmp_config_update' with no type
openflow-event.cc:235: error: expected ',' or '...' before '*' token
openflow-event.cc: In function
'vigil::Event*<unnamed>::handle_ofmp_config_update(boost::shared_ptr<vig
il::Openflow_connection>, int)':
openflow-event.cc:241: error: 'buf' was not declared in this scope
openflow-event.cc:246: error: 'ocu' was not declared in this scope
openflow-event.cc:246: error: 'buf' was not declared in this scope
openflow-event.cc: At global scope:
openflow-event.cc:251: error: ISO C++ forbids declaration of
'ofmp_config_update_ack' with no type
openflow-event.cc:251: error: expected ',' or '...' before '*' token
openflow-event.cc: In function
'vigil::Event*<unnamed>::handle_ofmp_config_update_ack(boost::shared_ptr
<vigil::Openflow_connection>, int)':
openflow-event.cc:257: error: 'buf' was not declared in this scope
openflow-event.cc:262: error: 'ocua' was not declared in this scope
openflow-event.cc:262: error: 'buf' was not declared in this scope
openflow-event.cc: At global scope:
openflow-event.cc:267: error: ISO C++ forbids declaration of
'ofmp_resources_update' with no type
openflow-event.cc:267: error: expected ',' or '...' before '*' token
openflow-event.cc: In function
'vigil::Event*<unnamed>::handle_ofmp_resources_update(boost::shared_ptr<
vigil::Openflow_connection>, int)':
openflow-event.cc:273: error: 'buf' was not declared in this scope
openflow-event.cc:278: error: 'oru' was not declared in this scope
openflow-event.cc:278: error: 'buf' was not declared in this scope
openflow-event.cc: At global scope:
openflow-event.cc:283: error: ISO C++ forbids declaration of
'ofmp_extended_data' with no type
openflow-event.cc:283: error: expected ',' or '...' before '*' token
openflow-event.cc: In function
'vigil::Event*<unnamed>::handle_ofmp_extended_data(boost::shared_ptr<vig
il::Openflow_connection>, int)':
openflow-event.cc:285: error: 'buf' was not declared in this scope
openflow-event.cc:285: error: 'oed' was not declared in this scope
openflow-event.cc:298: error: 'OFMPEDF_MORE_DATA' was not declared in
this scope
openflow-event.cc:309: error: 'ofmp_header' was not declared in this
scope
openflow-event.cc:309: error: 'oh' was not declared in this scope
openflow-event.cc:309: error: 'ofmp_header' cannot appear in a
constant-expression
openflow-event.cc:309: error: no matching function for call to
'vigil::Buffer::try_at(int)'
openflow-event.cc:311: error: 'NXT_MGMT' was not declared in this scope
openflow-event.cc:312: error: 'OFMPT_EXTENDED_DATA' was not declared in
this scope
openflow-event.cc: In function
'vigil::Event*<unnamed>::handle_nx_vendor(boost::shared_ptr<vigil::Openf
low_connection>, const nicira_header*, std::auto_ptr<vigil::Buffer>)':
openflow-event.cc:338: error: 'NXT_MGMT' was not declared in this scope
openflow-event.cc:339: error: invalid application of 'sizeof' to
incomplete type '<unnamed>::ofmp_header' 
openflow-event.cc:343: error: expected initializer before '*' token
openflow-event.cc:353: error: 'oh' was not declared in this scope
openflow-event.cc:353: error: 'OFMPT_CONFIG_UPDATE' was not declared in
this scope
openflow-event.cc:355: error: ISO C++ forbids declaration of 'type name'
with no type
openflow-event.cc:355: error: ISO C++ forbids declaration of 'type name'
with no type
openflow-event.cc:355: error: expected primary-expression before 'const'
openflow-event.cc:355: error: expected ')' before 'const'
openflow-event.cc:356: error: 'OFMPT_CONFIG_UPDATE_ACK' was not declared
in this scope
openflow-event.cc:358: error: ISO C++ forbids declaration of 'type name'
with no type
openflow-event.cc:358: error: ISO C++ forbids declaration of 'type name'
with no type
openflow-event.cc:358: error: expected primary-expression before 'const'
openflow-event.cc:358: error: expected ')' before 'const'
openflow-event.cc:359: error: 'OFMPT_RESOURCES_UPDATE' was not declared
in this scope
openflow-event.cc:361: error: ISO C++ forbids declaration of 'type name'
with no type
openflow-event.cc:361: error: ISO C++ forbids declaration of 'type name'
with no type
openflow-event.cc:361: error: expected primary-expression before 'const'
openflow-event.cc:361: error: expected ')' before 'const'
openflow-event.cc:362: error: 'OFMPT_ERROR' was not declared in this
scope
openflow-event.cc:363: error: 'ofmp_error_msg' was not declared in this
scope
openflow-event.cc:363: error: 'oem' was not declared in this scope
openflow-event.cc:363: error: 'ofmp_error_msg' cannot appear in a
constant-expression
openflow-event.cc:363: error: no matching function for call to
'vigil::Buffer::try_at(int)'
openflow-event.cc:367: error: 'OFMPT_EXTENDED_DATA' was not declared in
this scope
openflow-event.cc:369: error: ISO C++ forbids declaration of 'type name'
with no type
openflow-event.cc:369: error: ISO C++ forbids declaration of 'type name'
with no type
openflow-event.cc:369: error: expected primary-expression before 'const'
openflow-event.cc:369: error: expected ')' before 'const'

> -----Original Message-----
> From: Martin Casado [mailto:[email protected]]
> Sent: Thursday, November 19, 2009 10:25 PM
> To: Pradeep Padala
> Subject: Re: [nox-dev] boot.sh error
> 
> Nox doesn't currently support 0.9 though it should work with the
0.8.9~2
> codebase. Let me know if your having problems with the latter and I'll
> see if I can reproduce them.
> 
> We generally use Open vSwitch for testing (vswitch.org) so there may
be
> some recent incompatibilities with the Stanford reference
implementation.
> 
> .m
> 
> > Getting the latest from git repos worked. But, now I have run into
> > another problem. I got OpenFlow from git as well, and when I try to
> > setup the connection between controller and the switch, I get the
> > following error in NOX.
> >
> > ====
> > 00034|openflow|DBG:Passive tcp interface bound to port 6633
> > 00035|nox|INFO:nox bootstrap complete
> > 00036|openflow|DBG:Passive tcp interface received connection
> > 00037|openflow|DBG:stream: negotiated OpenFlow version 0x97 (we
support
> > versions 0x97 to 0x97 inclusive, peer no later than version 0x98)
> > 00038|nox|DBG:Success sending in 'sending switch config'
> > 00039|nox|DBG:Success sending in 'receiving features reply'
> > 00040|nox|DBG:Success receiving in 'receiving features reply'
> > 00041|nox|WARN:Received error during handshake (0/0)
> > terminate called after throwing an instance of
> >
'boost::exception_detail::clone_impl<boost::exception_detail::error_info
> > _injector<boost::bad_function_call> >'
> >   what():  call to empty boost::function
> > Aborted
> >
> > ===
> >
> > I thought may be the latest version is not supported, and tried both
0.9
> > and 0.9.0-rev1 and 0.8.9~2, still get the same error.
> >
> > Any fixes?
> >
> > Thanks,
> > Pradeep
> >
> >
> >
> >> -----Original Message-----
> >> From: Martin Casado [mailto:[email protected]]
> >> Sent: Thursday, November 19, 2009 10:23 AM
> >> To: Pradeep Padala
> >> Cc: [email protected]
> >> Subject: Re: [nox-dev] boot.sh error
> >>
> >> What distribution/compiler are you using?
> >>
> >> btw, I would suggest you clone from git://noxrepo.org/nox rather
than
> >> noxcore. The code in nox/ is simpler, and has less dependencies.
We're
> >> in the process of moving over to that as the primary repo.
> >>
> >> thanks,
> >> Martin
> >>
> > <snip>
> >
> >


_______________________________________________
nox-dev mailing list
[email protected]
http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org

Reply via email to