[Click] how to include a library in a click module?

mario mario.padulosi at student.fundp.ac.be
Tue Nov 22 12:39:08 EST 2005


Hello
I'm Mario Padulosi, a stager working at the "Institute de Informatique" 
of the  "Notre Dame de la Paix" university of Namur (Belgium).I'm 
developping a new click module and I need to include in my .cc file the  
C++ library <iostrem>  to use the function rand(). As i include it, when 
I type the command make install, it return many errors as the attached 
file shows.

Thanks for your attention,
sincerily
Mario Padulosi
-------------- next part --------------
[root at pc03 click-1.4.3]# make
make[1]: Entering directory `/root/hvp/click/click-1.4.3/userlevel'
g++ -W -Wall -fno-exceptions -fno-rtti  -DHAVE_CONFIG_H -I../include -I../include -I. -I..  -DCLICK_USERLEVEL -g -O2 -MD -c ../elements/standard/mariodrop.cc
../elements/standard/mariodrop.cc: In member function `virtual bool
   mariodrop::run_task()':
../elements/standard/mariodrop.cc:82: warning: control reaches end of non-void
   function
../click-buildtool elem2export < elements.conf > elements.cc
g++ -W -Wall -fno-exceptions -fno-rtti  -DHAVE_CONFIG_H -I../include -I../include -I. -I..  -DCLICK_USERLEVEL -g -O2 -MD -c elements.cc
g++ -W -Wall -fno-exceptions -fno-rtti  -g -O2  -o click -rdynamic ftpportmapper.o adaptivered.o red.o arpfaker.o arpquerier.o arpresponder.o ensureether.o etherencap.o ethermirror.o hostetherfilter.o checkicmpheader.o icmperror.o icmppingencap.o icmppingresponder.o icmppingrewriter.o icmprewriter.o icmpsendpings.o checkipheader2.o checkipheader.o decipttl.o fixipsrc.o getipaddress.o ipaddrpairrewriter.o ipaddrrewriter.o ipclassifier.o ipencap.o ipfilter.o ipfragmenter.o ipgwoptions.o ipinputcombo.o ipmirror.o ipoutputcombo.o ipprint.o ipratemon.o ipreassembler.o iproutetable.o iprw.o iprwpatterns.o lineariplookup.o lookupiproute2.o lookupiproute.o lookupiproutelinux.o markipce.o markipheader.o radixiplookup.o rfc2507c.o rfc2507d.o ripsend.o rripmapper.o setipaddress.o setipchecksum.o setipdscp.o setrandipaddress.o siphmapper.o sortediplookup.o storeipaddress.o stripipheader.o trieiplookup.o unstripipheader.o align.o averagecounter.o bandwidthmeter.o bandwidthshaper.o burster.o bwratedsplitter.o bwratedunqueue.o checkcrc32.o checklength.o checkpaint.o classifier.o compblock.o counter.o delayshaper.o delayunqueue.o devirtualizeinfo.o discard.o discardnofree.o dropbroadcasts.o drr.o frontdropqueue.o fullnotequeue.o hashswitch.o idle.o infinitesource.o linkunqueue.o mariodrop.o messageelement.o meter.o mixedqueue.o msqueue.o notifierqueue.o nullelement.o nulls.o paint.o paintswitch.o painttee.o pokehandlers.o print.o priosched.o pullswitch.o quitwatcher.o randomerror.o randomsample.o randomsource.o randomswitch.o ratedsource.o ratedsplitter.o ratedunqueue.o rrsched.o rrswitch.o setannobyte.o setcrc32.o setpackettype.o settimestamp.o shaper.o simplequeue.o spinlockacquire.o spinlockinfo.o spinlockrelease.o staticpullswitch.o staticswitch.o storedata.o stridesched.o strideswitch.o strip.o striptonet.o suppressor.o switch.o tee.o timedsink.o timedsource.o unqueue2.o unqueue.o unstrip.o checktcpheader.o checkudpheader.o dynudpipencap.o iprewriter.o settcpchecksum.o setudpchecksum.o tcprewriter.o udpipencap.o chattersocket.o controlsocket.o fakepcap.o fromdevice.o fromdump.o fromfile.o fromhost.o fromrawsocket.o fromsocket.o handlerproxy.o kerneltap.o kerneltun.o khandlerproxy.o printold.o progressbar.o todevice.o todump.o tohost.o torawsocket.o tosocket.o  elements.o click.o libclick.a `../click-compile --otherlibs`
make[1]: Leaving directory `/root/hvp/click/click-1.4.3/userlevel'
make[1]: Entering directory `/root/hvp/click/click-1.4.3/linuxmodule'
g++ -w -W -Wall -fno-exceptions -fno-rtti  -DHAVE_CONFIG_H  -I../include -I../include -I. -I.. -I/usr/src/linux/include -DCLICK_LINUXMODULE -O2 -MD -c ../elements/standard/mariodrop.cc
In file included from /usr/include/c++/3.3.2/cctype:49,
                 from /usr/include/c++/3.3.2/iosfwd:47,
                 from /usr/include/c++/3.3.2/ios:44,
                 from /usr/include/c++/3.3.2/ostream:45,
                 from /usr/include/c++/3.3.2/iostream:45,
                 from ../elements/standard/mariodrop.hh:7,
                 from ../elements/standard/mariodrop.cc:2:
