Thanks. Yes, I am running 4.4. I think the documentation said 4.2 or higher.
I can try your recommendation but should I instead just install gcc 4.2 and
compile with that? I'd rather sync with whatever is considered the more
reliable compilation environment.


On Sat, Dec 19, 2009 at 5:14 PM, <n...@illicitonion.com> wrote:

> I'm guessing you're using GCC/G++ 4.4 (you can find out by running `g++
> --version`), and this is a leftover from
> http://noxrepo.org/pipermail/nox-dev_noxrepo.org/2009-October/000865.html
>
> You need to add the line:
> #include <cstdio>
> to each of the following files:
> src/tests/test-coop-preblock-hook.cc
> src/tests/test-coop-sema.cc
> src/tests/test-coop-signals.cc
> src/tests/test-event-dispatcher-blocking.cc
> src/tests/test-event-dispatcher-starvation.cc
> src/tests/test-poll-loop-removal.cc
> src/tests/test-timer-dispatcher-delay.cc
> src/tests/test-timer-dispatcher-duplicates.cc
> src/tests/test-timer-dispatcher-starvation.cc
>
> (Might as well just add it after all the other #include lines in each file)
>
> `make check` should then succeed, and run the tests
>
> On Sat 19/12/09 01:12, "Ashish Agarwal" agarwal1...@gmail.com wrote:
> > I got NOX 0.6 compiled and then ran some of the tests mentioned in the
> > documentation. Some fail and some succeed so Im wondering if my
> > installation worked or not. The tests I ran are:
> >
> > ./nox_core -h  -- this works fine
> > make check -- fails as shown below
> > ./nox_core tests -- fails with errors shown below
> > ./nox_core -v -i pgen:10 packetdump -- seems to have run fine if Im
> > correctly understanding the output shown below
> >
> > Thank you.
> >
> > $ make check
> > ....
> > g++ -DHAVE_CONFIG_H -I. -I../../../src/tests -I../..
> >  -DPKGDATADIR="/usr/local/share/nox"
> > -DPKGLIBDIR="/usr/local/bin/tests"
> > -DPKGLOCALSTATEDIR="/usr/local/var/nox"
> > -DPKGSYSCONFDIR="/usr/local/etc/nox" -include ../../config.h -I
> > ../../../src/include -I../../../src/include/openflow -I/usr/include
> > -I/usr/include/xercesc -I/usr/include -D_GNU_SOURCE=1   -D_REENTRANT
> > -D__STDC_LIMIT_MACROS=1 -D__STDC_FORMAT_MACROS=1
> > -D__STDC_CONSTANT_MACROS=1 -D_GLIBCXX_CONCEPT_CHECKS=1
> > -D_GLIBCXX_DEBUG=1 -D_GLIBCXX_DEBUG_PEDANTIC=1 -I
> > -fno-omit-frame-pointer -Wall -Wno-sign-compare -Winit-self
> > -Wformat-nonliteral -Wformat-security -g -O2 -MT
> > test-coop-preblock-hook.o -MD -MP -MF
> > .deps/test-coop-preblock-hook.Tpo -c -o test-coop-preblock-hook.o
> > ../../../src/tests/test-coop-preblock-hook.cc
> > ../../../src/tests/test-coop-preblock-hook.cc: In function ‘void
> > thread1_hook()’:
> > ../../../src/tests/test-coop-preblock-hook.cc:32: error: ‘printf’
> > was not declared in this scope
> > ../../../src/tests/test-coop-preblock-hook.cc: In function ‘void
> > thread1()’:
> > ../../../src/tests/test-coop-preblock-hook.cc:40: error:
> > ‘printf’ was not declared in this scope
> > ../../../src/tests/test-coop-preblock-hook.cc: In function ‘void
> > thread2()’:
> > ../../../src/tests/test-coop-preblock-hook.cc:52: error: ‘printf’
> > was not declared in this scope
> > make[5]: *** [test-coop-preblock-hook.o] Error 1
> > make[5]: Leaving directory `/home/ashish/local/nox/build/src/tests
> > make[4]: *** [check-am] Error 2
> > make[4]: Leaving directory `/home/ashish/local/nox/build/src/tests
> > make[3]: *** [check] Error 2
> > make[3]: Leaving directory `/home/ashish/local/nox/build/src/tests
> > make[2]: *** [check-recursive] Error 1
> > make[2]: Leaving directory `/home/ashish/local/nox/build/src
> > make[1]: *** [check] Error 2
> > make[1]: Leaving directory `/home/ashish/local/nox/build/src
> > make: *** [check-recursive] Error 1
> >
> > $ ./nox_core tests
> > NOX 0.8.0~full~beta (nox_core), compiled Dec 18 2009 18:34:14
> > Compiled with OpenFlow 0x97 (exp)
> > 00001|nox|ERR:Application pytstorage description not found.
> >
> > $ ./nox_core -v -i pgen:10 packetdump
> > 00001|nox|INFO:Starting nox_core
> > (/home/ashish/local/nox/build/src/.libs/lt-nox_core)
> > 00002|pyrt|DBG:Loading a component description file
> > nox/coreapps/testharness/meta.xml.
> > 00003|pyrt|DBG:Loading a component description file
> > nox/coreapps/hub/meta.xml.
> > 00004|pyrt|DBG:Loading a component description file
> > nox/coreapps/pyrt/meta.xml.
> > 00005|pyrt|DBG:Loading a component description file
> > nox/coreapps/examples/meta.xml.
> > 00006|pyrt|DBG:Loading a component description file
> > nox/coreapps/examples/t/meta.xml.
> > 00007|pyrt|DBG:Loading a component description file
> > nox/coreapps/coretests/meta.xml.
> > 00008|pyrt|DBG:Loading a component description file
> > nox/coreapps/simple_c_py_app/meta.xml.
> > 00009|pyrt|DBG:Loading a component description file
> > nox/coreapps/simple_c_app/meta.xml.
> > 00010|pyrt|DBG:Loading a component description file
> > nox/coreapps/switch/meta.xml.
> > 00011|pyrt|DBG:Loading a component description file
> > nox/netapps/flow_fetcher/meta.xml.
> > 00012|pyrt|DBG:Loading a component description file
> > nox/netapps/user_event_log/meta.xml.
> > 00013|pyrt|DBG:Loading a component description file
> > nox/netapps/authenticator/meta.xml.
> > 00014|pyrt|DBG:Loading a component description file
> > nox/netapps/switchstats/meta.xml.
> > 00015|pyrt|DBG:Loading a component description file
> > nox/netapps/storage/meta.xml.
> > 00016|pyrt|DBG:Loading a component description file
> > nox/netapps/storage/t/meta.xml.
> > 00017|pyrt|DBG:Loading a component description file
> > nox/netapps/routing/meta.xml.
> > 00018|pyrt|DBG:Loading a component description file
> > nox/netapps/topology/meta.xml.
> > 00019|pyrt|DBG:Loading a component description file
> > nox/netapps/bindings_storage/meta.xml.
> > 00020|pyrt|DBG:Loading a component description file
> > nox/netapps/bindings_storage/t/meta.xml.
> > 00021|pyrt|DBG:Loading a component description file
> > nox/netapps/data/meta.xml.
> > 00022|pyrt|DBG:Loading a component description file
> > nox/netapps/switch_management/meta.xml.
> > 00023|pyrt|DBG:Loading a component description file
> > nox/netapps/tests/meta.xml.
> > 00024|pyrt|DBG:Loading a component description file
> > nox/netapps/discovery/meta.xml.
> > 00025|pyrt|DBG:Loading a component description file
> > nox/webapps/webservice/meta.xml.
> > 00026|pyrt|DBG:Loading a component description file
> > nox/webapps/webserver/meta.xml.
> > 00027|pyrt|DBG:Loading a component description file
> > nox/webapps/miscws/meta.xml.
> > 00028|pycomponent|DBG:Importing Python module
> > nox.coreapps.examples.packetdump
> > 00029|nox|DBG:Application installation report:
> > 00030|nox|DBG:python:
> > Current state: INSTALLED
> > Required state: INSTALLED
> > Dependencies:
> >
> > 00031|nox|DBG:built-in DSO deployer:
> > Current state: INSTALLED
> > Required state: INSTALLED
> > Dependencies:
> >
> > 00032|nox|DBG:packetdump:
> > Current state: INSTALLED
> > Required state: INSTALLED
> > Dependencies: python OK, python OK
> >
> > 00033|nox|DBG:built-in event dispatcher:
> > Current state: INSTALLED
> > Required state: INSTALLED
> > Dependencies:
> >
> > 00034|nox|INFO:nox bootstrap complete
> > 00035|packetgen|DBG:received HELLO
> > 00036|packetgen|DBG:receiving HELLO
> > 00037|openflow|DBG:pgen:: negotiated OpenFlow version 0x97 (we
> > support versions 0x97 to 0x97 inclusive, peer no later than version
> > 0x97)
> > 00038|packetgen|DBG:sending features reply
> > 00039|nox|DBG:Success sending in sending switch config
> > 00040|packetgen|DBG:received SET_CONFIG
> > 00041|nox|DBG:Success sending in receiving features reply
> > 00042|packetgen|DBG:receiving HELLO
> > 00043|nox|DBG:Success receiving in receiving features reply
> > 00044|packetgen|DBG:received non-feature request 4, ignoring
> > 00045|nox|DBG:Success sending in receiving ofmp capability reply
> > 00046|nox|DBG:Success receiving in receiving ofmp capability reply
> > 00047|nox|DBG:Dropping packet in message during handshake
> > 00048|nox|DBG:Success receiving in receiving ofmp capability reply
> > 00049|nox|DBG:Dropping packet in message during handshake
> > 00050|nox|DBG:Success receiving in receiving ofmp capability reply
> > 00051|nox|DBG:Dropping packet in message during handshake
> > 00052|nox|DBG:Success receiving in receiving ofmp capability reply
> > 00053|nox|DBG:Dropping packet in message during handshake
> > 00054|nox|DBG:Success receiving in receiving ofmp capability reply
> > 00055|nox|DBG:Dropping packet in message during handshake
> > 00056|nox|DBG:Success receiving in receiving ofmp capability reply
> > 00057|nox|DBG:Dropping packet in message during handshake
> > 00058|nox|DBG:Success receiving in receiving ofmp capability reply
> > 00059|nox|DBG:Dropping packet in message during handshake
> > 00060|nox|DBG:Success receiving in receiving ofmp capability reply
> > 00061|nox|DBG:Dropping packet in message during handshake
> > 00062|nox|DBG:Success receiving in receiving ofmp capability reply
> > 00063|nox|DBG:Dropping packet in message during handshake
> > 00064|nox|DBG:Success receiving in receiving ofmp capability reply
> > 00065|nox|DBG:Dropping packet in message during handshake
> > 00066|openflow|WARN:pgen:: connection closed by peer
> > 00067|nox|WARN:Error receiving ofmp capability reply : recv:
> > connection closed
> >
> >
> >
>
>
>
_______________________________________________
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org

Reply via email to