473,409 Members | 1,935 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,409 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 7597
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
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
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
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...
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
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...
0
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...
0
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...

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.