[Click] Unable to compile my own elements

Vishwas Dubey dubey.vishwas at gmail.com
Mon Dec 15 05:43:16 EST 2008


Hi All,

I am not able to compile my own elements. When I try to compile the new
elements I get the following error. Does anyone have an idea how to fix this
issue. Thanks in advance.

  CXX ../elements/Forwarding/gfcheckheader.cc
In file included from ../include/click/string.hh:7,
                 from ../include/click/confparse.hh:5,
                 from ../elements/Forwarding/gfcheckheader.cc:1:
../include/click/algorithm.hh:5: error: expected constructor, destructor, or
type conversion before 'template'
../include/click/algorithm.hh:23: error: 'CLICK_ENDDECLS' does not name a
type
In file included from ../include/click/string.hh:8,
                 from ../include/click/confparse.hh:5,
                 from ../elements/Forwarding/gfcheckheader.cc:1:
../include/click/atomic.hh:88: error: 'uint32_t' does not name a type
../include/click/atomic.hh:100: error: 'atomic_uint32_t' has not been
declared
../include/click/atomic.hh:100: error: expected type-specifier before
'uint32_t'
../include/click/atomic.hh:106: error: expected initializer before '&' token
../include/click/atomic.hh:118: error: expected initializer before '&' token
../include/click/atomic.hh:135: error: expected initializer before '&' token
../include/click/atomic.hh:152: error: expected initializer before '&' token
../include/click/atomic.hh:174: error: expected initializer before '&' token
../include/click/atomic.hh:197: error: 'atomic_uint32_t' has not been
declared
../include/click/atomic.hh:197: error: 'void operator++()' must have an
argument of class or enumerated type
../include/click/atomic.hh:213: error: 'atomic_uint32_t' has not been
declared
../include/click/atomic.hh:213: error: 'void operator++(int)' must have an
argument of class or enumerated type
../include/click/atomic.hh:229: error: 'atomic_uint32_t' has not been
declared
../include/click/atomic.hh:229: error: 'void operator--()' must have an
argument of class or enumerated type
../include/click/atomic.hh:245: error: 'atomic_uint32_t' has not been
declared
../include/click/atomic.hh:245: error: 'void operator--(int)' must have an
argument of class or enumerated type
../include/click/atomic.hh:267: error: 'uint32_t' does not name a type
../include/click/atomic.hh:296: error: 'uint32_t' does not name a type
../include/click/atomic.hh:328: error: 'atomic_uint32_t' has not been
declared
../include/click/atomic.hh: In function 'bool dec_and_test()':
../include/click/atomic.hh:340: error: '_val' was not declared in this scope
../include/click/atomic.hh: At global scope:
../include/click/atomic.hh:358: error: 'atomic_uint32_t' has not been
declared
../include/click/atomic.hh:358: error: 'compare_and_swap' declared as an
'inline' variable
../include/click/atomic.hh:358: error: 'uint32_t' was not declared in this
scope
../include/click/atomic.hh:358: error: 'uint32_t' was not declared in this
scope
../include/click/atomic.hh:358: error: initializer expression list treated
as compound expression
../include/click/atomic.hh:359: error: expected ',' or ';' before '{' token
../include/click/atomic.hh:383: error: expected initializer before
'operator'
../include/click/atomic.hh:389: error: expected initializer before
'operator'
../include/click/atomic.hh:395: error: expected ',' or '...' before '&'
token
../include/click/atomic.hh:395: error: ISO C++ forbids declaration of
'atomic_uint32_t' with no type
../include/click/atomic.hh:395: error: 'bool operator==(int)' must have an
argument of class or enumerated type
../include/click/atomic.hh:401: error: expected ',' or '...' before '&'
token
../include/click/atomic.hh:401: error: ISO C++ forbids declaration of
'atomic_uint32_t' with no type
../include/click/atomic.hh:401: error: 'bool operator!=(int)' must have an
argument of class or enumerated type
../include/click/atomic.hh:407: error: expected ',' or '...' before '&'
token
../include/click/atomic.hh:407: error: ISO C++ forbids declaration of
'atomic_uint32_t' with no type
../include/click/atomic.hh:407: error: 'bool operator>(int)' must have an
argument of class or enumerated type
../include/click/atomic.hh:413: error: expected ',' or '...' before '&'
token
../include/click/atomic.hh:413: error: ISO C++ forbids declaration of
'atomic_uint32_t' with no type
../include/click/atomic.hh:413: error: 'bool operator<(int)' must have an
argument of class or enumerated type
../include/click/atomic.hh:419: error: expected ',' or '...' before '&'
token
../include/click/atomic.hh:419: error: ISO C++ forbids declaration of
'atomic_uint32_t' with no type
../include/click/atomic.hh:419: error: 'bool operator>=(int)' must have an
argument of class or enumerated type
../include/click/atomic.hh:425: error: expected ',' or '...' before '&'
token
../include/click/atomic.hh:425: error: ISO C++ forbids declaration of
'atomic_uint32_t' with no type
../include/click/atomic.hh:425: error: 'bool operator<=(int)' must have an
argument of class or enumerated type
../include/click/atomic.hh:430: error: 'atomic_uint32_t' does not name a
type
../include/click/atomic.hh:432: error: 'CLICK_ENDDECLS' does not name a type
In file included from ../include/click/confparse.hh:5,
                 from ../elements/Forwarding/gfcheckheader.cc:1:
