[Click] Trouble adding my own element to linuxmodule

Eddie Kohler kohler at cs.ucla.edu
Thu Mar 4 14:27:00 EST 2010


Hi Lars,

The most likely problem is that you have an old click module still in the 
kernel.  click-install does not uninstall + reinstall the module by default. 
Try "click-install -u ...", which does uninstall + reinstall the module

Eddie

Lars Bro wrote:
> Hi,
> 
> I have written a few element classes that I need to run in an unpatched
> kernel.
> 
> It is for the time being not possible to write a "package",  so instead, I
> simply put a link to the directory where I keep my elements into
> "click/elements", then rerun configure, make clean and make.
> "click-buildtool findelem" correctly finds my elements , as they have for
> example:
> ...
> CLICK_ENDDECLS
> ELEMENT_REQUIRES(linuxmodule|userlevel)
> EXPORT_ELEMENT(WrTI)
> in the bottom of the .cc file
> 
> A simple script:
> Idle() -> WrTI() -> Idle;
> 
> works with the command
> $ click /tmp/t.click
> 
> but
> 
> # sudo click-install /tmp/t.click
> /tmp/t.click:1: unknown element class 'WrTI'
> Router could not be initialized!
> 
> Running "nm" on /usr/local/lib/click.ko shows a lot of symbols including
> WrTI,
> The .o file (wrti.o) appears in click/linuxmodule
> The element appears in elements.conf and elements.cc (beetlemonkey and
> click_export_elements)
> 
> What am I missing ??
> 
> yours,
> Lars Bro
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click


More information about the click mailing list