Comments (6)
you can find the suggested alternative, that is maybe your method to correct your program
ctrl+F and input "suggested alternative" in the above content.
from click.
Hi,
What are the other configure options you're using? Following http://www.read.cs.ucla.edu/click/nsclick for NS 3 it works for me. Did you try a "make distclean" before too? I recently submitted a PR which moved fasttcpflows from linuxmodule to be compatible with userlevel. Maybe the old fasttcpflows.cc/hh is still in your elements/linuxmodule folder which would prevent tcpudp/fasttcpflows.hh from being included?
Tom
from click.
I had a related issue with this build (2a181e0). I used EC2 instance clean, followed the instruction in INSTALL and got the following error. I found that this build (392b1f6) was able to make following the instructions.
In file included from ../elements/standard/cpuqueue.cc:2:0:
../elements/standard/cpuqueue.hh:22:33: error: expected class-name before ‘{’ token
class CPUQueue : public Element {
^
../elements/standard/cpuqueue.hh:24:5: error: ‘Packet’ does not name a type
Packet **_q;
^
../elements/standard/cpuqueue.hh:36:3: error: ‘Packet’ does not name a type
Packet *deq(int);
^
../elements/standard/cpuqueue.hh:38:10: error: ‘String’ does not name a type
static String read_handler(Element *, void *) CLICK_COLD;
^
../elements/standard/cpuqueue.hh:48:18: error: ‘ErrorHandler’ has not been declared
int initialize(ErrorHandler *) CLICK_COLD;
^
../elements/standard/cpuqueue.hh:49:16: error: ‘CleanupStage’ has not been declared
void cleanup(CleanupStage) CLICK_COLD;
^
../elements/standard/cpuqueue.hh:54:17: error: ‘Vector’ has not been declared
int configure(Vector<String> &, ErrorHandler *) CLICK_COLD;
^
../elements/standard/cpuqueue.hh:54:23: error: expected ‘,’ or ‘...’ before ‘<’ token
int configure(Vector<String> &, ErrorHandler *) CLICK_COLD;
^
../elements/standard/cpuqueue.hh:56:23: error: ‘Packet’ has not been declared
void push(int port, Packet *);
^
../elements/standard/cpuqueue.hh:57:3: error: ‘Packet’ does not name a type
Packet *pull(int port);
^
../elements/standard/cpuqueue.hh: In member function ‘const char* CPUQueue::processing() const’:
../elements/standard/cpuqueue.hh:47:44: error: ‘PUSH_TO_PULL’ was not declared in this scope
const char *processing() const { return PUSH_TO_PULL; }
^
../elements/standard/cpuqueue.cc: At global scope:
../elements/standard/cpuqueue.cc:17:21: error: ‘int CPUQueue::configure’ is not a static member of ‘class CPUQueue’
CPUQueue::configure(Vector<String> &conf, ErrorHandler *errh)
^
../elements/standard/cpuqueue.cc:17:21: error: ‘Vector’ was not declared in this scope
../elements/standard/cpuqueue.cc:17:21: note: suggested alternative:
In file included from ../include/click/element.hh:5:0,
from ../elements/standard/cpuqueue.hh:20,
from ../elements/standard/cpuqueue.cc:2:
../include/click/vector.hh:111:7: note: ‘Click::Vector’
class Vector {
^
../elements/standard/cpuqueue.cc:17:28: error: ‘String’ was not declared in this scope
CPUQueue::configure(Vector<String> &conf, ErrorHandler *errh)
^
../elements/standard/cpuqueue.cc:17:28: note: suggested alternative:
In file included from ../include/click/element.hh:6:0,
from ../elements/standard/cpuqueue.hh:20,
from ../elements/standard/cpuqueue.cc:2:
../include/click/string.hh:18:7: note: ‘Click::String’
class String { public:
^
../elements/standard/cpuqueue.cc:17:37: error: ‘conf’ was not declared in this scope
CPUQueue::configure(Vector<String> &conf, ErrorHandler *errh)
^
../elements/standard/cpuqueue.cc:17:43: error: ‘ErrorHandler’ was not declared in this scope
CPUQueue::configure(Vector<String> &conf, ErrorHandler *errh)
^
../elements/standard/cpuqueue.cc:17:43: note: suggested alternative:
In file included from ../elements/standard/cpuqueue.cc:3:0:
../include/click/error.hh:90:7: note: ‘Click::ErrorHandler’
class ErrorHandler { public:
^
../elements/standard/cpuqueue.cc:17:57: error: ‘errh’ was not declared in this scope
CPUQueue::configure(Vector<String> &conf, ErrorHandler *errh)
^
../elements/standard/cpuqueue.cc:17:61: error: expression list treated as compound expression in initializer [-fpermissive]
CPUQueue::configure(Vector<String> &conf, ErrorHandler *errh)
^
../elements/standard/cpuqueue.cc:18:1: error: expected ‘,’ or ‘;’ before ‘{’ token
{
^
../elements/standard/cpuqueue.cc:31:22: error: ‘int CPUQueue::initialize’ is not a static member of ‘class CPUQueue’
CPUQueue::initialize(ErrorHandler *errh)
^
../elements/standard/cpuqueue.cc:31:22: error: ‘ErrorHandler’ was not declared in this scope
../elements/standard/cpuqueue.cc:31:22: note: suggested alternative:
In file included from ../elements/standard/cpuqueue.cc:3:0:
../include/click/error.hh:90:7: note: ‘Click::ErrorHandler’
class ErrorHandler { public:
^
../elements/standard/cpuqueue.cc:31:36: error: ‘errh’ was not declared in this scope
CPUQueue::initialize(ErrorHandler *errh)
^
../elements/standard/cpuqueue.cc:32:1: error: expected ‘,’ or ‘;’ before ‘{’ token
{
^
../elements/standard/cpuqueue.cc:42:31: error: variable or field ‘cleanup’ declared void
CPUQueue::cleanup(CleanupStage)
^
../elements/standard/cpuqueue.cc:42:19: error: ‘CleanupStage’ was not declared in this scope
CPUQueue::cleanup(CleanupStage)
^
make[1]: *** [cpuqueue.o] Error 1
make[1]: Leaving directory `/home/ubuntu/ns-allinone-3.23/click/ns'
from click.
Is it solved by the commit #199? If so, please close the issue ;)
from click.
Tested on fedora I do not guild a build issue with --enable-nsclick. I think you can close this one, I will open another one for --enable-all-elements.
from click.
Sorry for my long absence, I was busy with other projects. Just to let you know, the issue is fixed on my system when using the recent master branch.
from click.
Related Issues (20)
- multiple queue for one device HOT 3
- Unit test for Elements HOT 2
- How to build a dependencies files HOT 2
- Add library to click HOT 2
- issue with adding library HOT 3
- chaning .click file dynamicly HOT 4
- Run multiple instanse of click with same DPDK HOT 3
- Sync with meson in DPDK HOT 2
- compilation error on Ubuntu 21.04 (g++ 11.1) HOT 9
- firewall implementation and traffic forwarding HOT 4
- Flow based Load Balancer HOT 7
- create handler HOT 2
- Benchmarking a click NF showing weird behavior
- Multi threading in click HOT 2
- Make minios fails on Ubuntu 20.04 error: no include path in which to search for stdint.h
- linux_true was not declared HOT 1
- Hash collisions in IPRewriter? HOT 2
- Click program with DPDK cause high CPU utilization on other cores even if using taskset and lcore option HOT 1
- VXLAN elements
- element "IPReassembled" how to use?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from click.