|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Problem with Perl 1,25 for MQ for Solaris |
« View previous topic :: View next topic » |
Author |
Message
|
relheop |
Posted: Sun Aug 26, 2007 1:02 pm Post subject: Problem with Perl 1,25 for MQ for Solaris |
|
|
Apprentice
Joined: 30 Jan 2003 Posts: 40
|
Hallo @,
I try to run a sample perl program on two Solaris boxes (Cluster Sol 10, MQ V6). On one it works fine and on the other it alwayes failed with following reason:2019 ( see the above source code)
Any ideas to check the system perl (/usr/perl5/5.8.4) and MQ Perl installation are wellcome?
Thx in advance.
J
#!/usr/bin/perl
## 07/23/01
## Depth Inquiry sample program.
## Arguments: [Queue Name] [Queue Manager Name]
## Connects to the queue manager specified by the command line,
## if not supplied, it will connect to the default queue manager.
## It then inquires about the queue name passed in, specifically,
## the current depth of that queue. This is displayed to the user.
## This code can easily be modified to display other queue properties.
## Furthermore, MQINQ can be used to inquire about the attributes of
## other objects, not just queues.
##
## Author: Brandon Duncan
## brandon@mqseries.net
## www.mqseries.net
##
use MQSeries;
my $qname = $ARGV[0];
my $qmgrname = $ARGV[1];
my $Hconn = MQCONN($qmgrname, $CompCode, $Reason);
print"MQCONN reason:$Reason\n";
my $ObjDesc = { ObjectType => MQOT_Q, ObjectName => $qname };
my $Options = MQOO_INQUIRE | MQOO_SET | MQOO_FAIL_IF_QUIESCING;
my $Hobj = MQOPEN($Hconn,$ObjDesc,$Options,$CompCode,$Reason);
print"MQOPEN reason:$Reason\n";
my $tst = MQINQ($Hconn,$Hobj,$CompCode,$Reason,MQIA_CURRENT_Q_DEPTH);
print"Depth of $qname is: $tst\n";
MQCLOSE($Hconn,$Hobj,$COptions,$CompCode,$Reason);
print"MQCLOSE reason:$Reason\n";
MQDISC($Hconn,$CompCode,$Reason);
print"MQDISC reason:$Reason\n";
OutPut:
./neu_test.pl LQ QM
MQCONN reason:0
MQOPEN reason:0
Depth of LQ is: 3
MQCLOSE reason:2019
MQDISC reason:0
Same problems accours with other perl get programs on this box. |
|
Back to top |
|
 |
jefflowrey |
Posted: Sun Aug 26, 2007 1:09 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
What's different about the MQ installation between the two boxes?
What's the Reason returned from the MQINQ?
Did you install the module from scratch on both machines, or did you install it on one, and then copy it to the other?
Did all the tests pass, during the building of the module? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
relheop |
Posted: Sun Aug 26, 2007 10:53 pm Post subject: |
|
|
Apprentice
Joined: 30 Jan 2003 Posts: 40
|
see my answers:
What's different about the MQ installation between the two boxes? There is no difference.
What's the Reason returned from the MQINQ? Same -> INC reason:2019
Did you install the module from scratch on both machines, or did you install it on one, and then copy it to the other? It is an installation with
perl Makefile.PL
make
make test
make install
Did all the tests pass, during the building of the module? No, but I read in this forum other people have the same problem and it works.
Output from make test:
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, '../blib/lib', '../blib/arch')" t/*.t
t/10constants.....ok
t/20convert.......FAILED tests 5-6
Failed 2/6 tests, 66.67% okay
t/30basic.........FAILED tests 4-12, 15-16
Failed 11/17 tests, 35.29% okay
t/40oo-qmgr.......ok 6/9MQINQ call failed. CompCode => '2', Reason => '2019'
at t/40oo-qmgr.t line 114
Use of uninitialized value in pattern match (m//) at t/40oo-qmgr.t line 129.
Use of uninitialized value in concatenation (.) or string at t/40oo-qmgr.t line 130.
Use of uninitialized value in pattern match (m//) at t/40oo-qmgr.t line 134.
Use of uninitialized value in concatenation (.) or string at t/40oo-qmgr.t line 135.
Use of uninitialized value in pattern match (m//) at t/40oo-qmgr.t line 139.
Use of uninitialized value in concatenation (.) or string at t/40oo-qmgr.t line 140.
t/40oo-qmgr.......FAILED tests 7-8
Failed 2/9 tests, 77.78% okay
t/50oo-command....ok
t/60-logs.........ok
t/70-config.......ok
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/20convert.t 6 2 33.33% 5-6
t/30basic.t 17 11 64.71% 4-12 15-16
t/40oo-qmgr.t 9 2 22.22% 7-8
Failed 3/7 test scripts, 57.14% okay. 15/3444 subtests failed, 99.56% okay.
*** Error code 29
make: Fatal error: Command failed for target `test_dynamic'
Current working directory /export/home/mqm/INSTALL/MQ_Perl/MQSeries-1.25/MQClient
*** Error code 1
The following command caused the error:
cd MQClient && test -f Makefile && make test LIB="" LIBPERL_A="libperl.a" LINKTYPE="dynamic" PREFIX="" OPTIMIZE="-xO3 -xspace -xildoff" PASTHRU_DEFINE="" PASTHRU_INC=""
make: Fatal error: Command failed for target `test' |
|
Back to top |
|
 |
sidharth_bora |
Posted: Mon Aug 27, 2007 1:25 am Post subject: |
|
|
 Voyager
Joined: 24 Nov 2005 Posts: 87
|
Can you verify if the OS version , patch version are same in both the OS
Sid |
|
Back to top |
|
 |
sidharth_bora |
Posted: Mon Aug 27, 2007 1:30 am Post subject: |
|
|
 Voyager
Joined: 24 Nov 2005 Posts: 87
|
Also check if perl is installed in the same directory in both the server.. |
|
Back to top |
|
 |
relheop |
Posted: Mon Aug 27, 2007 6:09 am Post subject: |
|
|
Apprentice
Joined: 30 Jan 2003 Posts: 40
|
We use the same OS level and the same directory for the Perl-Installation on each node.
Temporay we solved the problem by coping the MQ-Perl files (MQ.Series.so also) from the other box. Now all programs are runing without errors. It looks like a problem with Solaris C-Compiler. |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Aug 27, 2007 10:21 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
It looks like either you don't have the MQ Client installed on the second machine, or you didn't run the compile with a valid MQSERVER environment variable set. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|