Problem building OpenFaucet

30 views
Skip to first unread message

Abhishek Chanda

unread,
Oct 9, 2012, 7:37:46 PM10/9/12
to openfauce...@googlegroups.com
Hi,

I am trying to build OpenFaucet on Ubuntu and it fails on the make
check command. Here is what happened:


achanda@achanda-OptiPlex-780:~/openfaucet$ ./bootstrap.sh
configure.ac:21: installing `config/install-sh'
configure.ac:21: installing `config/missing'
src/Makefile.am:15: installing `config/py-compile'
Makefile.am: installing `./INSTALL'


achanda@achanda-OptiPlex-780:~/openfaucet$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for python... /usr/bin/python
checking for python version... 2.7
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.7/dist-packages
checking for python extension module directory...
${exec_prefix}/lib/python2.7/dist-packages
checking for python import twisted... yes
checking for python import unittest2... yes
checking for sphinx-build-2.6... no
checking for sphinx-build... no
checking for latex... /usr/bin/latex
checking for makeindex... /usr/bin/makeindex
checking for pdflatex... /usr/bin/pdflatex
configure: creating ./config.status
config.status: creating Makefile
config.status: creating docs/Makefile
config.status: creating docs/conf.py
config.status: creating docs/install.rst
config.status: creating src/Makefile
achanda@achanda-OptiPlex-780:~/openfaucet$ make all
Making all in src
make[1]: Entering directory `/home/achanda/openfaucet/src'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/achanda/openfaucet/src'
Making all in docs
make[1]: Entering directory `/home/achanda/openfaucet/docs'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/achanda/openfaucet/docs'
make[1]: Entering directory `/home/achanda/openfaucet'
make[1]: Nothing to be done for `all-am'.
make[1]: Leaving directory `/home/achanda/openfaucet'
achanda@achanda-OptiPlex-780:~/openfaucet$ make check
Making check in src
make[1]: Entering directory `/home/achanda/openfaucet/src'
make check-TESTS
make[2]: Entering directory `/home/achanda/openfaucet/src'
generating test suite test_all.py
.............................E.............F..........................................................................................................................................................................................................................
======================================================================
ERROR: test_deserialize_action_strip_vlan (openfaucet.test_ofaction.TestActions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/achanda/openfaucet/src/openfaucet/test_ofaction.py",
line 82, in test_deserialize_action_strip_vlan
ofaction.ActionStripVlan.deserialize(self.buf))
File "<string>", line 14, in deserialize
File "/home/achanda/openfaucet/src/openfaucet/buffer.py", line 138, in unpack
raise IndexError('format too long')
IndexError: format too long

======================================================================
FAIL: test_serialize_action_strip_vlan (openfaucet.test_ofaction.TestActions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/achanda/openfaucet/src/openfaucet/test_ofaction.py",
line 77, in test_serialize_action_strip_vlan
self.assertEqual('', a.serialize())
AssertionError: '' != '\x00\x00\x00\x00'

----------------------------------------------------------------------
Ran 262 tests in 0.036s

FAILED (failures=1, errors=1)
FAIL: test_all.py
================================================
1 of 1 test failed
Please report to openfau...@googlegroups.com
================================================
make[2]: *** [check-TESTS] Error 1
make[2]: Leaving directory `/home/achanda/openfaucet/src'
make[1]: *** [check-am] Error 2
make[1]: Leaving directory `/home/achanda/openfaucet/src'
make: *** [check-recursive] Error 1

What went wrong?

Thanks

Romain Lenglet

unread,
Oct 9, 2012, 7:45:55 PM10/9/12
to openfauce...@googlegroups.com
Hi Abhishek,
May I assume that you checked out the master branch's current HEAD?
I will check and get back to you ASAP.
Thanks for your report!
Regards,
--
Romain Lenglet

Abhishek Chanda

unread,
Oct 9, 2012, 7:48:03 PM10/9/12
to openfauce...@googlegroups.com
Hi Romain,

Yes, I forked from you some time back. And then checked out master's HEAD.
Thanks for looking into this.

Thanks

Romain Lenglet

unread,
Oct 10, 2012, 1:36:28 AM10/10/12
to openfauce...@googlegroups.com
Hi Abhishek,
I fixed those unit tests in master.
I forgot to fix the unit tests after fixing the padding in ActionStripVlan.
Thanks for your report!
Regards,
--
Romain Lenglet


Abhishek Chanda

unread,
Oct 10, 2012, 2:27:34 PM10/10/12
to openfauce...@googlegroups.com
Works fine now. Thanks for looking into this.

Thanks

On Tue, Oct 9, 2012 at 10:36 PM, Romain Lenglet
Reply all
Reply to author
Forward
0 new messages