[asterisk-users] fax & spandsp

Klaus Darilion klaus.mailinglists at pernau.at
Wed Mar 17 05:50:40 CDT 2010



Am 16.03.2010 20:59, schrieb Edwin Lam:
> Steve Underwood wrote:
>> Crashes of this kind are not uncommon, but the causes are:
>>
>>       - Multiple versions of libtiff installed in different directories
>
> checked that. got only single version.
>>
>>       - Multiple versions of spandsp installed in different directories
>
> i've got this:
>
> Hydra:/usr/local/lib# ls -l libspandsp*
> -rw-r--r-- 1 root staff 2098532 2010-03-07 17:05 libspandsp.a
> -rwxr-xr-x 1 root staff     865 2010-03-07 17:05 libspandsp.la
> lrwxrwxrwx 1 root staff      19 2010-03-07 17:05 libspandsp.so ->  libspandsp.so.2.0.0
> lrwxrwxrwx 1 root staff      19 2006-08-02 08:35 libspandsp.so.0 ->  libspandsp.so.0.0.1
> -rwxr-xr-x 1 root staff  976884 2006-08-02 08:35 libspandsp.so.0.0.1
> lrwxrwxrwx 1 root staff      19 2010-03-07 17:05 libspandsp.so.2 ->  libspandsp.so.2.0.0
> -rwxr-xr-x 1 root staff 1597979 2010-03-07 17:05 libspandsp.so.2.0.0
>
> but whereis command only show 1 version.
>
> Hydra:/usr/local/lib# whereis libspandsp
> libspandsp: /usr/local/lib/libspandsp.a /usr/local/lib/libspandsp.la /usr/local/lib/libspandsp.so
>
> should i delete the .0.0.1 just in case?

Yes.

You can also check which version will be used:

"ldd /usr/lib/asterisk/modules/app_fax.so"

regards
klaus

>
>>
>>       - Asterisk was built against a spandsp installed in a directory
>> that is not in the library search path, while another version of spandsp
>> is in a directory that is in the library search path. so, at run time
>> the wrong library is picked up.
>>
>> Many machines will happily build and install a library to /usr/local,
>> and then successfully like applications against it, even though
>> /usr/local is not in the library search path. Dumb, but true.
>>
>> The installation information page for spandsp, at
>> http://www.soft-switch.org/installing-spandsp.html , warns about these
>> issues.
>
>



More information about the asterisk-users mailing list