[SR-Users] linking math.h while compiling a module
Daniel-Constantin Mierla
miconda at gmail.com
Thu Jun 25 09:36:28 CEST 2015
Hello,
look at the Makefile for other modules depending on external libraries,
such as jansson, uuid, db_mysql, app_lua, ...
Cheers,
Daniel
On 25/06/15 09:08, Shouvanik Chakrabarti wrote:
> Hello,
> Thanks for your reply. I realize that libm needs to linked.
> The errors are of the form:
> symbol pow 0 is undefined.
> An nm trace of the object reveals that all the math functions are
> indeed undefined.
> 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.
>
> Thanks,
> Shouvanik.
>
> On Wed, Jun 24, 2015 at 6:50 PM, Daniel-Constantin Mierla
> <miconda at gmail.com <mailto:miconda at gmail.com>> wrote:
>
> Hello,
>
> what are the errors you get? Maybe it is more that libm that needs
> to be linked.
>
> Cheers,
> Daniel
>
>
> On 24/06/15 10:46, Shouvanik Chakrabarti wrote:
>> Hello,
>> 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.
>>
>> Thanks,
>> Shouvanik.
>>
>>
>> _______________________________________________
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>> sr-users at lists.sip-router.org <mailto:sr-users at lists.sip-router.org>
>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
> --
> Daniel-Constantin Mierla
> http://twitter.com/#!/miconda <http://twitter.com/#%21/miconda> - http://www.linkedin.com/in/miconda
> Book: SIP Routing With Kamailio - http://www.asipto.com
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing
> list
> sr-users at lists.sip-router.org <mailto:sr-users at lists.sip-router.org>
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Book: SIP Routing With Kamailio - http://www.asipto.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150625/be3fd4aa/attachment.html>
More information about the sr-users
mailing list