wrote:
> I am try to load a .so file through asterisk but get the following problem:
> Mar 23 17:38:19 WARNING[423]: loader.c:325 __load_resource: ld.so.1:
> asterisk: fatal: /opt/asterisk/lib/modules/SPARC64codec_g729a.so: wrong
> ELF class: ELFCLASS64
This looks like your application is a 32 bit binary, but it is trying to
use a 64 bit shared object.
Run 'file' on both your application and the .so file.
The app and any shared objects it uses must be of the same bitness.
> I am on a Ultra80 Solaris 10 machine in 64-bit mode.
> I compiled asterisk using:
> Reading specs from /usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.6/specs
> Configured with: ../configure --with-as=/usr/ccs/bin/as
> --with-ld=/usr/ccs/bin/ld --enable-shared --enable-languages=c,c++,f77
> Thread model: posix
> gcc version 3.4.6
> But the .so file is precomplied and downloaded.
If there's only one .so and it's a 64 bit object, I'd assume you would
need to tell the compiler to create a 64 bit executable.
--
Darren Dunham ddunham@taos.com
Senior Technical Consultant TAOS http://www.taos.com/
Got some Dr Pepper? San Francisco, CA bay area
< This line left intentionally blank to confuse you. >