Coder Social home page Coder Social logo

Comments (6)

chuanic avatar chuanic commented on May 8, 2024

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.

tbarbette avatar tbarbette commented on May 8, 2024

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.

lthurlow avatar lthurlow commented on May 8, 2024

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.

tbarbette avatar tbarbette commented on May 8, 2024

Is it solved by the commit #199? If so, please close the issue ;)

from click.

lthurlow avatar lthurlow commented on May 8, 2024

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.

fabian-marquardt avatar fabian-marquardt commented on May 8, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.