| Author | 
		  Message
		 | 
		
		  | apmq | 
		  
		    
			  
				 Posted: Tue Jun 05, 2007 1:01 pm    Post subject: Compilation problem on AIX unix for xlc_r  -q64 | 
				     | 
			   
			 
		   | 
		
		
		   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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Nigelg | 
		  
		    
			  
				 Posted: Tue Jun 05, 2007 10:02 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Vitor | 
		  
		    
			  
				 Posted: Tue Jun 05, 2007 11:47 pm    Post subject: Re: Compilation problem on AIX unix for xlc_r  -q64 | 
				     | 
			   
			 
		   | 
		
		
		    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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | rtsujimoto | 
		  
		    
			  
				 Posted: Wed Jun 06, 2007 9:33 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Vitor | 
		  
		    
			  
				 Posted: Wed Jun 06, 2007 10:50 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | RogerLacroix | 
		  
		    
			  
				 Posted: Thu Jun 07, 2007 10:57 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Knight
 
 Joined: 15 May 2001 Posts: 3265 Location: London, ON  Canada 
  | 
		  
		    
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |