Re: IPv6 compilation error with NSClick

Eddie Kohler <[email protected]>
Newsgroups gmane.network.routing.click
Organization Harvard University
Message-ID <[email protected]>
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
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.