[Click] Compilation problems redux

Harvey Jones harveyj at media.mit.edu
Wed Jul 7 16:01:23 EDT 2004


Quoting Bob Keyes <bob at xa.net>:

> 
> Click version: both what I pulled out of CVS today, but also what
> was
> released as 1.4.1 has this problem.
> 
> Firstly, I am not able to compile click with gcc 3.3.4. From what
> I've been able to ascertain, __throw only existed in the 2.9.x
> GCC:
> 
> ftpportmapper.o(.text+0x201): In function
> `FTPPortMapper::configure(Vector<String> &, ErrorHandler *)':
> /home/bobk/click-1.4.1/userlevel/../elements/app/ftpportmapper.cc:71:
> undefined reference to `__throw'
>
ftpportmapper.o(.text+0x231):/home/bobk/click-1.4.1/userlevel/../elements/app/ftpportmapper.cc:74:
> undefined reference to `terminate(void)'
> ftpportmapper.o(.text+0x279): In function
> `FTPPortMapper::initialize(ErrorHandler *)':
> 
> 
> 
> OK, I can use GCC 2.95:
> 
> # ./configure --enable-wifi --with-wifi=../madwifi.stripped/  \
>  --enable-linuxmodule --with-linux=../linux-2.4.20
> --disable-adaptive CC=gcc-2.95 CXX=g++-2.95
> 
> But when I run make, it crashes:
> 
> g++-2.95 -DHAVE_CONFIG_H -I../include -I../include -I. -I..
> -DCLICK_USERLEVEL -g -O2  -c ../elements/wifi/linktable.cc
> In file included from ../elements/wifi/linktable.cc:19:
> ../elements/wifi/linktable.hh:171: declaration of `typedef class
> HashMap<IPAddress,IPAddress> LinkTable::IPTable'
> ../elements/wifi/linktable.hh:126: conflicts with previous
> declaration
> `typedef class HashMap<IPAddress,IPAddress> LinkTable::IPTable'
> make[1]: *** [linktable.o] Error 1
> make[1]: Leaving directory
> `/mnt/filestore/nellydata/home/bobk/click-1.4.1/userlevel'
> make: *** [userlevel] Error 2

I get the latter error as well, with both cvs and 1.4. Removing the
second typedef lets the compile complete, although I'm not sure it's
correct.


More information about the click mailing list