/usr/include/ctype.h:102: error: syntax error before `]' token
/usr/include/ctype.h:103: error: syntax error before `]' token
/usr/include/ctype.h:104: error: syntax error before `]' token
/usr/include/ctype.h:105: error: syntax error before `]' token
/usr/include/ctype.h:106: error: syntax error before `]' token
/usr/include/ctype.h:107: error: syntax error before `]' token
/usr/include/ctype.h:108: error: syntax error before `]' token
/usr/include/ctype.h:109: error: syntax error before `]' token
/usr/include/ctype.h:110: error: syntax error before `]' token
/usr/include/ctype.h:111: error: syntax error before `]' token
/usr/include/ctype.h:112: error: syntax error before `]' token
/usr/include/ctype.h:116: error: declaration of C function `int __tolower(int)'
   conflicts with
/usr/src/linux/include/linux/ctype.h:38: error: previous declaration `unsigned
   char __tolower(unsigned char)' here
/usr/include/ctype.h:119: error: declaration of C function `int __toupper(int)'
   conflicts with
/usr/src/linux/include/linux/ctype.h:45: error: previous declaration `unsigned
   char __toupper(unsigned char)' here
/usr/include/ctype.h:142: error: syntax error before `unsigned'
/usr/include/ctype.h:146: error: syntax error before `unsigned'
In file included from /usr/include/c++/3.3.2/iosfwd:47,
                 from /usr/include/c++/3.3.2/ios:44,
                 from /usr/include/c++/3.3.2/ostream:45,
                 from /usr/include/c++/3.3.2/iostream:45,
                 from ../elements/standard/mariodrop.hh:7,
                 from ../elements/standard/mariodrop.cc:2:
/usr/include/c++/3.3.2/cctype:68: error: `isalnum' not declared
/usr/include/c++/3.3.2/cctype:69: error: `isalpha' not declared
/usr/include/c++/3.3.2/cctype:70: error: `iscntrl' not declared
/usr/include/c++/3.3.2/cctype:71: error: `isdigit' not declared
/usr/include/c++/3.3.2/cctype:72: error: `isgraph' not declared
/usr/include/c++/3.3.2/cctype:73: error: `islower' not declared
/usr/include/c++/3.3.2/cctype:74: error: `isprint' not declared
/usr/include/c++/3.3.2/cctype:75: error: `ispunct' not declared
/usr/include/c++/3.3.2/cctype:76: error: `isspace' not declared
/usr/include/c++/3.3.2/cctype:77: error: `isupper' not declared
/usr/include/c++/3.3.2/cctype:78: error: `isxdigit' not declared
/usr/include/c++/3.3.2/cctype:79: error: `tolower' not declared
/usr/include/c++/3.3.2/cctype:80: error: `toupper' not declared
In file included from /usr/include/sched.h:29,
                 from /usr/include/pthread.h:20,
                 from /usr/include/c++/3.3.2/i386-redhat-linux/bits/gthr-default.h:37,
                 from /usr/include/c++/3.3.2/i386-redhat-linux/bits/gthr.h:98,
                 from /usr/include/c++/3.3.2/i386-redhat-linux/bits/c++io.h:37,
                 from /usr/include/c++/3.3.2/bits/fpos.h:44,
                 from /usr/include/c++/3.3.2/iosfwd:49,
                 from /usr/include/c++/3.3.2/ios:44,
                 from /usr/include/c++/3.3.2/ostream:45,
                 from /usr/include/c++/3.3.2/iostream:45,
                 from ../elements/standard/mariodrop.hh:7,
                 from ../elements/standard/mariodrop.cc:2:
