[Click] Compilation problems redux

Bob Keyes bob at xa.net
Wed Jul 7 15:20:14 EDT 2004


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

This is on debian-testing, kernel 2.4.26-1-k7. Unlike my previous
attempts, I am compiling against a small, vanilla, non-debianized kernel
2.4.20 with the click and click-wifi patches installed.


More information about the click mailing list