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 » Need to compile mirrorq for MQ 6.0.2

Post new topic  Reply to topic
 Need to compile mirrorq for MQ 6.0.2 « View previous topic :: View next topic » 
Author Message
gogo
PostPosted: Tue Nov 04, 2008 5:57 am    Post subject: Need to compile mirrorq for MQ 6.0.2 Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Tue Nov 04, 2008 6:24 am    Post subject: Reply with quote

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
View user's profile Send private message
David.Partridge
PostPosted: Tue Nov 04, 2008 6:46 am    Post subject: Reply with quote

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
View user's profile Send private message
bruce2359
PostPosted: Tue Nov 04, 2008 7:42 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
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
View user's profile Send private message
gogo
PostPosted: Tue Nov 04, 2008 8:36 am    Post subject: Reply with quote

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
View user's profile Send private message
bruce2359
PostPosted: Tue Nov 04, 2008 9:04 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
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
View user's profile Send private message
gogo
PostPosted: Tue Nov 04, 2008 9:30 am    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Tue Nov 04, 2008 10:55 am    Post subject: Reply with quote

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
View user's profile Send private message
gogo
PostPosted: Wed Nov 05, 2008 5:16 am    Post subject: Reply with quote

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
View user's profile Send private message
RogerLacroix
PostPosted: Mon Nov 10, 2008 2:30 pm    Post subject: Reply with quote

Jedi Knight

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

Hi,
gogo wrote:
Do you know utilities similar to mirrorq ready for use with MQ 6 on AIX?

I have several on my MQ commercial tools web page at:
http://www.capitalware.biz/mq_tools_comm.html

Just scroll down to MQ Message Tracking section.

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 » IBM MQ API Support » Need to compile mirrorq for MQ 6.0.2
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.