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 » Cobol client application linking failed with libmqmcb.so

Post new topic  Reply to topic
 Cobol client application linking failed with libmqmcb.so « View previous topic :: View next topic » 
Author Message
mqbee2016
PostPosted: Mon Apr 25, 2016 2:37 am    Post subject: Cobol client application linking failed with libmqmcb.so Reply with quote

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
View user's profile Send private message
hughson
PostPosted: Tue May 03, 2016 12:46 am    Post subject: Reply with quote

Padawan

Joined: 09 May 2013
Posts: 1914
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
View user's profile Send private message Visit poster's website
mqbee2016
PostPosted: Wed May 04, 2016 2:48 am    Post subject: Reply with quote

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
View user's profile Send private message
bruce2359
PostPosted: Wed May 04, 2016 3:43 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9392
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
View user's profile Send private message
tczielke
PostPosted: Wed May 04, 2016 10:28 am    Post subject: Reply with quote

Guardian

Joined: 08 Jul 2010
Posts: 939
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
View user's profile Send private message
mqbee2016
PostPosted: Thu May 05, 2016 3:39 am    Post subject: Reply with quote

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
View user's profile Send private message
tczielke
PostPosted: Thu May 05, 2016 8:07 pm    Post subject: Reply with quote

Guardian

Joined: 08 Jul 2010
Posts: 939
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
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 » IBM MQ API Support » Cobol client application linking failed with libmqmcb.so
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.