[Click] Problem compiling a new element

Ramanathan Palaniappan ramwisc at gmail.com
Wed Nov 16 12:56:41 EST 2005


Hi,

Thanks for the response. I did "make install" in the click directory and not
in the linuxmodule directory. Now everything seems to work fine.

Thanks,
Ramanathan

On 11/15/05, Eddie Kohler <kohler at cs.ucla.edu> wrote:
>
> Did you "make install" in the linuxmodule directory? Did you make
> sure to reinstall the kernel driver with "click-install -u FILE"? Is
> your element listed in /click/classes?
>
> Eddie
>
>
> On Nov 15, 2005, at 12:37 PM, Ramanathan Palaniappan wrote:
>
> > Hi,
> >
> > I tried with the user level driver and everything works fine, but
> > the kernel
> > level driver is unable to identify my element class.
> >
> > Thanks,
> > Ramanathan
> >
> > On 11/15/05, Johan Theunis <johan.theunis at esat.kuleuven.be> wrote:
> >>
> >> Ramanathan Palaniappan wrote:
> >>> Hi,
> >>>
> >>> I have added a simple element to Click and I have compiled it
> >> successfully.
> >>> But when I use the element in my script, Click reports "unknown
> >>> element
> >>> class". I have attached the *.cc and *.hh files for reference.
> >>> The new
> >>> element was placed under "elements/local" and local was enabled
> >>> during
> >>> configuration.
> >>>
> >>> Any suggestions would be greatly appreciated.
> >>>
> >>
> >>
> >> Hi,
> >>
> >> If I look at your .hh file, I see the line:
> >>
> >> "const char *class_name() const { return "Replicate"; }"
> >>
> >> Replace this line with
> >>
> >> "const char *class_name() const { return "ReplicateElement"; }"
> >> and try again.
> >>
> >> If this doesn't work, could you send us your elements.conf file as
> >> well?
> >>
> >> Hope this helps
> >>
> >> Johan
> >>
> >> --
> >> Johan Theunis
> >> Dept. ESAT-Telemic
> >> K.U.Leuven, Belgium
> >> Tel. +32 16 32 18 22
> >>
> >> Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm
> >>
> >>
> > _______________________________________________
> > click mailing list
> > click at amsterdam.lcs.mit.edu
> > https://amsterdam.lcs.mit.edu/mailman/listinfo/click
> >
>
>


More information about the click mailing list