../include/click/string.hh:186: error: 'String' has not been declared
../include/click/string.hh:186: error: 'Memo' has not been declared
../include/click/string.hh:186: error: ISO C++ forbids declaration of
'String' with no type
../include/click/string.hh: In function 'int String(const char*, int,
int*)':
../include/click/string.hh:187: error: only constructors take base
initializers
../include/click/string.hh:189: error: '_memo' was not declared in this
scope
../include/click/string.hh:190: warning: no return statement in function
returning non-void
../include/click/string.hh: At global scope:
../include/click/string.hh:193: error: 'String' is not a class or namespace
../include/click/string.hh:193: error: expected ',' or '...' before '&'
token
../include/click/string.hh:193: error: ISO C++ forbids declaration of
'String' with no type
../include/click/string.hh:193: error: non-member function 'void
assign(int)' cannot have cv-qualifier
../include/click/string.hh: In function 'void assign(int)':
../include/click/string.hh:195: error: '_data' was not declared in this
scope
../include/click/string.hh:195: error: 'str' was not declared in this scope
../include/click/string.hh:196: error: '_length' was not declared in this
scope
../include/click/string.hh:197: error: '_memo' was not declared in this
scope
../include/click/string.hh: At global scope:
../include/click/string.hh:193: warning: unused parameter 'String'
../include/click/string.hh:202: error: 'String' is not a class or namespace
../include/click/string.hh:202: error: non-member function 'void deref()'
cannot have cv-qualifier
../include/click/string.hh: In function 'void deref()':
../include/click/string.hh:204: error: '_memo' was not declared in this
scope
../include/click/string.hh:205: error: type '<type error>' argument given to
'delete', expected pointer
../include/click/string.hh: At global scope:
../include/click/string.hh:210: error: 'String' is not a class or namespace
../include/click/string.hh:210: error: ISO C++ forbids declaration of
'String' with no type
../include/click/string.hh: In function 'int String()':
../include/click/string.hh:211: error: only constructors take base
initializers
../include/click/string.hh:211: error: 'null_memo' was not declared in this
scope
../include/click/string.hh:213: error: '_memo' was not declared in this
scope
../include/click/string.hh:214: warning: no return statement in function
returning non-void
../include/click/string.hh: At global scope:
../include/click/string.hh:225: error: 'String' is not a class or namespace
../include/click/string.hh:225: error: ISO C++ forbids declaration of
'String' with no type
../include/click/string.hh: In function 'int String(const char*)':
../include/click/string.hh:227: error: invalid conversion from 'const char*'
to 'int'
../include/click/string.hh:193: error: too many arguments to function 'void
assign(int)'
../include/click/string.hh:227: error: at this point in file
../include/click/string.hh:228: warning: no return statement in function
returning non-void
../include/click/string.hh: At global scope:
../include/click/string.hh:241: error: 'String' is not a class or namespace
../include/click/string.hh:241: error: ISO C++ forbids declaration of
'String' with no type
../include/click/string.hh: In function 'int String(const char*, int)':
../include/click/string.hh:243: error: invalid conversion from 'const char*'
to 'int'
../include/click/string.hh:193: error: too many arguments to function 'void
assign(int)'
../include/click/string.hh:243: error: at this point in file
../include/click/string.hh:244: warning: no return statement in function
returning non-void
../include/click/string.hh: At global scope:
../include/click/string.hh:257: error: 'String' is not a class or namespace
../include/click/string.hh:257: error: ISO C++ forbids declaration of
'String' with no type
../include/click/string.hh: In function 'int String(const char*, const
char*)':
../include/click/string.hh:259: error: invalid conversion from 'const char*'
to 'int'
../include/click/string.hh:193: error: too many arguments to function 'void
assign(int)'
../include/click/string.hh:259: error: at this point in file
../include/click/string.hh:260: warning: no return statement in function
returning non-void
../include/click/string.hh: At global scope:
../include/click/string.hh:267: error: 'String' is not a class or namespace
../include/click/string.hh:267: error: ISO C++ forbids declaration of
'String' with no type
../include/click/string.hh: In function 'int String(bool)':
../include/click/string.hh:268: error: only constructors take base
initializers
../include/click/string.hh:268: error: 'permanent_memo' was not declared in
this scope
../include/click/string.hh:270: error: '_memo' was not declared in this
scope
../include/click/string.hh:271: warning: no return statement in function
returning non-void
../include/click/string.hh: At global scope:
../include/click/string.hh:277: error: 'String' is not a class or namespace
../include/click/string.hh:277: error: ISO C++ forbids declaration of
'String' with no type
../include/click/string.hh: In function 'int String(char)':
../include/click/string.hh:279: error: invalid conversion from 'char*' to
'int'
../include/click/string.hh:193: error: too many arguments to function 'void
assign(int)'
../include/click/string.hh:279: error: at this point in file
../include/click/string.hh:280: warning: no return statement in function
returning non-void
../include/click/string.hh: At global scope:
../include/click/string.hh:286: error: 'String' is not a class or namespace
../include/click/string.hh:286: error: ISO C++ forbids declaration of
'String' with no type
../include/click/string.hh: In function 'int String(unsigned char)':
../include/click/string.hh:288: error: invalid conversion from 'char*' to
'int'
../include/click/string.hh:193: error: too many arguments to function 'void
assign(int)'
../include/click/string.hh:288: error: at this point in file
../include/click/string.hh:289: warning: no return statement in function
returning non-void
../include/click/string.hh: At global scope:
../include/click/string.hh:295: error: 'String' is not a class or namespace
../include/click/string.hh:295: error: expected ',' or '...' before '&'
token
../include/click/string.hh:295: error: ISO C++ forbids declaration of
'String' with no type
../include/click/string.hh:295: error: ISO C++ forbids declaration of
'String' with no type
../include/click/string.hh: In function 'int String(int)':
../include/click/string.hh:297: error: 'str' was not declared in this scope
../include/click/string.hh:298: warning: no return statement in function
returning non-void
../include/click/string.hh: At global scope:
../include/click/string.hh:295: warning: unused parameter 'String'
../include/click/string.hh:302: error: expected initializer before '::'
token
../include/click/string.hh:309: error: 'String' is not a class or namespace
../include/click/string.hh:309: error: non-member function 'int length()'
cannot have cv-qualifier
../include/click/string.hh: In function 'int length()':
../include/click/string.hh:311: error: '_length' was not declared in this
scope
../include/click/string.hh: At global scope:
../include/click/string.hh:319: error: 'String' is not a class or namespace
../include/click/string.hh:319: error: non-member function 'const char*
data()' cannot have cv-qualifier
../include/click/string.hh: In function 'const char* data()':
../include/click/string.hh:321: error: '_data' was not declared in this
scope
../include/click/string.hh: At global scope:
../include/click/string.hh:328: error: 'String' is not a class or namespace
../include/click/string.hh:329: error: expected initializer before 'String'
../include/click/string.hh:338: error: 'String' is not a class or namespace
../include/click/string.hh:339: error: expected initializer before 'String'
../include/click/string.hh:346: error: 'String' is not a class or namespace
../include/click/string.hh:346: error: expected type-specifier before
'unspecified_bool_type'
../include/click/string.hh:356: error: 'String' is not a class or namespace
../include/click/string.hh:356: error: non-member function 'char
operator[](int)' cannot have cv-qualifier
../include/click/string.hh:356: error: 'char operator[](int)' must be a
nonstatic member function
../include/click/string.hh:368: error: 'String' is not a class or namespace
../include/click/string.hh:368: error: non-member function 'char at(int)'
cannot have cv-qualifier
../include/click/string.hh: In function 'char at(int)':
../include/click/string.hh:370: error: '_length' was not declared in this
scope
../include/click/string.hh:370: error: 'assert' was not declared in this
scope
../include/click/string.hh:371: error: '_data' was not declared in this
scope
../include/click/string.hh: At global scope:
../include/click/string.hh:378: error: 'String' is not a class or namespace
../include/click/string.hh:378: error: non-member function 'char front()'
cannot have cv-qualifier
../include/click/string.hh: In function 'char front()':
../include/click/string.hh:380: error: '_data' was not declared in this
scope
../include/click/string.hh: At global scope:
../include/click/string.hh:387: error: 'String' is not a class or namespace
../include/click/string.hh:387: error: non-member function 'char back()'
cannot have cv-qualifier
../include/click/string.hh: In function 'char back()':
../include/click/string.hh:389: error: '_data' was not declared in this
scope../include/click/string.hh: At global scope:
../include/click/string.hh:394: error: 'String' is not a class or namespace
../include/click/string.hh:394: error: non-member function 'bool
data_shared()' cannot have cv-qualifier
../include/click/string.hh: In function 'bool data_shared()':
../include/click/string.hh:396: error: '_memo' was not declared in this
scope
../include/click/string.hh: At global scope:
../include/click/string.hh:403: error: expected initializer before '&' token
../include/click/string.hh:418: error: 'String' does not name a type
../include/click/string.hh:436: error: 'String' does not name a type
../include/click/string.hh:449: error: 'String' does not name a type
../include/click/string.hh:463: error: 'String' is not a class or namespace
../include/click/string.hh:463: error: expected ',' or '...' before '&'
token
../include/click/string.hh:463: error: ISO C++ forbids declaration of
'String' with no type
../include/click/string.hh: In function 'int compare(int)':
../include/click/string.hh:465: error: 'a' was not declared in this scope
../include/click/string.hh:465: error: 'b' was not declared in this scope
../include/click/string.hh: At global scope:
../include/click/string.hh:463: warning: unused parameter 'String'
../include/click/string.hh:473: error: 'String' is not a class or namespace
../include/click/string.hh:473: error: expected ',' or '...' before '&'
token
../include/click/string.hh:473: error: ISO C++ forbids declaration of
'String' with no type
../include/click/string.hh:473: error: non-member function 'int
compare(int)' cannot have cv-qualifier
../include/click/string.hh: In function 'int compare(int)':
../include/click/string.hh:473: error: redefinition of 'int compare(int)'
../include/click/string.hh:463: error: 'int compare(int)' previously defined
here
../include/click/string.hh:475: error: 'str' was not declared in this scope
../include/click/string.hh: At global scope:
../include/click/string.hh:473: warning: unused parameter 'String'
../include/click/string.hh:487: error: expected ',' or '...' before '&'
token
../include/click/string.hh:487: error: ISO C++ forbids declaration of
'String' with no type
../include/click/string.hh:487: error: 'bool operator==(int)' must have an
argument of class or enumerated type
../include/click/string.hh:494: error: expected ',' or '...' before '&'
token
../include/click/string.hh:494: error: ISO C++ forbids declaration of
'String' with no type
../include/click/string.hh:494: error: 'bool operator==(const char*, int)'
must have an argument of class or enumerated type
../include/click/string.hh:501: error: expected ',' or '...' before '&'
token
../include/click/string.hh:501: error: ISO C++ forbids declaration of
'String' with no type
../include/click/string.hh:501: error: 'bool operator==(int)' must have an
argument of class or enumerated type
../include/click/string.hh:512: error: expected ',' or '...' before '&'
token
../include/click/string.hh:512: error: ISO C++ forbids declaration of
'String' with no type
../include/click/string.hh:512: error: 'bool operator!=(int)' must have an
argument of class or enumerated type
../include/click/string.hh:519: error: expected ',' or '...' before '&'
token
../include/click/string.hh:519: error: ISO C++ forbids declaration of
'String' with no type
../include/click/string.hh:519: error: 'bool operator!=(const char*, int)'
must have an argument of class or enumerated type
../include/click/string.hh:526: error: expected ',' or '...' before '&'
token
../include/click/string.hh:526: error: ISO C++ forbids declaration of
'String' with no type
../include/click/string.hh:526: error: 'bool operator!=(int)' must have an
argument of class or enumerated type
../include/click/string.hh:538: error: expected ',' or '...' before '&'
token
../include/click/string.hh:538: error: ISO C++ forbids declaration of
'String' with no type
../include/click/string.hh:538: error: 'bool operator<(int)' must have an
argument of class or enumerated type
../include/click/string.hh:550: error: expected ',' or '...' before '&'
token
../include/click/string.hh:550: error: ISO C++ forbids declaration of
'String' with no type
../include/click/string.hh:550: error: 'bool operator<=(int)' must have an
argument of class or enumerated type
../include/click/string.hh:562: error: expected ',' or '...' before '&'
token
../include/click/string.hh:562: error: ISO C++ forbids declaration of
'String' with no type
../include/click/string.hh:562: error: 'bool operator>(int)' must have an
argument of class or enumerated type
../include/click/string.hh:574: error: expected ',' or '...' before '&'
token
../include/click/string.hh:574: error: ISO C++ forbids declaration of
'String' with no type
../include/click/string.hh:574: error: 'bool operator>=(int)' must have an
argument of class or enumerated type
../include/click/string.hh:580: error: expected initializer before '&' token

-Vishwas.


More information about the click mailing list