codec_g729.so: cannot open shared object file: No such file or directory (ARM)

717 views
Skip to first unread message

sigi...@gmail.com

unread,
Sep 23, 2013, 2:06:15 AM9/23/13
to asteri...@googlegroups.com
Hi, I compiled the source obtained from https://bitbucket.org/arkadi/asterisk-g72x using the arm-bcm2708-linux-gnueabi build tools for cross-compiling, the target host being a Raspberry Pi unit.

I get the following output when I try to load the g729 codec in Asterisk:
*CLI> module load codec_g729.so
[Sep 22 23:56:29] WARNING[2726]: loader.c:398 load_dynamic_module: Error loading module 'codec_g729.so': /usr/lib/asterisk/modules/codec_g729.so: cannot open shared object file: No such file or directory
[Sep 22 23:56:29] WARNING[2726]: loader.c:850 load_resource: Module 'codec_g729.so' could not be loaded.
Unable to load module codec_g729.so
Command 'module load codec_g729.so' failed.

# ldd /usr/lib/asterisk/modules/codec_g729.so outputs:
        not a dynamic executable

Though, the default codecs packaged with Asterisk output:
# ldd /usr/lib/asterisk/modules/codec_g722.so
        /usr/lib/arm-linux-gnueabihf/libcofi_rpi.so (0xb6f67000)
        libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0xb6f3c000)
        libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0xb6e0d000)
        /lib/ld-linux-armhf.so.3 (0xb6f80000)


# cat /proc/cpuinfo
Processor       : ARMv6-compatible processor rev 7 (v6l)
BogoMIPS        : 697.95
Features        : swp half thumb fastmult vfp edsp java tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xb76
CPU revision    : 7

Hardware        : BCM2708
Revision        : 000f

An strace output is attached. Let me know if there's anything else that's needed to diagnose the cause of the problem.

Any help is appreciated. Thank you.
trace.log.gz

sigi...@gmail.com

unread,
Sep 23, 2013, 11:19:14 AM9/23/13
to asteri...@googlegroups.com, sigi...@gmail.com
Alright, the problem appeared to be related to the fact that I was using the arm-bcm2708-linux-gnueabi toolchain.
Using the linaro-arm-linux-gnueabihf-raspbian toolchain instead seemed to do the trick.
Reply all
Reply to author
Forward
0 new messages