473,396 Members | 1,773 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Module loading problem

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
Mar 23 17:38:19 WARNING[423]: loader.c:554 load_modules: Loading module
SPARC64codec_g729a.so failed!
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.

How may I resolve this problem?

Thanks
Mar 23 '07 #1
3 2136
Changing followups to comp.unix.solaris.

In comp.unix.solaris Mikail Dellovich <fo*@foo.comwrote:
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 dd*****@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. >
Mar 23 '07 #2
On Fri, 23 Mar 2007 18:08:24 -0400, Mikail Dellovich <fo*@foo.com>
wrote:
>I am try to load a .so file through asterisk but get the following problem:
This is far off topic in comp.lang.c.

--
Al Balmer
Sun City, AZ
Mar 23 '07 #3
Mikail Dellovich <fo*@foo.comwrites:
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
Mar 23 17:38:19 WARNING[423]: loader.c:554 load_modules: Loading
module SPARC64codec_g729a.so failed!
I am on a Ultra80 Solaris 10 machine in 64-bit mode.
[...]

I was about to tell you that comp.unix.solaris would be a better place
to ask this question; then I noticed that it's cross-posted to both
comp.lang.c and comp.unix.solaris.

Since you don't appear to have a C language issue, I've redirected
followups to just comp.unix.solaris, and I encourage others to
restrict their followups to that group.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Mar 23 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Markus Franz | last post by:
Hi. Some URLs are passed to a python script as command line options like the following command ../script.py http://www.websites1.com http://www.website2.com (The number of passed URLs...
3
by: Jim Bob | last post by:
Hi, I've got a problem with loading images using the Image Module. When I load images and then try to pass them to my C++ module using tostring() I get the following error: TypeError:...
14
by: Jay O'Connor | last post by:
Is there a good way to import python files without executing their content? I'm trying some relfection based stuff and I want to be able to import a module dynamically to check it's contents...
1
by: py.adriano | last post by:
Hi folks... I'm getting a weird problem while loading psp module from mod_python. It only happen somethimes, and I just can't figure out why. I saw other threads in other lists over the net, but...
5
by: TT (Tom Tempelaere) | last post by:
Hi, Once in a while my application throws an NullReferenceException at startup, however it appears to be occurring in an unknown module. If I debug it and ask to 'break', then there is no source...
0
by: John Allman | last post by:
Hi all, I'm trying to create a setup which allows a program to request an object using strings and get an object of that type. It appears to be mostly working but i have difficulties if i...
6
by: Theo v. Werkhoven | last post by:
Goodday, Something strange going on here. A piece of code I wrote bombs out in one of de directories under $HOME, but not in others. Here's a snipped: #v+ def bin2asc(c): s=''
5
by: Mail.To.Nathaniel | last post by:
Hello :) I am new to python and I don't have much expirience in object-oriented technologies neither. The problem is the following: I have to create a simple python template script that will...
2
by: Anish Chapagain | last post by:
Hi, I have Structure in C, program and the structure is being used with various function inside C coding but am getting undefined referenced to global method and few of them too uses the sturct...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.