/usr/include/time.h:119: error: redefinition of `struct timespec'
/usr/src/linux/include/linux/time.h:9: error: previous definition of `struct
   timespec'
In file included from /usr/include/sched.h:32,
                 from /usr/include/pthread.h:20,
                 from /usr/include/c++/3.3.2/i386-redhat-linux/bits/gthr-default.h:37,
                 from /usr/include/c++/3.3.2/i386-redhat-linux/bits/gthr.h:98,
                 from /usr/include/c++/3.3.2/i386-redhat-linux/bits/c++io.h:37,
                 from /usr/include/c++/3.3.2/bits/fpos.h:44,
                 from /usr/include/c++/3.3.2/iosfwd:49,
                 from /usr/include/c++/3.3.2/ios:44,
                 from /usr/include/c++/3.3.2/ostream:45,
                 from /usr/include/c++/3.3.2/iostream:45,
                 from ../elements/standard/mariodrop.hh:7,
                 from ../elements/standard/mariodrop.cc:2:
/usr/include/bits/sched.h:63: error: redefinition of `struct sched_param'
/usr/src/linux/include/linux/sched.h:118: error: previous definition of `struct
   sched_param'
In file included from /usr/include/pthread.h:21,
                 from /usr/include/c++/3.3.2/i386-redhat-linux/bits/gthr-default.h:37,
                 from /usr/include/c++/3.3.2/i386-redhat-linux/bits/gthr.h:98,
                 from /usr/include/c++/3.3.2/i386-redhat-linux/bits/c++io.h:37,
                 from /usr/include/c++/3.3.2/bits/fpos.h:44,
                 from /usr/include/c++/3.3.2/iosfwd:49,
                 from /usr/include/c++/3.3.2/ios:44,
                 from /usr/include/c++/3.3.2/ostream:45,
                 from /usr/include/c++/3.3.2/iostream:45,
                 from ../elements/standard/mariodrop.hh:7,
                 from ../elements/standard/mariodrop.cc:2:
/usr/include/time.h:160: error: redefinition of `struct itimerspec'
/usr/src/linux/include/linux/time.h:119: error: previous definition of `struct
   itimerspec'
/usr/include/time.h:191: error: declaration of C function `__time_t mktime(tm*)
   ' conflicts with
/usr/src/linux/include/linux/time.h:71: error: previous declaration `long
   unsigned int mktime(unsigned int, unsigned int, unsigned int, unsigned int,
   unsigned int, unsigned int)' here
In file included from /usr/include/pthread.h:24,
                 from /usr/include/c++/3.3.2/i386-redhat-linux/bits/gthr-default.h:37,
                 from /usr/include/c++/3.3.2/i386-redhat-linux/bits/gthr.h:98,
                 from /usr/include/c++/3.3.2/i386-redhat-linux/bits/c++io.h:37,
                 from /usr/include/c++/3.3.2/bits/fpos.h:44,
                 from /usr/include/c++/3.3.2/iosfwd:49,
                 from /usr/include/c++/3.3.2/ios:44,
                 from /usr/include/c++/3.3.2/ostream:45,
                 from /usr/include/c++/3.3.2/iostream:45,
                 from ../elements/standard/mariodrop.hh:7,
                 from ../elements/standard/mariodrop.cc:2:
/usr/include/signal.h:50: error: conflicting types for `typedef struct
   __sigset_t sigset_t'
/usr/src/linux/include/asm/signal.h:21: error: previous declaration as `typedef
   struct sigset_t sigset_t'
In file included from /usr/include/c++/3.3.2/cstring:51,
                 from /usr/include/c++/3.3.2/bits/char_traits.h:45,
                 from /usr/include/c++/3.3.2/ios:46,
                 from /usr/include/c++/3.3.2/ostream:45,
                 from /usr/include/c++/3.3.2/iostream:45,
                 from ../elements/standard/mariodrop.hh:7,
                 from ../elements/standard/mariodrop.cc:2:
/usr/include/string.h:38: error: syntax error before `?' token
/usr/include/string.h:58: error: syntax error before `?' token
In file included from /usr/include/c++/3.3.2/bits/char_traits.h:45,
                 from /usr/include/c++/3.3.2/ios:46,
                 from /usr/include/c++/3.3.2/ostream:45,
                 from /usr/include/c++/3.3.2/iostream:45,
                 from ../elements/standard/mariodrop.hh:7,
                 from ../elements/standard/mariodrop.cc:2:
/usr/include/c++/3.3.2/cstring:79: error: `memcpy' not declared
/usr/include/c++/3.3.2/cstring:85: error: `memcmp' not declared
/usr/include/c++/3.3.2/cstring:93: error: `memset' not declared
In file included from /usr/include/c++/3.3.2/ios:46,
                 from /usr/include/c++/3.3.2/ostream:45,
                 from /usr/include/c++/3.3.2/iostream:45,
                 from ../elements/standard/mariodrop.hh:7,
                 from ../elements/standard/mariodrop.cc:2:
/usr/include/c++/3.3.2/bits/char_traits.h: In static member function `static
   int std::char_traits<char>::compare(const char*, const char*, unsigned int)
   ':
/usr/include/c++/3.3.2/bits/char_traits.h:139: error: `memcmp' undeclared
   (first use this function)
/usr/include/c++/3.3.2/bits/char_traits.h:139: error: (Each undeclared
   identifier is reported only once for each function it appears in.)
/usr/include/c++/3.3.2/bits/char_traits.h: In static member function `static
   char* std::char_traits<char>::copy(char*, const char*, unsigned int)':
/usr/include/c++/3.3.2/bits/char_traits.h:155: error: `memcpy' undeclared
   (first use this function)
/usr/include/c++/3.3.2/bits/char_traits.h: In static member function `static
   char* std::char_traits<char>::assign(char*, unsigned int, char)':
/usr/include/c++/3.3.2/bits/char_traits.h:159: error: `memset' undeclared
   (first use this function)
In file included from /usr/include/limits.h:152,
                 from /usr/lib/gcc-lib/i386-redhat-linux/3.3.2/include/limits.h:122,
                 from /usr/lib/gcc-lib/i386-redhat-linux/3.3.2/include/syslimits.h:7,
                 from /usr/lib/gcc-lib/i386-redhat-linux/3.3.2/include/limits.h:11,
                 from /usr/include/c++/3.3.2/climits:49,
                 from /usr/include/c++/3.3.2/bits/stl_algobase.h:66,
                 from /usr/include/c++/3.3.2/memory:54,
                 from /usr/include/c++/3.3.2/string:48,
                 from /usr/include/c++/3.3.2/bits/locale_classes.h:47,
                 from /usr/include/c++/3.3.2/bits/ios_base.h:47,
                 from /usr/include/c++/3.3.2/ios:49,
                 from /usr/include/c++/3.3.2/ostream:45,
                 from /usr/include/c++/3.3.2/iostream:45,
                 from ../elements/standard/mariodrop.hh:7,
                 from ../elements/standard/mariodrop.cc:2:
/usr/include/bits/xopen_lim.h:95:6: missing binary operator before token "("
/usr/include/bits/xopen_lim.h:98:7: missing binary operator before token "("
/usr/include/bits/xopen_lim.h:122:6: missing binary operator before token "("
In file included from /usr/include/c++/3.3.2/cstdlib:52,
                 from /usr/include/c++/3.3.2/bits/stl_algobase.h:67,
                 from /usr/include/c++/3.3.2/memory:54,
                 from /usr/include/c++/3.3.2/string:48,
                 from /usr/include/c++/3.3.2/bits/locale_classes.h:47,
                 from /usr/include/c++/3.3.2/bits/ios_base.h:47,
                 from /usr/include/c++/3.3.2/ios:49,
                 from /usr/include/c++/3.3.2/ostream:45,
                 from /usr/include/c++/3.3.2/iostream:45,
                 from ../elements/standard/mariodrop.hh:7,
                 from ../elements/standard/mariodrop.cc:2:
/usr/include/stdlib.h: In function `long unsigned int strtoul(const char*,
   char**, int)':
