473,802 Members | 2,031 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_g7 29a.so: wrong
ELF class: ELFCLASS64
Mar 23 17:38:19 WARNING[423]: loader.c:554 load_modules: Loading module
SPARC64codec_g7 29a.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 2154
Changing followups to comp.unix.solar is.

In comp.unix.solar is Mikail Dellovich <fo*@foo.comwro te:
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_g7 29a.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.co m
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.comwri tes:
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_g7 29a.so:
wrong ELF class: ELFCLASS64
Mar 23 17:38:19 WARNING[423]: loader.c:554 load_modules: Loading
module SPARC64codec_g7 29a.so failed!
I am on a Ultra80 Solaris 10 machine in 64-bit mode.
[...]

I was about to tell you that comp.unix.solar is 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.solar is.

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

--
Keith Thompson (The_Other_Keit h) 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
1569
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 varies...) Now my problem is:
3
1457
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: argument 1 must be string without null bytes, not str After tearing my hair out I figured out that it was because there was full black (0) in my image which was screwing up the NULL string terminator.
14
10465
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 (class ad functions defined) but without having any of the content executed. For example: ---------------------- def test(var): print var
1
2641
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 none of them solved the problem. My last hope is this last thread before been forced to change my project language. This is the output that I got:
5
3096
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 code available (I am running in Debug mode of course). What could be the cause of this? Can someone shed some light on this matter? Kind regards,
0
1893
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 attempt to load a module at runtime and then request an object of that type. Essentially, my code works as follows: I have a registry class which has a method to register a class. It
6
1321
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
1189
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 always follow the same algorithm, let's say: - read a mesh - transform the mesh (let's say, refine)
2
1158
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 module. my problem goes like this, ex.h ----------- #define NIL 0 /* Indicates ptr is nil */ #define NO_CODER 0 /* Means do not use an arithmetic
0
9699
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9562
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10304
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10285
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10063
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7598
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6838
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5494
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3792
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.