| Author | 
		  Message
		 | 
		
		  | gogo | 
		  
		    
			  
				 Posted: Tue Nov 04, 2008 5:57 am    Post subject: Need to compile mirrorq for MQ 6.0.2 | 
				     | 
			   
			 
		   | 
		
		
		   Novice
 
 Joined: 28 Jul 2008 Posts: 11
  
  | 
		  
		    
			  
				I am trying to compile mirrorq for MQ 6.0.2 on AIX 5.3 TL7 but have an errors. Is something missed?
 
gcc -maix64 -shared -fPIC -o mirrorq mirrorq.c -I/usr/mqm/inc -L/usr/mqm/lib64 -Wl,-rpath=/usr/mqm/lib64 -Wl,-rpath=/usr/lib -lmqmzf
 
 
ld: 0706-012 The -p flag is not recognized.
 
ld: 0706-012 The -a flag is not recognized.
 
ld: 0706-012 The -t flag is not recognized.
 
ld: 0706-012 The -h flag is not recognized.
 
ld: 0706-012 The -= flag is not recognized.
 
ld: 0706-012 The -/ flag is not recognized.
 
ld: 0706-012 The -p flag is not recognized.
 
ld: 0706-012 The -a flag is not recognized.
 
ld: 0706-012 The -t flag is not recognized.
 
ld: 0706-012 The -h flag is not recognized.
 
ld: 0706-012 The -= flag is not recognized.
 
ld: 0706-012 The -/ flag is not recognized.
 
collect2: ld returned 255 exit status
 
 
or 
 
gcc -maix64 -shared -fPIC -o mirrorq mirrorq.c -I/usr/mqm/inc -L/usr/mqm/lib64 -Wl,-rpath /usr/mqm/lib64 usr/lib -lmqmzf
 
 
ld: 0706-012 The -p flag is not recognized.
 
ld: 0706-012 The -a flag is not recognized.
 
ld: 0706-012 The -t flag is not recognized.
 
ld: 0706-012 The -h flag is not recognized.
 
collect2: ld returned 255 exit status | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Vitor | 
		  
		    
			  
				 Posted: Tue Nov 04, 2008 6:24 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA 
  | 
		  
		    
			  
				What errors?
 
 
Are you sure that gcc is supported? _________________ Honesty is the best policy.
 
Insanity is the best defence. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | David.Partridge | 
		  
		    
			  
				 Posted: Tue Nov 04, 2008 6:46 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Master
 
 Joined: 28 Jun 2001 Posts: 249
  
  | 
		  
		    
			  
				The following compilers are supported for WebSphere MQ for AIX® applications:
 
C/C++
 
 
IBM® VisualAge® C++ Professional for AIX Version V5.0, V6.0 and V7.0
 
 
 
IBM C for AIX V5.0, V6.0 and V7.0 
 
 
gcc is not supported on AIX (only on Linux) _________________ Cheers,
 
David C. Partridge | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | bruce2359 | 
		  
		    
			  
				 Posted: Tue Nov 04, 2008 7:42 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Poobah
 
 Joined: 05 Jan 2008 Posts: 9486 Location: US: west coast, almost. Otherwise, enroute. 
  | 
		  
		    
			  
				
   
	| Quote: | 
   
  
	ld: 0706-012 The -p flag is not recognized. 
 
ld: 0706-012 The -a flag is not recognized. 
 
ld: 0706-012 The -t flag is not recognized. 
 
ld: 0706-012 The -h flag is not recognized. 
 
ld: 0706-012 The -= flag is not recognized. 
 
ld: 0706-012 The -/flag is not recognized. 
 
ld: 0706-012 The -p flag is not recognized. 
 
ld: 0706-012 The -a flag is not recognized. 
 
ld: 0706-012 The -t flag is not recognized. 
 
ld: 0706-012 The -h flag is not recognized. 
 
ld: 0706-012 The -= flag is not recognized. 
 
ld: 0706-012 The -/ flag is not recognized. 
 
