|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
2002 is returned by MQCONN on Linux |
« View previous topic :: View next topic » |
Author |
Message
|
guogangli |
Posted: Fri Jun 16, 2017 2:20 pm Post subject: 2002 is returned by MQCONN on Linux |
|
|
Novice
Joined: 02 Mar 2009 Posts: 15
|
Hello,
We have a legacy C++ program. When it starts, it launches a number of threads. Each thread makes one MQCONN() call to connect to a local queue manager. The program has been running on Solaris 10 servers for 10+ years.
The program is imported to Linux. When it starts on Linux as a daemon, 2002 is returned by MQCONN(). If MQCONN() is replaced with MQCONNX() and MQCNO_HANDLE_SHARE_BLOCK, 2059 is returned.
A 64-bit MQ is installed on the Linux server, but the program is built with 32-bit, and linked in with the following MQ libraries:
-lmqm -lmqmcs -lmqmzse
Any idea what the problems might be?
We would appreciate very much if you could help!
Guogang Li
CSG International, Inc |
|
Back to top |
|
 |
tczielke |
Posted: Fri Jun 16, 2017 2:57 pm Post subject: |
|
|
Guardian
Joined: 08 Jul 2010 Posts: 941 Location: Illinois, USA
|
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Jun 16, 2017 5:36 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
to be more specific here is the gcc command as given by the manual(thanks tczielke for the link)
Code: |
//C++ server application, 32-bit, threaded example imqsput
g++ -m32 -fsigned-char -o imqsput_32_r imqsput.cpp -I MQ_INSTALLATION_PATH/inc -L MQ_INSTALLATION_PATH/lib -Wl,-rpath= MQ_INSTALLATION_PATH/lib -Wl,-rpath=/usr/lib -limqs23gl_r -limqb23gl_r -lmqm_r -lpthread |
:innocent _________________ MQ & Broker admin |
|
Back to top |
|
 |
guogangli |
Posted: Sat Jun 17, 2017 10:11 am Post subject: |
|
|
Novice
Joined: 02 Mar 2009 Posts: 15
|
tczielke & fjb_saper,
Thank you so much for your help. The MQ libraries linked in is exactly the problem.
Once it's linked in with the correct libraries on Linux, the program connects to the queue manager successfully from multiple threads, just like the one running on Solaris.
Thanks again,
Guogang Li
CSG International, Inc |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|