472,783 Members | 942 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

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"environment, 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 7556
j

"zhouhaiming" <me*********@dbforums.com> wrote in message
news:35****************@dbforums.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"environment, 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**********@bellsouth.net>
wrote:
"zhouhaiming" <me*********@dbforums.com> wrote in message
news:35****************@dbforums.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.programming 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
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: ...
0
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:...
21
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...
8
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...
2
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...
8
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 ;...
17
by: JunDa.Huang | last post by:
I am a university student, How to study program language well ?
2
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...
3
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
by: abhiluvsall | last post by:
shut down program coded in c using interrupt
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.