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 » General IBM MQ Support » Cannot find -lmqm

Post new topic  Reply to topic
 Cannot find -lmqm « View previous topic :: View next topic » 
Author Message
mark_r
PostPosted: Wed Oct 05, 2011 2:10 am    Post subject: Cannot find -lmqm Reply with quote

Newbie

Joined: 06 Oct 2009
Posts: 9

I've installed Websphere MQ 7.0.0.0 on 2 SLES 11 boxes (one 32-bit, one 64-bit) and get the following output when attempting to compile code that requires MQ components:

/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib/libmqm.so when searching for -lmqm
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: cannot find -lmqm

MQ was originally setup on another much older box by someone who didn't document what they did, I'm now in the process of trying to get it to work on a new machine but am new to MQ and don't know where to start with this problem. Any advice would be appreciated.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Oct 05, 2011 2:28 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

It would help to see your full build command.

You should also review
http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/topic/com.ibm.mq.csqzal.doc/fg16420_.htm
and
http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/topic/com.ibm.mq.csqzal.doc/fg16430_.htm
Back to top
View user's profile Send private message
mark_r
PostPosted: Wed Oct 05, 2011 2:38 am    Post subject: Reply with quote

Newbie

Joined: 06 Oct 2009
Posts: 9

thanks for the quick reply mqjeff, unfortunately I've just got to get it working with the existing command and don't know enough to be changing it anyway. The full output is:

source .; cd /home/<username>/<product name>/Latest_Sources/<thing to be compiled>; make -f LINUX_<thing to be compiled>.mak COMPONENT_NAME=<thing to be compiled> SOURCE_DIR=. EXE_DIR=/home/<username>/<product name>/Latest_Sources/Release FLAGS="-D__LINUX -Wno-deprecated -Wno-write-strings -DNDEBUG" COMPILER="/usr/bin/c++ " ZLIB="-lz" clean
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: skipping incompatible ../../../../<username>/3rdPartyLibraries/WebSphereMQ/Linux/lib/libmqm.so when searching for -lmqm
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib/libmqm.so when searching for -lmqm
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: cannot find -lmqm

What would cause the libmqm.so file to be recognised as incompatible?
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Oct 05, 2011 2:48 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

At a minimum, I would try adding "-M64" to FLAGS.

Otherwise, you're going to have to review the contents of the make file ("LINUX_<thing to be compiled>.mak") with someone who knows how to do C development.
Back to top
View user's profile Send private message
Philip Morten
PostPosted: Wed Oct 05, 2011 3:17 am    Post subject: Reply with quote

Master

Joined: 07 Mar 2002
Posts: 230
Location: Hursley Park

mark_r wrote:

What would cause the libmqm.so file to be recognised as incompatible?

Mismatched addressing mode? 64-bit executable with 32-bit libraries or vice-versa.

It does not look as if the WebSphere MQ libraries are in the normal location, they should be in /opt/mqm/lib[64].
_________________
Philip Morten

The postings on this site are my own and do not necessarily represent IBM's positions, strategies or opinions.
Back to top
View user's profile Send private message
mark_r
PostPosted: Wed Oct 05, 2011 4:42 am    Post subject: Reply with quote

Newbie

Joined: 06 Oct 2009
Posts: 9

Thanks for the advice, the box must have been in a weird state because when tried today, without changing anything, it worked. I tried with and without the M32 and M64 flags and they didn't make any difference.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Cannot find -lmqm
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.