Author |
Message
|
munish |
Posted: Thu Oct 30, 2003 7:32 am Post subject: MQSeries for HP-UX11 [ 64 bit ] |
|
|
Newbie
Joined: 30 Oct 2003 Posts: 4
|
Hi ,
I am using MQSeries on HP-UX11. The application requires Informix & MQSeries. The Informix Libraries are 64 bit & MQSeries libraries are 32 bit.
Have also installed 64 bit client libraries for MQ . The problem is :
- I am not able to compile & run the sample program amqsput0.c
( The library being used is /opt/mqm/lib64/libmqic.sl)
- Moreover the coding standards laid by our company's client asks
to use libmqm.sl (Server lib.) instead of libmqic.sl (client lib.)
[ No idea why is it so ! ]
So is there 64 bit server libraries available for HP-UX11 ?
And are there some changes to be made in amqsput0.c
to make it 64 bit compatable ?
Thanks ,
Munish |
|
Back to top |
|
 |
Leafar |
Posted: Thu Oct 30, 2003 7:39 am Post subject: |
|
|
 Acolyte
Joined: 03 Apr 2003 Posts: 74 Location: Buenos Aires
|
Can you post the compilation errors and the command line? |
|
Back to top |
|
 |
munish |
Posted: Thu Oct 30, 2003 7:55 am Post subject: |
|
|
Newbie
Joined: 30 Oct 2003 Posts: 4
|
There are no comilation errors , only run time :
---------------------------------------
$>a.out UX4.REMOTE QM_MUNISH
Sample AMQSPUT0 start
target queue is UX4.REMOTE
MQOPEN ended with reason code 8667244003328
MQCLOSE ended with reason code 8667244003328
MQDISC ended with reason code 8667244003328
Sample AMQSPUT0 end
---------------------------------------
It seems that the MQLONG datatype is being mapped to long (64 bit)
and so is returning wrong "reason code"
The compilation is using :
cc -o a.out amqsput0.c -L/opt/mqm/lib64 -lmqic -lmqmcs -lmqmzse -lnsl |
|
Back to top |
|
 |
mrlinux |
Posted: Thu Oct 30, 2003 8:50 am Post subject: |
|
|
 Grand Master
Joined: 14 Feb 2002 Posts: 1261 Location: Detroit,MI USA
|
What happens if you compile without these lib's -lmqmcs -lmqmzse -lnsl _________________ Jeff
IBM Certified Developer MQSeries
IBM Certified Specialist MQSeries
IBM Certified Solutions Expert MQSeries |
|
Back to top |
|
 |
munish |
Posted: Thu Oct 30, 2003 7:19 pm Post subject: |
|
|
Newbie
Joined: 30 Oct 2003 Posts: 4
|
Even after compiling without lib's -lmqmcs -lmqmzse -lnsl , getting the same errors.
Is there 64 bit version for MQ on HP-UX11 available ??? |
|
Back to top |
|
 |
clindsey |
Posted: Fri Oct 31, 2003 9:48 am Post subject: |
|
|
Knight
Joined: 12 Jul 2002 Posts: 586 Location: Dallas, Tx
|
>>- Moreover the coding standards laid by our company's client asks
>>to use libmqm.sl (Server lib.) instead of libmqic.sl (client lib.)
This cannot be done in 64 bit mode.
You can only link with libmqic.sl. Then your connection is via sockets (client mode) so you must export MQSERVER or use MQCONNX and specify your channel, host, and port within the code.
Charlie |
|
Back to top |
|
 |
|