Hi, I was using click 1.6 on CentOS5.3 (kernel-2.6.18-128.1.10. el5PAE) in my machine. Am planning to upgrade the it to CentOS 5.5 (kernel-2.6.18-194.el5).As 1.6 has lots of customizations, decided not to upgrade click version Compile Click 1.6 as linuxmodule agaist new kernel throwed following error. The same was working with CentOS5.3 kernel and I doubt any changes to resolve these kind of compilation errors may cause ripple effects.
Appreciate any help/advise. make -C /root/tmp/BUILD/kernel-2.6.18-cisco.nac.2/linux-2.6.18-194.26.1.el5 M=/home/sri/CVS_Files/nac/src/click/click-1.6.0/linuxmodule modules make: Entering directory `/root/tmp/BUILD/kernel-2.6.18-cisco.nac.2/linux-2.6.18-194.26.1.el5' CXX [M] macthrottle.o /home/sri/CVS_Files/nac/src/click/click-1.6.0/linuxmodule/../elements/perfigo/macthrottle.cc: In member function ‘int MacThrottle::l3CleanIpTable(uint32_t)’: /home/sri/CVS_Files/nac/src/click/click-1.6.0/linuxmodule/../elements/perfigo/macthrottle.cc:670: error: passing ‘const tBlkdMap’ as ‘this’ argument of ‘void HashMap<K, V>::clear() [with K = IPAddress, V = unsigned int]’ discards qualifiers /home/sri/CVS_Files/nac/src/click/click-1.6.0/linuxmodule/../include/click/bighashmap.cc: In member function ‘bool HashMap<K, V>::insert(const K&, const V&) [with K = const IPAddress, V = MacThrottle::IpEntry]’: /home/sri/CVS_Files/nac/src/click/click-1.6.0/linuxmodule/../elements/perfigo/macthrottle.cc:166: instantiated from here /home/sri/CVS_Files/nac/src/click/click-1.6.0/linuxmodule/../include/click/bighashmap.cc:236: error: reinterpret_cast from type ‘const IPAddress*’ to type ‘void*’ casts away constness make[1]: *** [/home/sri/CVS_Files/nac/src/click/click-1.6.0/linuxmodule/macthrottle.o] Error 1 make: *** [_module_/home/sri/CVS_Files/nac/src/click/click-1.6.0/linuxmodule] Error 2 make: Leaving directory `/root/tmp/BUILD/kernel-2.6.18-cisco.nac.2/linux-2.6.18-194.26.1.el5' [r...@localhost linuxmodule]# Best Regards, Sri _______________________________________________ click mailing list click@amsterdam.lcs.mit.edu https://amsterdam.lcs.mit.edu/mailman/listinfo/click