[Click] very strange compilation error

Harald Schiöberg harald at net.t-labs.tu-berlin.de
Tue Nov 10 04:46:49 EST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Eddie Kohler wrote:
> Hi Harald,
> 
> What you're missing is "friend class Master" in class Timer.  So the
> compiler should totally allow this.  It's very odd if it doesn't.

indeed it is. probably some strange bug of gcc3.4.6 that openwrt uses to
build for the ancient wrt54gl.

interesting though: this is the only breakage in all of click, making
_schedpos1 public allows a clean build.
don't fix upstream, we'll work around in this specific configuration.

> There is a miniscule chance that adding "class Master;" to the top of
> the timer.hh header, after the other "class" mentions, would help.

nope, doesn't help.

thanks for your effort,

	harald

side note: that hardware starts to drive me crazy, completely odd
behavior of userlevel click in FromDevice(eth0.1, CAPTURE LINUX) in
conjunction with the broken proprietary drivers for the internal
broadcom vlan switch. need get new hardware even for teaching ;-)


- --
Harald Schiöberg
Technische Universität Berlin | T-Laboratories | FG INET
www: http://www.net.t-labs.tu-berlin.de
Phone: +49-(0)30-8353-58476 | Fax: +49-(0)391 534 783 47
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFK+TaIy8wrZ9OvkU0RAj0WAJ9BZFORTP6zOyKCfPu5oNdwR3SuIgCdGmLD
Im3ZgciCxi8RMWltiFSSS54=
=+YTU
-----END PGP SIGNATURE-----



More information about the click mailing list