collect2: ld returned 255 exit status  | 
   
 
 
 
Read downhill. _________________ 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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | gogo | 
		  
		    
			  
				 Posted: Tue Nov 04, 2008 8:36 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Novice
 
 Joined: 28 Jul 2008 Posts: 11
  
  | 
		  
		    
			  
				You are right there is a work "path" from the end of command when you read downhill. Why is it?
 
 
I used another options with another errors:
 
gcc -maix64 -shared -fPIC -o mirrorq mirrorq.c -I/usr/mqm/inc -L/usr/mqm/lib64 -lmqm -lmqmzf
 
 
Meme cette commande ne fonctionne pas et le compilateur sort un autre message.
 
 
ld: 0711-317 ERROR: Undefined symbol: .__register_frame_info_table
 
ld: 0711-317 ERROR: Undefined symbol: .__deregister_frame_info
 
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
 
collect2: ld returned 8 exit status
 
 
 
Is it something special in WebSphere MQ for AIX that gcc is not working here with it?  I saw only commands example for Linux, that's true , but gcc should be fine to my mind with AIX as well. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | bruce2359 | 
		  
		    
			  
				 Posted: Tue Nov 04, 2008 9:04 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Poobah
 
 Joined: 05 Jan 2008 Posts: 9486 Location: US: west coast, almost. Otherwise, enroute. 
  | 
		  
		    
			  
				What happens when you just issue the gcc command without any switches or paths? _________________ 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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | gogo | 
		  
		    
			  
				 Posted: Tue Nov 04, 2008 9:30 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Novice
 
 Joined: 28 Jul 2008 Posts: 11
  
  | 
		  
		    
			  
				Without paths and switchs: 
 
# gcc mirrorq.c
 
ld: 0711-317 ERROR: Undefined symbol: .main
 
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
 
collect2: ld returned 8 exit status
 
 
# gcc -maix64 -shared  -o mirrorq mirrorq.c
 
ld: 0711-317 ERROR: Undefined symbol: .__register_frame_info_table
 
ld: 0711-317 ERROR: Undefined symbol: .__deregister_frame_info
 
ld: 0711-317 ERROR: Undefined symbol: .MQPUT
 
ld: 0711-317 ERROR: Undefined symbol: .MQPUT1
 
ld: 0711-317 ERROR: Undefined symbol: .MQXEP
 
ld: 0711-317 ERROR: Undefined symbol: .MQCLOSE
 
ld: 0711-317 ERROR: Undefined symbol: .MQOPEN
 
ld: 0711-317 ERROR: Undefined symbol: .MQINQ
 
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
 
collect2: ld returned 8 exit status
 
 
 
I do got a confirmation that MQ on AIX is not supported for gcc. Does it mean no-go for gcc on AIX?
 
 
 
Does any one know the binaries for samples programs (this is mirrorq.c ) of Partner world? | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Vitor | 
		  
		    
			  
				 Posted: Tue Nov 04, 2008 10:55 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA 
  | 
		  
		    
			  
				
   
	| gogo wrote: | 
   
  
	| Does any one know the binaries for samples programs (this is mirrorq.c ) of Partner world? | 
   
 
 
 
Do bear in mind that mirrorq is a sample exit & is not intended to be used in production environments unmodified. You'd be much better off finding a supported compiler for your environment so you can change it when it doesn't work right or kills performance stone dead. _________________ Honesty is the best policy.
 
Insanity is the best defence. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | gogo | 
		  
		    
			  
				 Posted: Wed Nov 05, 2008 5:16 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Novice
 
 Joined: 28 Jul 2008 Posts: 11
  
  | 
		  
		    
			  
				| Do you know utilities similar to mirrorq ready for use with MQ 6 on AIX? | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | RogerLacroix | 
		  
		    
			  
				 Posted: Mon Nov 10, 2008 2:30 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Knight
 
 Joined: 15 May 2001 Posts: 3265 Location: London, ON  Canada 
  | 
		  
		    
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |