Author |
Message
|
mark_r |
Posted: Wed Oct 05, 2011 2:10 am Post subject: Cannot find -lmqm |
|
|
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 |
|
 |
mqjeff |
Posted: Wed Oct 05, 2011 2:28 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
|
Back to top |
|
 |
mark_r |
Posted: Wed Oct 05, 2011 2:38 am Post subject: |
|
|
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 |
|
 |
mqjeff |
Posted: Wed Oct 05, 2011 2:48 am Post subject: |
|
|
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 |
|
 |
Philip Morten |
Posted: Wed Oct 05, 2011 3:17 am Post subject: |
|
|
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 |
|
 |
mark_r |
Posted: Wed Oct 05, 2011 4:42 am Post subject: |
|
|
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 |
|
 |
|