[Click] IPv6 compilation error with NSClick

Eddie Kohler ekohler at gmail.com
Wed Jan 25 15:35:35 EST 2012


Hi Wim,

This is a strange and unfortunate error. It arises because 
click_in6_addr is declared in the global namespace, for some reason, 
rather than in the "Click::" namespace (CLICK_DECLS/CLICK_ENDDECLS); but 
"confparse.hh" mistakenly declared a version of this symbol in the 
"Click::" namespace. That was the symbol that the compiler thought was 
undefined.

Commit 58af73b fixes this problem.

Thanks
E


On 1/16/12 5:24 AM, Wim Vandenberghe wrote:
> Hi everyone,
>
> i have difficulties compiling the latest click git sources with IPv6
> support. When i perform configure with the options --enable-nsclick
> --enable-ip6, the compilation halts at the file ipaddress.cc. The given
> error is:
>
> In file included from ../include/click/standard/addressinfo.hh:7,
> from ../lib/ipaddress.cc:27:
> ../include/click/ip6address.hh:115: error: field ‘_addr’ has incomplete type
>
>
> I've been looking at the code, and do not understand why the compiler
> gives this error. _addr is defined in line 115 as a click_in6_addr. This
> specific struct is defined in the file ip6.h, which is included in the
> beginning of the ip6address.hh file. So i would expect everything to
> compile fine. In fact, when i configure with --enable-userlevel instead
> of --enable-nsclick, it indeed compiles without errors.
>
>
> Any suggestions to solve this problem would be highly appreciated.
>
>
> Best regards,
>
> Wim
>


More information about the click mailing list