/usr/include/stdlib.h:322: error: redefinition of `long unsigned int
   strtoul(const char*, char**, int)'
../include/click/glue.hh:139: error: `long unsigned int strtoul(const char*,
   char**, int)' previously defined here
In file included from /usr/include/stdlib.h:416,
                 from /usr/include/c++/3.3.2/cstdlib:52,
                 from /usr/include/c++/3.3.2/bits/stl_algobase.h:67,
                 from /usr/include/c++/3.3.2/memory:54,
                 from /usr/include/c++/3.3.2/string:48,
                 from /usr/include/c++/3.3.2/bits/locale_classes.h:47,
                 from /usr/include/c++/3.3.2/bits/ios_base.h:47,
                 from /usr/include/c++/3.3.2/ios:49,
                 from /usr/include/c++/3.3.2/ostream:45,
                 from /usr/include/c++/3.3.2/iostream:45,
                 from ../elements/standard/mariodrop.hh:7,
                 from ../elements/standard/mariodrop.cc:2:
/usr/include/sys/types.h: At global scope:
/usr/include/sys/types.h:41: error: conflicting types for `typedef struct
   __fsid_t fsid_t'
/usr/src/linux/include/asm/statfs.h:8: error: previous declaration as `typedef
   struct __kernel_fsid_t fsid_t'
/usr/include/sys/types.h:62: error: conflicting types for `typedef __dev_t
   dev_t'
/usr/src/linux/include/linux/types.h:21: error: previous declaration as `
   typedef __kernel_dev_t dev_t'
/usr/include/sys/types.h:72: error: conflicting types for `typedef __mode_t
   mode_t'
/usr/src/linux/include/linux/types.h:23: error: previous declaration as `
   typedef __kernel_mode_t mode_t'
/usr/include/sys/types.h:77: error: conflicting types for `typedef __nlink_t
   nlink_t'
/usr/src/linux/include/linux/types.h:24: error: previous declaration as `
   typedef __kernel_nlink_t nlink_t'
In file included from /usr/include/sys/select.h:46,
                 from /usr/include/sys/types.h:216,
                 from /usr/include/stdlib.h:416,
                 from /usr/include/c++/3.3.2/cstdlib:52,
                 from /usr/include/c++/3.3.2/bits/stl_algobase.h:67,
                 from /usr/include/c++/3.3.2/memory:54,
                 from /usr/include/c++/3.3.2/string:48,
                 from /usr/include/c++/3.3.2/bits/locale_classes.h:47,
                 from /usr/include/c++/3.3.2/bits/ios_base.h:47,
                 from /usr/include/c++/3.3.2/ios:49,
                 from /usr/include/c++/3.3.2/ostream:45,
                 from /usr/include/c++/3.3.2/iostream:45,
                 from ../elements/standard/mariodrop.hh:7,
                 from ../elements/standard/mariodrop.cc:2:
/usr/include/bits/time.h:70: error: redefinition of `struct timeval'
/usr/src/linux/include/linux/time.h:88: error: previous definition of `struct
   timeval'
