Hi, I believe there is a patch in NOX 0.6 for OpenFlow 1.0. Looks like that got overwritten. Just cherry pick.
commit 8f34004cbce1bf94965c336502665e72a929612a Author: Mikio Hara <[email protected]> Date: Thu Dec 3 12:47:32 2009 -0800 GCC 4.4 compliance patch for test suite (make check) Fixed header compatibility issues Regards KK 2010/1/11 Martin Casado <[email protected]>: > #include <cstdio> > > using namespace std; > > .m > >> Hi, >> >> I am trying to install and configure nox on ubuntu 9.10. I was able to >> install all dependencies and was able to get the noxcore using git. I was >> able to configure and make nox. However, when I tried the command 'make >> check', I get the following error: >> >> (End portion of the output when running 'make check') >> >> make test-classifier test-coop-preblock-hook test-coop-sema >> test-coop-signals test-ethernetaddr test-event-dispatcher-blocking >> test-event-dispatcher-starvation test-poll-loop-removal >> test-timer-dispatcher-delay test-timer-dispatcher-duplicates >> test-timer-dispatcher-starvation test-timeval test-type-props >> make[5]: Entering directory `/home/immad/nox/build/src/tests' >> 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-classifier.o -MD -MP >> -MF .deps/test-classifier.Tpo -c -o test-classifier.o >> ../../../src/tests/test-classifier.cc >> mv -f .deps/test-classifier.Tpo .deps/test-classifier.Po >> /bin/bash ../../libtool --tag=CXX --mode=link g++ >> -fno-omit-frame-pointer -Wall -Wno-sign-compare -Winit-self >> -Wformat-nonliteral -Wformat-security -g -O2 -R/usr/local/bin/tests >> -export-dynamic -o test-classifier test-classifier.o ../lib/libnoxcore.la >> <http://libnoxcore.la> ../builtin/.libs/libbuiltin.la <http://libbuiltin.la> >> -L/usr/lib -lboost_unit_test_framework-mt-d -lboost_filesystem-mt-d -lssl >> ../components.xsd.o ../nox.xsd.o >> libtool: link: g++ -fno-omit-frame-pointer -Wall -Wno-sign-compare >> -Winit-self -Wformat-nonliteral -Wformat-security -g -O2 -o >> .libs/test-classifier test-classifier.o ../components.xsd.o ../nox.xsd.o >> -Wl,--export-dynamic ../lib/.libs/libnoxcore.so >> ../builtin/.libs/libbuiltin.so -L/usr/lib -lboost_unit_test_framework-mt-d >> -lboost_filesystem-mt-d -lssl -Wl,-rpath -Wl,/usr/local/bin/builtin >> -Wl,-rpath -Wl,/usr/local/bin/tests >> 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/immad/nox/build/src/tests' >> make[4]: *** [check-am] Error 2 >> make[4]: Leaving directory `/home/immad/nox/build/src/tests' >> make[3]: *** [check] Error 2 >> make[3]: Leaving directory `/home/immad/nox/build/src/tests' >> make[2]: *** [check-recursive] Error 1 >> make[2]: Leaving directory `/home/immad/nox/build/src' >> make[1]: *** [check] Error 2 >> make[1]: Leaving directory `/home/immad/nox/build/src' >> make: *** [check-recursive] Error 1 >> >> Can anyone please help me out with this? >> >> Regards, >> Immad >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> nox-dev mailing list >> [email protected] >> http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org >> > > > _______________________________________________ > nox-dev mailing list > [email protected] > http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org > _______________________________________________ nox-dev mailing list [email protected] http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org
