ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ API Support » Error Running 64 bit compiled application

Post new topic  Reply to topic
 Error Running 64 bit compiled application « View previous topic :: View next topic » 
Author Message
andrewl68
PostPosted: Mon Jun 28, 2004 12:01 pm    Post subject: Error Running 64 bit compiled application Reply with quote

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
View user's profile Send private message
clindsey
PostPosted: Mon Jun 28, 2004 3:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
andrewl68
PostPosted: Tue Jun 29, 2004 3:50 am    Post subject: Reply with quote

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
View user's profile Send private message
clindsey
PostPosted: Tue Jun 29, 2004 5:20 am    Post subject: Reply with quote

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
View user's profile Send private message
kman
PostPosted: Wed Jun 30, 2004 10:50 pm    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » Error Running 64 bit compiled application
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.