Hi All<br><br>I've compiled kamailio 3.2.0 with snmpstats module.<br>When trying to start the module I received the following message:<br><br> 0(28197) DEBUG: <core> [sr_module.c:515]: load_module: trying to load </usr/lib/kamailio/modules_k/<div id=":77">
snmpstats.so><br>
0(28197) ERROR: <core> [sr_module.c:523]: ERROR: load_module: could not open module </usr/lib/kamailio/modules_k/snmpstats.so>: /usr/lib/libnetsnmpagent.so.10: undefined symbol: boot_DynaLoader<br><br>I run it on CentOS 5.7<br>
<br>After digging Internet, I found the solution for the problem. I had
to modify Makefile in snmpstats module's directory and recompile it. <br>I had to change BUILDAGENTLIBS env param<br><br>before change:<br><br> BUILDAGENTLIBS =-L$(LOCALBASE)/lib -lnetsnmpmibs -lnetsnmpagent \<br>
-lnetsnmphelpers -lnetsnmp <br><br>after change:<br><br> BUILDAGENTLIBS =-L$(LOCALBASE)/lib -lnetsnmpmibs -lnetsnmpagent \<br> -lnetsnmphelpers -lnetsnmp \<br> -Wl,-E -Wl,-rpath,/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE \<br>
-L/usr/local/lib /usr/lib/perl5/5.8.8/i386-linux-thread-multi/auto/DynaLoader/DynaLoader.a \<br> -L/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE \<br> -lperl -lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc \<br>
-lwrap \<br> -lsensors \<br> -lrpmdb -lrpm<br><br>After that I successfully started snmpstats module.<br><br>I
don't know why I didn't have compilation errors before adding this
linking info, but got problem when trying to run compiled module. Can
you explain it ?<br>
Do you know another way to solve the problem ? <br><br>Regards Adam</div>