Author |
Message
|
mqbee2016 |
Posted: Mon Apr 25, 2016 2:37 am Post subject: Cobol client application linking failed with libmqmcb.so |
|
|
Newbie
Joined: 25 Apr 2016 Posts: 3
|
Hi,
As part of the MQ8 upgrade, we need to recompile and relink the old cobol client application which was referring to libmqmcs and libmqmcb libraries before.
Now as in MQ8, libmqmcs is deprecated and not advised to use, we have removed it while linking. But after that getting error:
symbol referencing error in libmqmcb.so
Kindly help. |
|
Back to top |
|
 |
hughson |
Posted: Tue May 03, 2016 12:46 am Post subject: |
|
|
 Padawan
Joined: 09 May 2013 Posts: 1959 Location: Bay of Plenty, New Zealand
|
Can you supply some more detail? Your build commands, a bit more detail around the error etc. _________________ Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software |
|
Back to top |
|
 |
mqbee2016 |
Posted: Wed May 04, 2016 2:48 am Post subject: |
|
|
Newbie
Joined: 25 Apr 2016 Posts: 3
|
We are using cob command to link the MQ library - libmqmcb and getting the below error:
undefined symbol first referenced in
xcsConverString in /app/mqm/opt/lib64/libmqmcb.so
CSCtrl in /app/mqm/opt/lib64/libmqmcb.so
and few more variables.
but if we link the files using cob with both the libraries libmqmcb and libmqmcs, it is able to link. But then going forward gives the 2012 Environment issue. |
|
Back to top |
|
 |
bruce2359 |
Posted: Wed May 04, 2016 3:43 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
What was the complete 'cob' command you executed?
What o/s? IBM MQ v 8.0.0.0? Which COBOL compiler? _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
tczielke |
Posted: Wed May 04, 2016 10:28 am Post subject: |
|
|
Guardian
Joined: 08 Jul 2010 Posts: 941 Location: Illinois, USA
|
Are you sure your /app/mqm/opt/lib64/libmqmcb.so is a v8 file?
When I use the nm command to list the symbols in either the 7.5 or 8.0 version of libmqmcb.so, I don't see either of these symbols:
xcsConverString
CSCtrl _________________ Working with MQ since 2010. |
|
Back to top |
|
 |
mqbee2016 |
Posted: Thu May 05, 2016 3:39 am Post subject: |
|
|
Newbie
Joined: 25 Apr 2016 Posts: 3
|
OS is solaris. and MQ version is 8.0.0.4.
I can see the variables defined in libmqmcs.so but undefined in libmqmcb.so, but their presence is there(as UNDEF) when I run nm command. |
|
Back to top |
|
 |
tczielke |
Posted: Thu May 05, 2016 8:07 pm Post subject: |
|
|
Guardian
Joined: 08 Jul 2010 Posts: 941 Location: Illinois, USA
|
Ok, I checked this out on Solaris for 8.0.0.4 and I see what you are saying. Those two symbols you mentioned were added into the libmqmcb.so at 8.0 (don't see them in 7.5) and the only shared object file that I see those symbols globally defined in is the libmqmcs.so. Maybe check this out with IBM in a PMR? My only other advice is make sure you are following the manual recommendations on how to build COBOL programs on Solaris.
http://www.ibm.com/support/knowledgecenter/SSFKSJ_8.0.0/com.ibm.mq.dev.doc/q028620_.htm?lang=en _________________ Working with MQ since 2010. |
|
Back to top |
|
 |
|