click userlevel errors 3/11 cvs

David Scott Page page at cs.utexas.edu
Mon Mar 17 11:54:04 EST 2003


Eddie,

The undeclared "archive_index" in the userlevel build persists (click
is from cvs where the last changelog entry is from early this
morning).

Please let me know what other details about this OS X 10.2.4 box I can
provide to help debug.

--
David Page

---------------------------------------------------------------------
Perhaps this is the problem (although, surely OS X has dynamic
linking):

bash-2.05a$ find include -type f -print |xargs fgrep HAVE_DYNAMIC_LINKING
include/click/config-userlevel.h:/* #undef HAVE_DYNAMIC_LINKING */

driver.cc:

#if HAVE_DYNAMIC_LINKING && !defined(CLICK_LINUXMODULE) && !defined(CLICK_BSDMODULE)
CLICK_DECLS
...
static int
archive_index(const Vector<ArchiveElement> *archive, const String &what)
...

----------------------------------------------------------
bash-2.05a$ ../click-20030316/configure  --enable-tools=host --disable-linuxmodule --prefix /var/local/click

...

  make[1]: Entering directory `/Users/page/Projects/Click/gcc-0316/userlevel'
g++ -W -Wall -fno-exceptions -fno-rtti  -MD -DHAVE_CONFIG_H -I../include -I../../click-20030316/include -I../../click-20030316/userlevel -I../../click-20030316  -DCLICK_USERLEVEL -g -O2 -c ../../click-20030316/lib/driver.cc
../../click-20030316/lib/driver.cc: In function `Router* 
   click_read_router(String, bool, ErrorHandler*, bool)':
../../click-20030316/lib/driver.cc:404: `archive_index' undeclared (first use 
   this function)
../../click-20030316/lib/driver.cc:404: (Each undeclared identifier is reported 
   only once for each function it appears in.)
make[1]: *** [driver.o] Error 1
make[1]: Target `all' not remade because of errors.
make[1]: Leaving directory `/Users/page/Projects/Click/gcc-0316/userlevel'


------------------------------------------------------------ 

Also, FWIW, this warning was reported.

g++ -W -Wall -fno-exceptions -fno-rtti  -MD -DHAVE_CONFIG_H -I../include -I../../click-20030316/include -I../../click-20030316/userlevel -I../../click-20030316  -DCLICK_USERLEVEL -g -O2 -c ../../click-20030316/elements/userlevel/kerneltap.cc
../../click-20030316/elements/userlevel/kerneltap.cc: In member function 
   `virtual void KernelTap::selected(int)':
../../click-20030316/elements/userlevel/kerneltap.cc:279: warning: unused 
   parameter `int fd'
../../click-20030316/elements/userlevel/kerneltap.cc: In member function 
   `virtual void KernelTap::push(int, Packet*)':
../../click-20030316/elements/userlevel/kerneltap.cc:355: warning: unused 
   variable `int type'




More information about the click mailing list