[Click] Compilation problems redux

Eddie Kohler kohler at CS.UCLA.EDU
Wed Jul 7 12:44:59 EDT 2004


Hi Bob,

I think the problem is related to your specification of CC and CXX on  
the ./configure command line.  Click's configuration system generally  
adds the following options to $CXX: "-W -Wall -fno-exceptions  
-fno-rtti".  But if the user gives explicit CC/CXX it doesn't do this;  
it expects the user to do so if necessary.  So, could you please try to  
reconfigure with "CXX='whatever -fno-exceptions -fno-rtti'" and let us  
know what happens?

Eddie


On Jul 7, 2004, at 11:20 AM, Bob Keyes wrote:

>
> 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.
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click



More information about the click mailing list