[Click] user level click compile problem with click-1.7.0rc1 on linux 2.4

Robert Sombrutzki sombrutz at informatik.hu-berlin.de
Wed Jun 3 13:40:54 EDT 2009


Hi,
can you please check your compiler-version (gcc -v). Redhat 9.0 uses 3.2.2, i 
think. In click-1.5, the macro CLICK_DEPRECATED is define as empty string for 
that gcc-version. In click-1.7.0 it is defined 
as "__attribute__((deprecated))" for gcc-version newer than 3.0 .
Looks like this is wrong in config.h.in. The Definition in click-1.5 seems to 
be right.
The patch (attachment) should fix it. It changes the config.h.in. Please, 
apply the patch and run configure again and check whether it works.

Best regards,
Robert

 
> hi,all,
>
>     I am compiling user level click on linux,my linux kernel version is
> :2.4.20-8smp(redhat 9.0),when i compile click-1.7.0rc1(just "./configure 
> and  make"),it complains:
>
> "make[1]: Entering directory `/usr/click-1.7.0rc1/userlevel'
> echo "userlevel  app aqm ethernet icmp ip standard tcpudp threads" |
> ../click-buildtool findelem -r userlevel -p .. -X ./elements.exclude >
> elements.conf ../click-buildtool elem2make -x "addressinfo.o
> alignmentinfo.o errorelement.o portinfo.o scheduleinfo.o" < elements.conf >
> elements.mk make[1]: Leaving directory `/usr/click-1.7.0rc1/userlevel'
> make[1]: Entering directory `/usr/click-1.7.0rc1/userlevel'
>   CXX ../lib/string.cc
>   CXX ../lib/straccum.cc
>   CXX ../lib/nameinfo.cc
> In file included from ../include/click/element.hh:7,
>                  from ../include/click/router.hh:4,
>                  from ../lib/nameinfo.cc:23:
> ../include/click/packet.hh:587: semicolon missing after enum declaration
> ../include/click/packet.hh:587: warning: `deprecated' attribute ignored
> make[1]: *** [nameinfo.o] Error 1
> make[1]: Leaving directory `/usr/click-1.7.0rc1/userlevel'
> make: *** [userlevel] Error 2
>
> "
>
> I have tried click-1.6.0 but end with the same error,however,click-1.5.0
> compiles ok on 2.4.20.
>
> But on kernel 2.6(Fedora),all three versions compiles ok,is there kernel
> version dependence of click?
>
> Yours,Fenggen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: deprecated_gcc-3.2.patch
Type: text/x-diff
Size: 403 bytes
Desc: not available
Url : http://amsterdam.lcs.mit.edu/pipermail/click/attachments/20090603/28133695/attachment.patch 


More information about the click mailing list