Re: [click]Problem compiling pathless click with own elements

Cliff Frey <[email protected]>
Newsgroups gmane.network.routing.click
Message-ID <CAFtVOqmS+=yW0yYgdq=-NfZTT3TdqHutoa1wY61k4z9S1b1G0A@mail.gmail.com>
I suspect that you have a local static variable in one of your elements...
 something like

void MyElt::myfunc() {
  static String foo = "foo";
  ...
}

and I believe that your compiler is adding guards around the initialization
of that variable (in case multiple threads were to try to do it at the same
time).

In general, using static variables of non-primitive types can be risky...
perhaps you could rework your code, or email the relevant lines and perhaps
I could suggest something better (some elements use a static_initialize()
function for some initialization).

Cliff

On Sat, Oct 8, 2011 at 8:31 PM, heyeast <[email protected]> wrote:

>
> Hello everyone.
>
> Does anyone have a suggestion of what is wrong or does someone else have
> same symptoms. I have successfully configured and compiled pachless click
> for Ubuntu10.10 kernel 2.6.35-22-generic(click-2.0.1). The problem is that
> after I added my own elements into click with "./configure --enable-local".
>
> The "click-install conf/mytest.click" show error:
>
> insmod: error inserting '/usr/local/lib/click.ko': -1 Unknown symbol in
> module
> click-install: '/sbin/insmod /usr/local/lib/click.ko' failed
>
> dmesg is:
>
> [ 1535.331748] click: Unknown symbol __cxa_guard_release (err 0)
> [ 1535.492530] click: Unknown symbol __cxa_guard_acquire (err 0)
>
> The test conf is very simple:
>
> FromDevice(ath0) ->Print()->ToHost;
>
> But if I compiled without any my own elements. Everything looks like right.
>
>
> 2011-10-09
>
>
>
> heyeast
> _______________________________________________
> click mailing list
> [email protected]
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
>
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.