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 » When compiling api exit in AIX, got error

Post new topic  Reply to topic
 When compiling api exit in AIX, got error « View previous topic :: View next topic » 
Author Message
baytreexyn
PostPosted: Mon Aug 27, 2007 3:28 pm    Post subject: When compiling api exit in AIX, got error Reply with quote

Newbie

Joined: 27 Aug 2007
Posts: 1

when i compiling my api exit, i got the error:

ld: 0711-317 ERROR: Undefined symbol: .MQXEP
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: ld returned 8 exit status
make: 1254-004 The error code from the last command is 1.

anybody can help me?
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Aug 27, 2007 11:23 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Platform? Compiler? Version of MQ? Maintenance level?

There's also the standard speech about how exits are an advanced topic and a badly executed exit can bring a queue manager to it's knees. If you don't know how to fix this you may wish to reconsider not doing this.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Tue Aug 28, 2007 10:13 am    Post subject: Re: When compiling api exit in AIX, got error Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

baytreexyn wrote:
when i compiling my api exit, i got the error:

ld: 0711-317 ERROR: Undefined symbol: .MQXEP
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: ld returned 8 exit status
make: 1254-004 The error code from the last command is 1.

anybody can help me?

OMG.

MQXEP is for registering an entry point in an API Exit. You are dealing with an advance level topic but are asking about the most basic component of an API Exit.

There is a whole chapter dedicated to API Exit in the WMQ Application Programming Guide.

Have you even bothered to read it?

There is even a section called: Compiling API Exits. It gives you platform specific information on how to CORRECTLY compile your API Exit.

If you do not have advanced level programming skills and advanced level knowledge of MQ, you should not be doing API Exit programming (you will do more harm than good). If you are an advanced level programmer then why are you asking basic questions (rather reading the manual).

Regards,
Roger Lacroix
Capitalware Inc.
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
sebastia
PostPosted: Thu Jan 15, 2009 11:26 am    Post subject: Reply with quote

Grand Master

Joined: 07 Oct 2004
Posts: 1003

You are missing the "-lmqmzf"
in the line

xlc -q64 -e MQStart -bE:mirrorq.exp -bM:SRE
-o mirrorq mirrorq.c
-I/usr/mqm/inc -L/usr/mqm/lib64 -lmqm -lmqmzf

Enjoy.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » When compiling api exit in AIX, got error
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.