[Click] Unable to compile Click with the OpenFlow element

Shrutarshi Basu basus at cs.cornell.edu
Tue Oct 18 11:51:30 EDT 2011


Hi all,
I'm trying to compile Click with the OpenFlow element (
http://www.openflow.org/wk/index.php/OpenFlowClick) and against the standard
2.6.33 kernel. I run `.configure --enable-openflow` and `make elemlist` as
per the OpenFlow instructions but on `make install` I get a compile error
saying that <click/cxxprotect.h> is missing, even though I can see it in
include/click. Here's the complete error message:

/home/openflow/click/include/click-linuxmodule/include0/linux/unaligned/generic.h:5:3:
error: #error "missing #include <click/cxxprotect.h>"
fixdep: /home/openflow/click/linuxmodule/.elements.o.d is empty
  CREATE /home/openflow/click/linuxmodule/ksyms.c
nm: 'chain.o': No such file
nm: 'datapath.o': No such file
nm: 'dp_act.o': No such file
nm: 'flow.o': No such file
nm: 'forward.o': No such file
nm: 'ofswitch.o': No such file
nm: 'openflow_genl.o': No such file
nm: 'packet_buffer.o': No such file
nm: 'port.o': No such file
nm: 'table_hash.o': No such file
nm: 'table_linear.o': No such file
  CC [M] ksyms.o
  LD [M]  /home/openflow/click/linuxmodule/click.o
ld: /home/openflow/click/linuxmodule/chain.o: No such file: No such file or
directory
make[3]: *** [/home/openflow/click/linuxmodule/click.o] Error 1
make[2]: *** [_module_/home/openflow/click/linuxmodule] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-2.6.32-21-generic-pae'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/openflow/click/linuxmodule'


Compiling and installing Click without the OpenFlow module seems to work
fine. Any ideas as to what could be wrong?

-- 
--
Shrutarshi Basu
Basus.me
The ByteBaker <http://bytebaker.com> -- because Computer Science is not
about computers


More information about the click mailing list