In file included from /usr/include/sys/types.h:216,
                 from /usr/include/stdlib.h:416,
                 from /usr/include/c++/3.3.2/cstdlib:52,
                 from /usr/include/c++/3.3.2/bits/stl_algobase.h:67,
                 from /usr/include/c++/3.3.2/memory:54,
                 from /usr/include/c++/3.3.2/string:48,
                 from /usr/include/c++/3.3.2/bits/locale_classes.h:47,
                 from /usr/include/c++/3.3.2/bits/ios_base.h:47,
                 from /usr/include/c++/3.3.2/ios:49,
                 from /usr/include/c++/3.3.2/ostream:45,
                 from /usr/include/c++/3.3.2/iostream:45,
                 from ../elements/standard/mariodrop.hh:7,
                 from ../elements/standard/mariodrop.cc:2:
/usr/include/sys/select.h:78: error: conflicting types for `typedef struct
   fd_set fd_set'
/usr/src/linux/include/linux/types.h:20: error: previous declaration as `
   typedef struct __kernel_fd_set fd_set'
In file included from /usr/include/c++/3.3.2/cstdlib:52,
                 from /usr/include/c++/3.3.2/bits/stl_algobase.h:67,
                 from /usr/include/c++/3.3.2/memory:54,
                 from /usr/include/c++/3.3.2/string:48,
                 from /usr/include/c++/3.3.2/bits/locale_classes.h:47,
                 from /usr/include/c++/3.3.2/bits/ios_base.h:47,
                 from /usr/include/c++/3.3.2/ios:49,
                 from /usr/include/c++/3.3.2/ostream:45,
                 from /usr/include/c++/3.3.2/iostream:45,
                 from ../elements/standard/mariodrop.hh:7,
                 from ../elements/standard/mariodrop.cc:2:
/usr/include/stdlib.h:423: error: declaration of C function `long int random()'
   conflicts with
../include/click/glue.hh:98: error: previous declaration `uint32_t random()'
   here
In file included from /usr/include/c++/3.3.2/bits/stl_algobase.h:69,
                 from /usr/include/c++/3.3.2/memory:54,
                 from /usr/include/c++/3.3.2/string:48,
                 from /usr/include/c++/3.3.2/bits/locale_classes.h:47,
                 from /usr/include/c++/3.3.2/bits/ios_base.h:47,
                 from /usr/include/c++/3.3.2/ios:49,
                 from /usr/include/c++/3.3.2/ostream:45,
                 from /usr/include/c++/3.3.2/iostream:45,
                 from ../elements/standard/mariodrop.hh:7,
                 from ../elements/standard/mariodrop.cc:2:
/usr/include/c++/3.3.2/new: In function `void* operator new(unsigned int,
   void*)':
/usr/include/c++/3.3.2/new:92: error: redefinition of `void* operator
   new(unsigned int, void*)'
../include/click/config-linuxmodule.h:63: error: `void* operator new(unsigned
   int, void*)' previously defined here
/usr/include/c++/3.3.2/new:92: error: redefinition of `void* operator
   new(unsigned int, void*)'
../include/click/config-linuxmodule.h:63: error: `void* operator new(unsigned
   int, void*)' previously defined here
In file included from /usr/include/c++/3.3.2/bits/stl_algobase.h:75,
                 from /usr/include/c++/3.3.2/memory:54,
                 from /usr/include/c++/3.3.2/string:48,
                 from /usr/include/c++/3.3.2/bits/locale_classes.h:47,
                 from /usr/include/c++/3.3.2/bits/ios_base.h:47,
                 from /usr/include/c++/3.3.2/ios:49,
                 from /usr/include/c++/3.3.2/ostream:45,
                 from /usr/include/c++/3.3.2/iostream:45,
                 from ../elements/standard/mariodrop.hh:7,
                 from ../elements/standard/mariodrop.cc:2:
/usr/include/c++/3.3.2/bits/stl_iterator.h: In constructor `
   std::reverse_iterator<_Iterator>::reverse_iterator()':
/usr/include/c++/3.3.2/bits/stl_iterator.h:114: error: class `
   std::reverse_iterator<_Iterator>' does not have any field named `get_current
   '
/usr/include/c++/3.3.2/bits/stl_iterator.h:114: error: syntax error before `;'
   token
/usr/include/c++/3.3.2/bits/stl_iterator.h: In constructor `
   std::reverse_iterator<_Iterator>::reverse_iterator(_Iterator)':
