[Click] Fwd: click compilation issues

Beyers Cronje bcronje at gmail.com
Thu Jan 6 02:40:56 EST 2011


Hi Sri,

You wont get much help from the list if you are using Click 1.6 which is
more than 3 years old. Your best bet for assistance will be to use latest
GIT Click source. Also, Click kernel mode is really only "supported" on
vanilla kernel via the patches provided.

Beyers

On Thu, Jan 6, 2011 at 9:28 AM, sri <bskmohan at gmail.com> wrote:

> 2nd try
>
> ---------- Forwarded message ----------
> From: sri <bskmohan at gmail.com>
> Date: Wed, Jan 5, 2011 at 9:44 AM
> Subject: click compilation issues
> To: click at amsterdam.lcs.mit.edu
>
>
>
> 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'
> [root at localhost linuxmodule]#
>
>
> Best Regards,
> Sri
>
>
>
>
> --
> --
>  Krishna Mohan B
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
>


More information about the click mailing list