[Click] Hashcode and nsclick

Eddie Kohler kohler at cs.ucla.edu
Thu Sep 6 13:48:08 EDT 2007


Hi Nicolas,

Whoops!  An update to the hashcode system wasn't complete for nsclick. 
I've checked in a fix.

Eddie


Nicolas Letor wrote:
> Hello,
> 
> I updated to the latest version of click and discovered the following build
> error for nsclick.
> 
> make[1]: Leaving directory `/tmp/build/click2/userlevel'
> make[1]: Entering directory `/tmp/build/click2/ns'
>   CXX ../lib/templatei.cc
> ../include/click/ipflowid.hh: In member function 'size_t
> Click::IPFlowID::hashcode() const':
> ../include/click/ipflowid.hh:79: error: '::hashcode' has not been declared
> ../include/click/ipflowid.hh:80: error: '::hashcode' has not been declared
> make[1]: *** [templatei.o] Error 1
> make[1]: Leaving directory `/tmp/build/click2/ns'
> make: *** [ns] Error 2
> 
> The compiler complains that it cannot find a hashcode function for an
> IPAddress. So I fixed it by calling the hashcode directly as a method on the
> IPAddress.
> However I am not sure if this fix is right, as the code (without the fix)
> compiles cleanly for the userlevel case. Is there something in the userlevel
> environment that is missing in the nsclick environment, causing this build
> failure?
> 
> Nico
> 
> 
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click


More information about the click mailing list