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 » General Discussion » Compilation problem on AIX unix for xlc_r -q64

Post new topic  Reply to topic
 Compilation problem on AIX unix for xlc_r -q64 « View previous topic :: View next topic » 
Author Message
apmq
PostPosted: Tue Jun 05, 2007 1:01 pm    Post subject: Compilation problem on AIX unix for xlc_r -q64 Reply with quote

Newbie

Joined: 05 Jun 2007
Posts: 1

I tried the command to compile maxconn exit files

/usr/vacpp/bin/xlc_r -q64 -qcpluscmt -e MQStart -bE:/home/mqm/me71/source/maxconnstate.exp -bM:SRE -o /var/mqm/exits/maxconnstate maxconn.c maxconnstate.c -I/usr/mqm/inc -I/home/mqm/me71/source -L/usr/mqm/lib -lmqm_r

It gives error like

"maxconn.c", line 524.33: 1506-280 (E) Function argument assignment between types "int*" and "long*" is not allowed.

I casted int* and the error gone but again I got error like

ld: 0706-004 Cannot find or read export file: maxconnstate.exp
ld:accessx(): A file or directory in the path name does not exist.


Can you please help?

Thanks
Back to top
View user's profile Send private message
Nigelg
PostPosted: Tue Jun 05, 2007 10:02 pm    Post subject: Reply with quote

Grand Master

Joined: 02 Aug 2004
Posts: 1046

Quote:
-bE:/home/mqm/me71/source/maxconnstate.exp


Your compile statement says that there is an export file.

Quote:
ld: 0706-004 Cannot find or read export file: maxconnstate.exp


The link command says it cannot find or read the export file.

The error could not really be more simple or easy to understand.
_________________
MQSeries.net helps those who help themselves..
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Jun 05, 2007 11:47 pm    Post subject: Re: Compilation problem on AIX unix for xlc_r -q64 Reply with quote

Grand High Poobah

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

apmq wrote:
I tried the command to compile maxconn exit files


Without wishing to cause offence, exits are an advanced topic. If you don't know enough to understand & resolve this kind of simplistic error, you probably shouldn't be working with an exit.

The damage a badly written / linked exit can cause is surprisingly large
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
rtsujimoto
PostPosted: Wed Jun 06, 2007 9:33 am    Post subject: Reply with quote

Centurion

Joined: 16 Jun 2004
Posts: 119
Location: Lake Success, NY

Aren't you guys just a bit too judgmental? Give this person a break.
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Jun 06, 2007 10:50 am    Post subject: Reply with quote

Grand High Poobah

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

rtsujimoto wrote:
Aren't you guys just a bit too judgmental? Give this person a break.


Just trying to stop him accidently burning his MQ to the ground. The error is very clear and implies inexperience (which is of itself not a bad thing). But I've been writing C/C++ for the best part of 20 years (gulp) and when I say exits are "advanced", I mean "not something I'd do lightly". Exits are a weak link in WMQ; a badlt written exit can at best kill your performance stone dead & at worst blow the queue manager out of the machine. There are a number of advanced programming issues to consider (laid out in a wonderful sticky elsewhere in this forum), all of which must be handled properly to avoid problems. This requires a depth of knowledge and experience.

It's also worth noting there are very few requirements which can only be met by an exit.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Thu Jun 07, 2007 10:57 am    Post subject: Reply with quote

Jedi Knight

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

Hi,

Anyone doing MQ exit work show reading my posting here:
http://www.mqseries.net/phpBB2/viewtopic.php?t=20523

Regards,
Roger Lacroix
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
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 » General Discussion » Compilation problem on AIX unix for xlc_r -q64
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.