/usr/include/c++/3.3.2/bits/stl_iterator.h:120: error: class `
   std::reverse_iterator<_Iterator>' does not have any field named `get_current
   '
/usr/include/c++/3.3.2/bits/stl_iterator.h:120: error: syntax error before `;'
   token
/usr/include/c++/3.3.2/bits/stl_iterator.h: In copy constructor `
   std::reverse_iterator<_Iterator>::reverse_iterator(const
   std::reverse_iterator<_Iterator>&)':
/usr/include/c++/3.3.2/bits/stl_iterator.h:126: error: class `
   std::reverse_iterator<_Iterator>' does not have any field named `get_current
   '
/usr/include/c++/3.3.2/bits/stl_iterator.h:126: error: syntax error before `;'
   token
/usr/include/c++/3.3.2/bits/stl_iterator.h: In constructor `
   std::reverse_iterator<_Iterator>::reverse_iterator(const
   std::reverse_iterator<_Iter>&)':
/usr/include/c++/3.3.2/bits/stl_iterator.h:134: error: class `
   std::reverse_iterator<_Iterator>' does not have any field named `get_current
   '
/usr/include/c++/3.3.2/bits/stl_iterator.h:134: error: syntax error before `;'
   token
In file included from /usr/include/c++/3.3.2/memory:54,
                 from /usr/include/c++/3.3.2/string:48,
                 from /usr/include/c++/3.3.2/bits/locale_classes.h:47,
                 from /usr/include/c++/3.3.2/bits/ios_base.h:47,
                 from /usr/include/c++/3.3.2/ios:49,
                 from /usr/include/c++/3.3.2/ostream:45,
                 from /usr/include/c++/3.3.2/iostream:45,
                 from ../elements/standard/mariodrop.hh:7,
                 from ../elements/standard/mariodrop.cc:2:
/usr/include/c++/3.3.2/bits/stl_algobase.h: In function `void
   std::fill(unsigned char*, unsigned char*, const unsigned char&)':
/usr/include/c++/3.3.2/bits/stl_algobase.h:549: error: `memset' undeclared
   (first use this function)
/usr/include/c++/3.3.2/bits/stl_algobase.h: In function `void std::fill(signed
   char*, signed char*, const signed char&)':
/usr/include/c++/3.3.2/bits/stl_algobase.h:556: error: `memset' undeclared
   (first use this function)
/usr/include/c++/3.3.2/bits/stl_algobase.h: In function `void std::fill(char*,
   char*, const char&)':
/usr/include/c++/3.3.2/bits/stl_algobase.h:563: error: `memset' undeclared
   (first use this function)
/usr/include/c++/3.3.2/bits/stl_algobase.h: In function `bool
   std::lexicographical_compare(const unsigned char*, const unsigned char*,
   const unsigned char*, const unsigned char*)':
/usr/include/c++/3.3.2/bits/stl_algobase.h:793: error: `memcmp' undeclared
   (first use this function)
In file included from /usr/include/c++/3.3.2/bits/codecvt.h:334,
                 from /usr/include/c++/3.3.2/bits/locale_facets.h:528,
                 from /usr/include/c++/3.3.2/bits/basic_ios.h:44,
                 from /usr/include/c++/3.3.2/ios:51,
                 from /usr/include/c++/3.3.2/ostream:45,
                 from /usr/include/c++/3.3.2/iostream:45,
                 from ../elements/standard/mariodrop.hh:7,
                 from ../elements/standard/mariodrop.cc:2:
/usr/include/c++/3.3.2/i386-redhat-linux/bits/codecvt_specializations.h: In
   constructor `std::__enc_traits::__enc_traits()':
/usr/include/c++/3.3.2/i386-redhat-linux/bits/codecvt_specializations.h:78: error: `
   memset' undeclared (first use this function)
make[1]: *** [mariodrop.o] Error 1
make[1]: Leaving directory `/root/hvp/click/click-1.4.3/linuxmodule'
make: *** [linuxmodule] Error 2


More information about the click mailing list