[Click] [click]Problem compiling pathless click with own elements

heyeast zhd5408 at gmail.com
Sun Oct 9 02:57:51 EDT 2011


Yes, I used some static variables and functions. It works for me when I fixed them. 

Thanks for your help.

2011-10-09 



heyeast 



发件人: Cliff Frey 
发送时间: 2011-10-09  14:38:57 
收件人: heyeast 
抄送: click 
主题: Re: [Click] [click]Problem compiling pathless click with own elements 
 
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 <zhd5408 at gmail.com> 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
click at amsterdam.lcs.mit.edu
https://amsterdam.lcs.mit.edu/mailman/listinfo/click


More information about the click mailing list