<div dir="ltr"><div><div><div><div><div><span name="Kevin Harwell" class="">Hello Kevin,<br></span></div><span name="Kevin Harwell" class="">thanks for your answer.<br><br></span></div><span name="Kevin Harwell" class="">I spent a little more time and I found myself a solution, but not an explaination.<br>
I found that my symbols stay in a part of spandsp library which normally is not linked by make utility by default.<br>It's still not clear to me, I found my symbols within libspandsp.so.2.0.0 which is the main SpanDSP file, but my symbols were not linked without libspandsp-sim.so.2.0.0<br>
I fixed all adding -lspandsp-sim in the SPANDSP_LIB of the makeopts file.<br></span></div><div><span name="Kevin Harwell" class="">Now I can begin to test my brand new app which let me receive a FSK message.<br></span></div>
<div><span name="Kevin Harwell" class="">If it is of some interest for someone, I will post the updates.<br><br></span></div><div class="gmail_extra"><span name="Kevin Harwell" class="">Regards.</span><br clear="all"><div>
<div dir="ltr">Alessandro Carminati<br><br></div></div>
<br><br><div class="gmail_quote">On Thu, Dec 26, 2013 at 7:02 PM, Kevin Harwell <span dir="ltr"><<a href="mailto:kharwell@digium.com" target="_blank">kharwell@digium.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On Tue, 2013-12-24 at 22:39 +0100, Alessandro Carminati wrote:<br>
> Hello everyone and merry xmas!<br>
><br>
> These winter vacation I decided to spend some time in coding.<br>
> I'm still far from any appreciable result, but I soon faced a problem<br>
> I can't even understand.<br>
> My goal is produce a dialplan application to encode and decode fsk<br>
> messages on audio channel.<br>
> I choosed to use SpanDSP, mainly because it is already there for FAX<br>
> operations.<br>
> After a day coding, I finally had something to test.<br>
> The build of the application ends without problem, but after Asterisk<br>
> doesn't load the module complaining that "Loader.c:423<br>
> load_dynamic_module: Error loading module<br>
> 'app_fsk.so': /usr/lib/asterisk/modules/app_fsk.so: undefined symbol:<br>
> preset_fsk_specs".<br>
> Can't understand. SpanDSP library has been loaded, and<br>
> res_fax_spandsp.so is also there as cli command confirm.<br>
> Looking at symbols exported within the library, nm confirms "000b48c0<br>
> D preset_fsk_specs" is there too.<br>
> Can somebody hints me where to look to solve this module load issue?<br>
<br>
</div></div>It could have something to do with module load order. If your module,<br>
app_fsk, depends on another module and that module (in this case<br>
res_fax_spandsp) loads after your's then the symbols your module is<br>
looking for won't be there...yet. Thus your module won't load, but<br>
res_fax_spandsp will when it comes time for it to load later.<br>
<br>
Make sure any dependent modules load before your module. You can<br>
preload them in modules.conf or in your code in the module<br>
info/definition section make sure your module's load priority is higher<br>
than the dependency's (see load_pri in struct ast_module_info in<br>
module.h).<br>
<br>
<br>
> Regards<br>
> Alessandro Carminati<br>
<br>
<br>
Hope that helps,<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Kevin Harwell<br>
Digium, Inc. | Software Developer<br>
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA<br>
Check us out at: <a href="http://digium.com" target="_blank">http://digium.com</a> & <a href="http://asterisk.org" target="_blank">http://asterisk.org</a><br>
<br>
<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-dev mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br>
</font></span></blockquote></div><br></div></div></div></div>