Author |
Message
|
msklie |
Posted: Fri Jan 30, 2004 10:20 am Post subject: Compiled Cluster Workflow User Exit program |
|
|
Newbie
Joined: 11 Jul 2002 Posts: 7
|
Anyone have a good Compiled Cluster Workflow User Exit program to share for MQ 5.2 CSD8 running on Sol8? Thanks in advanced. |
|
Back to top |
|
 |
abiram8 |
Posted: Thu Feb 05, 2004 1:00 am Post subject: shared in solaris |
|
|
 Master
Joined: 27 Mar 2002 Posts: 207 Location: India
|
Hi,
I have the user exit written in c & conv to .dll for windows
but I want to import same to solaris ??
Awaiting for your inputs
Abiram |
|
Back to top |
|
 |
abiram8 |
Posted: Thu Feb 05, 2004 2:37 am Post subject: |
|
|
 Master
Joined: 27 Mar 2002 Posts: 207 Location: India
|
Hi,
To be more breif on my query I have solaris 5.8 with GCC Iam not aware of Gcc version.
As I see in the Intercommunication guide it tells abt the cc compiler option.
the steps to make the shared file for cc compiler is
1) cc -c -KPIC MYFORMAT.C
2) ld -G exit.o -o exit
What is the equilent option (instead of -KPIC) in gcc to create the .o file.
Currently we have the exit programme which has bo be executed and then loaded as shared file (so file) in solaris using gcc
Waiting for your inputs
Abiram |
|
Back to top |
|
 |
abiram8 |
Posted: Thu Feb 05, 2004 6:23 am Post subject: |
|
|
 Master
Joined: 27 Mar 2002 Posts: 207 Location: India
|
Hi,
To be more specific We have rewritten the MC76 (Priority.c) in a way to select the queue based on the priority (of the "n" QM in cluster).Earlier it was QM priority (rx chl priority)
I want to compile the priority.c (changed one) to a shared file in solaris.
I donot know the user API exit is same as channel exit prog.
Iam new to c please let me know if some one have used gcc to create the shared file solaris & let me know the correct steps etc.,
Abiram |
|
Back to top |
|
 |
abiram8 |
Posted: Thu Feb 05, 2004 10:54 pm Post subject: |
|
|
 Master
Joined: 27 Mar 2002 Posts: 207 Location: India
|
Hi Guys,
I have used the steps given in the
http://www-306.ibm.com/software/integration/mqfamily/support/readme/linux530_read_2.html
*******************************
The following example shows the compiler and loader commands for channel-exit programs on Linux.
$ gcc -c -fPIC exit.c
$ gcc -shared exit.o -o exit
$ cp exit /usr/xmp/lib # (or wherever you require)
************************************
Iam using Solaris 5.8 with GCC 3.2.2
& Followed the same steps as mentioned above for my exit program it never gave me error for creation of .o file or shared file.
It throws the error when I restart the QM
AMQ7214: The module for API Exit '<sharedfile>' could not be loaded.
I have Query.
1) Can I use GCC to create the shared in solaris for the channel exit.
I don’t know if its supported or not.
2) If supported I don’t know if Iam missing the library file /any path since most of the document gives information of using the cc not gcc.
3) If any library or any path to be included or which option of gcc should point it.
Looking for your valuable inputs
Abiram |
|
Back to top |
|
 |
abiram8 |
Posted: Thu Feb 12, 2004 1:10 am Post subject: |
|
|
 Master
Joined: 27 Mar 2002 Posts: 207 Location: India
|
Hi,
Iam not sure but few post showed me that creation of shared library thro gcc can be done thro AIX or Linux for channel exit
They have not mentioned abt Solaris I donot really know if I can use gcc for shared library for channel exit prog.
Is it so
Abiram |
|
Back to top |
|
 |
|