473,586 Members | 2,839 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

I can't execute my program(coded by c language) on AIX5.2(ML2)


On our test machine I can compile my c source code on AIX5.1(ML4) by "-
q32" option and "OBJECT_MODE=32 " environment variable, and it can
correctly running. My operation system environment is: AIX5.1, ML4, 32
bit Kernel, IBM c5.1 compile and Informix7.31. I can't compile my c
source code on the same system by using "-q64" option and
"OBJECT_MODE=32 "environmen t, the c compiler raised the error:
/usr/informix/lib/esql/libifsql.so can't be compiled in 64bit.

On our production machine I can compile my c source code on AIX5.2(ML2)
by "-q32" option and "OBJECT_MODE=32 " environment variable, also I can
compile my c source code on AIX5.2(ML2) by "-q64" option and
"OBJECT_MODE=64 " environment variable. But both of them can't correctly
running. When I run the program both raised the error: Segmentation
fault(coredump) . My operation system environmen is: AIX5.2, ML2, 64 bit
Kernel, IBM c6.0 compile and Informix9.3.

I put my program I have compiled on our test machine into our production
machine, and I execute it as following:

/dccadm

our production machine raised the following errors:

exec():0509-036 Cannot load program ./dccadm because of the
following errors;

0509-150 Dependent module /usr/informix/lib/esql/libifsql.so
could not be loaded.

0509-103 The module has an invalid magic number.

I found there is the file /usr/informix/lib/esql/libifsql.so on our
production machine, but it larger than it on our test machine.

Which expert can tell me how I can resolve this problem?

Thanks in advance!!
--
Posted via http://dbforums.com
Nov 13 '05 #1
2 7625
j

"zhouhaimin g" <me*********@db forums.com> wrote in message
news:35******** ********@dbforu ms.com...

On our test machine I can compile my c source code on AIX5.1(ML4) by "-
q32" option and "OBJECT_MODE=32 " environment variable, and it can
correctly running. My operation system environment is: AIX5.1, ML4, 32
bit Kernel, IBM c5.1 compile and Informix7.31. I can't compile my c
source code on the same system by using "-q64" option and
"OBJECT_MODE=32 "environmen t, the c compiler raised the error:
/usr/informix/lib/esql/libifsql.so can't be compiled in 64bit.

On our production machine I can compile my c source code on AIX5.2(ML2)
by "-q32" option and "OBJECT_MODE=32 " environment variable, also I can
compile my c source code on AIX5.2(ML2) by "-q64" option and
"OBJECT_MODE=64 " environment variable. But both of them can't correctly
running. When I run the program both raised the error: Segmentation
fault(coredump) . My operation system environmen is: AIX5.2, ML2, 64 bit
Kernel, IBM c6.0 compile and Informix9.3.

The core file has a purpose. You can analyze it to find out the cause of the
problem.
I could try and analyze it for you if I were telepathic and telekinesis.


I put my program I have compiled on our test machine into our production
machine, and I execute it as following:

/dccadm

our production machine raised the following errors:

exec():0509-036 Cannot load program ./dccadm because of the
following errors;

0509-150 Dependent module /usr/informix/lib/esql/libifsql.so
could not be loaded.

0509-103 The module has an invalid magic number.

Maybe the file is corrupted and by ``invalid magic number'' it is unable to
identify the file type?


I found there is the file /usr/informix/lib/esql/libifsql.so on our
production machine, but it larger than it on our test machine.

Which expert can tell me how I can resolve this problem?
You need an aix expert. There is a newsgroup: comp.unix.aix
Which might turn out to be more helpful.

Thanks in advance!!
--
Posted via http://dbforums.com

Nov 13 '05 #2
On Wed, 5 Nov 2003 05:27:16 -0800, "j" <ja**********@b ellsouth.net>
wrote:
"zhouhaiming " <me*********@db forums.com> wrote in message
news:35******* *********@dbfor ums.com...

On our test machine I can compile my c source code on AIX5.1(ML4) by "-
q32" option and "OBJECT_MODE=32 " environment variable, and it can


Sorry, your question is off-topic here. We discuss only the language
itself, not particular implementations . You will find better help on
another newsgroup. Try comp.unix.progr amming or comp.unix.aix.

--
Al Balmer
Balmer Consulting
re************* ***********@att .net
Nov 13 '05 #3

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

Similar topics

2
2315
by: Isaac Gouy | last post by:
Seems like there's a problem with the word-frequency program written for "The Great Computer Language Shootout" - it's using 161,500KB which is far more than other programs: http://shootout.alioth.debian.org/benchmark.php?test=wordfreq&lang=php&id=0&sort=cpu What am I doing wrong?
0
550
by: zhouhaiming | last post by:
On our test machine I can compile my c source code on AIX5.1(ML4) by "- q32" option and "OBJECT_MODE=32" environment variable, and it can correctly running. My operation system environment is: AIX5.1, ML4, 32 bit Kernel, IBM c5.1 compile and Informix7.31. I can't compile my c source code on the same system by using "-q64" option and...
21
3291
by: Peter Bassett | last post by:
I have a .shtml file, that displays photos, in which I wish to pass some functionality off to an Include file for reusability purposes. Unfortunately, it's not working. Here is a portion of the .shtml file: ====== <!--#include file="/tmb8/functions.inc"--> <script type="text/javascript"> var title = "Noosa, Australia - October /...
8
2387
by: Dave | last post by:
This may be a simple question, but I'm new to .NET and not having much luck finding out the answer. I'm writing a Windows Service and want to develop a separate program that provides a user interface so the user can control the service. They are both being developed in Visual C# .NET. What is the best way to get them to talk to each other?...
2
329
by: JL | last post by:
I'm wondering .NET is good for writing shareware at the moment since it needs .net framework installed in client's computer. But current windows don't have pre-installed .net framework which is quite big to download from internet for many customers. I'm afraid that will turn some customers away from your software.
8
4025
by: Hermawih | last post by:
Hello , I want your opinion about this . In order to say it clearly , I think I have to describe it in long sentences . I could consider myself as Intermediate/Advance Access Developer ; Intermediate/Advanced Database designer . Because of the requirements , I must create Web Application . Access Pages is not suitable for that so I...
17
2233
by: JunDa.Huang | last post by:
I am a university student, How to study program language well ?
2
1242
by: sharjeel | last post by:
hi dear , i hav read many solutions on ur website they were very good but as i hav just started to work on access and i dont have any idea about access i m using access 2000 . firstly i would like to know how to open an application file of access in access.there is a program coded in access i want to view its coding.as it is working on network...
3
1381
by: kernel1983 | last post by:
In Function Program£¬Language can use like this: define a function: f = lambda x,y:x,y then we use f to define another function: f2 = f(1) the f2 should equal to: f2=lambda y:1,y
1
1883
by: abhiluvsall | last post by:
shut down program coded in c using interrupt
0
7911
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...
0
8200
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8338
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...
0
8215
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...
0
6610
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3836
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...
0
3864
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2345
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1179
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.