<div dir="ltr">Hello,<div><br></div><div>Thanks for the assistance. Adding the absolute location of the library as LIBS=/usr/lib/x86_64-linux-gnu/libm.so worked.</div><div><br></div><div>Thanks,</div><div>Shouvanik.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 25, 2015 at 1:06 PM, Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
look at the Makefile for other modules depending on external
libraries, such as jansson, uuid, db_mysql, app_lua, ...<br>
<br>
Cheers,<br>
Daniel<div><div class="h5"><br>
<br>
<div>On 25/06/15 09:08, Shouvanik
Chakrabarti wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hello,
<div>Thanks for your reply. I realize that libm needs to
linked. </div>
<div>The errors are of the form:</div>
<div>symbol pow 0 is undefined.</div>
<div>An nm trace of the object reveals that all the math
functions are indeed undefined.</div>
<div>I was curious as to how I could make sure that lm would be
linked, since I am using the master Makefile. Adding LIB="-lm"
or LIBS=-lm to the module Makefile hasn't worked. </div>
<div><br>
</div>
<div>Thanks,</div>
<div>Shouvanik.</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Wed, Jun 24, 2015 at 6:50 PM,
Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"> Hello,<br>
<br>
what are the errors you get? Maybe it is more that libm
that needs to be linked.<br>
<br>
Cheers,<br>
Daniel
<div>
<div><br>
<br>
<div>On 24/06/15 10:46, Shouvanik Chakrabarti wrote:<br>
</div>
</div>
</div>
<blockquote type="cite">
<div>
<div>
<div dir="ltr">Hello,
<div> I have developed a Kamailio module to
handle group messaging and am using certain
functions from the libm.so library. Compilation
happens fine, but Kamailio subsequently fails to
start because the math.h symbols are
unlinked/undefined. Could someone please suggest
a workaround for this.</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Shouvanik.</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div>
</div>
<pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><span><font color="#888888">
</font></span></pre>
<span><font color="#888888"> </font></span></blockquote>
<span><font color="#888888"> <br>
<pre cols="72">--
Daniel-Constantin Mierla
<a href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a>
Book: SIP Routing With Kamailio - <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a></pre>
</font></span></div>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users
mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
<pre cols="72">--
Daniel-Constantin Mierla
<a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a>
Book: SIP Routing With Kamailio - <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a></pre>
</div></div></div>
</blockquote></div><br></div>