Author |
Message
|
andrewl68 |
Posted: Mon Jun 28, 2004 12:01 pm Post subject: Error Running 64 bit compiled application |
|
|
Novice
Joined: 23 Sep 2003 Posts: 14
|
AIX Version 5.1
MQSeries Version 5.3
I have compiled a 64 bit application but it will not link to the run time library when I start it. Here is the error I am getting
exec(): 0509-036 Cannot load program myprog because of the following errors:
0509-150 Dependent module /usr/lib/libmqic_r.a(mqic_r.o) could not be loaded.
0509-124 The program is a discontinued 64-bit object file.
It appears the when the application gets the object file it is getting the 32 bit version from the link in /usr/lib.
Any help would be appreciated. |
|
Back to top |
|
 |
clindsey |
Posted: Mon Jun 28, 2004 3:49 pm Post subject: |
|
|
Knight
Joined: 12 Jul 2002 Posts: 586 Location: Dallas, Tx
|
At the current time, you can only compile with the 64 bit MQ 5.2 client libraries. The 64 bit client libs are in supportpac MACS.
Charlie |
|
Back to top |
|
 |
andrewl68 |
Posted: Tue Jun 29, 2004 3:50 am Post subject: |
|
|
Novice
Joined: 23 Sep 2003 Posts: 14
|
I have downloaded the support pac and the code compiles without a problem. It just will not run because I cant link with the correct library at runtime. |
|
Back to top |
|
 |
clindsey |
Posted: Tue Jun 29, 2004 5:20 am Post subject: |
|
|
Knight
Joined: 12 Jul 2002 Posts: 586 Location: Dallas, Tx
|
In the first post your environment says MQ 5.3. Your 64 bit client must be a 5.2 client. You can download the 5.2 client as a supportpac.
I don't have an environment to test this so I can only take a guess. It sounds like you are linking to the wrong libs at compile time. As I recall, when installing MACS, the links in \usr\lib get updated with links to the 64 bit MQ client libs. You may have to manually correct the links.
Charlie |
|
Back to top |
|
 |
kman |
Posted: Wed Jun 30, 2004 10:50 pm Post subject: |
|
|
Partisan
Joined: 21 Jan 2003 Posts: 309 Location: Kuala Lumpur, Malaysia
|
I think the library change to something like /inc64 or /lib64. I can't remember which one.
however, I am not so sure you need to install 5.2 client code. Running server 5.3 with MACS is fine enough. MACS give you 5.2 client in 64.
But then again, I don't have the environment to test this.
Also, you can't mix running 32 and 64 together if they have any linkage whatsoever in that system. This includes having an exit in 32. |
|
Back to top |
|
 |
|