[Click] Error compiling Click linuxmodule

Sami Ruponen sami.ruponen at gmail.com
Mon May 24 02:47:03 EDT 2010


Hi all,

I got an error while compiling the newest Click from git.

The 2.6.24.7 kernel compiled ok with the patches. The Click was configured using

./configure --enable-etherswitch
--with-linux=/home/click/kernel/linux-2.6.24.7
--with-linux-map=/boot/System.map-2.6.24.7.click.210510

And after that run make. The userlevel make went fine but in
linuxmodule I got the following error

<snip>
 CXX [M] clickfs.o
/home/click/git/click/linuxmodule/clickfs.cc: In function ‘ssize_t
handler_read(file*, char*, size_t, loff_t*)’:
/home/click/git/click/linuxmodule/clickfs.cc:609: error: ‘const class
Handler’ has no member named ‘read_callback’
/home/click/git/click/linuxmodule/clickfs.cc: In function ‘int
handler_do_write(file*, void*)’:
/home/click/git/click/linuxmodule/clickfs.cc:726: error: no matching
function for call to ‘Handler::call_write(String&, Element*&, bool,
<unnamed>::ClickfsHandlerErrorHandler*) const’
/home/click/git/click/linuxmodule/../include/click/handler.hh:199:
note: candidates are: int Handler::call_write(const String&, Element*,
ErrorHandler*) const
/home/click/git/click/linuxmodule/clickfs.cc:729: error: no matching
function for call to ‘Handler::call_write(String&, Element*&, bool,
<unnamed>::ClickfsHandlerErrorHandler*) const’
/home/click/git/click/linuxmodule/../include/click/handler.hh:199:
note: candidates are: int Handler::call_write(const String&, Element*,
ErrorHandler*) const
make[3]: *** [/home/click/git/click/linuxmodule/clickfs.o] Error 1
make[2]: *** [_module_/home/click/git/click/linuxmodule] Error 2
make[2]: Leaving directory `/home/click/kernel/linux-2.6.24.7'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/click/git/click/linuxmodule'
make: *** [linuxmodule] Error 2

So is this a problem in my compiled kernel or is it related to
something else? In another installation I have earlier managed to
compile Click linuxmodule but at some point (months ago) after a git
pull I also got some errors in linuxmodule. I don't remember if they
were the same errors but I have since then used only the userlevel
Click. I would appreciate any help.

Best regards,

-- 
Sami Ruponen
sami.ruponen at gmail.com



More information about the click mailing list