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
diff --git a/config.h.in b/config.h.in index fc769d9..51a0491 100644 --- a/config.h.in +++ b/config.h.in @@ -132,7 +132,7 @@ #endif /* Define macro for deprecated functions. */ -#if __GNUC__ < 3 || (__GNUC__ == 3 && __GNUC_MINOR__ == 0) +#if __GNUC__ < 3 || (__GNUC__ == 3 && __GNUC_MINOR__ < 4) # define CLICK_DEPRECATED /* nothing */ #else # define CLICK_DEPRECATED __attribute__((deprecated))
_______________________________________________ click mailing list [email protected] https://amsterdam.lcs.mit.edu/mailman/listinfo/click
