Subject: | sub-modules missing |
Date: | Sun, 28 Oct 2012 18:30:52 +0100 |
To: | bug-ZCS-Admin [...] rt.cpan.org |
From: | Jure Simsic <jure.simsic [...] gmail.com> |
Hi,
I installed ZCS::Admin (0.07) to aid me in mailbox migration and I got to a
problem right at start. When I want to construct a new object:
my $zcs = ZCS::Admin->new( name => $ZCSadmin,
password => $ZCSadminpw,
proxy => $ZCSsoapURL,
);
I get an error:
---
$ perl -e 'use ZCS::Admin;my $zcs = ZCS::Admin->new(
name=>q[adminusername],password=>q[password],proxy=>q[
https://192.168.30.18:7071/service/admin/soap]); die
ZCS::Admin->faultinfo($zcs) if !$zcs;'
Error deserializing message: Can't locate
ZCS/Admin/Elements/GrantRightRequest.pm in @INC (@INC contains:
/opt/local/lib/perl5/site_perl/5.12.4/darwin-multi-2level
/opt/local/lib/perl5/site_perl/5.12.4
/opt/local/lib/perl5/vendor_perl/5.12.4/darwin-multi-2level
/opt/local/lib/perl5/vendor_perl/5.12.4
/opt/local/lib/perl5/5.12.4/darwin-multi-2level /opt/local/lib/perl5/5.12.4
/opt/local/lib/perl5/site_perl/5.12.3/darwin-multi-2level
/opt/local/lib/perl5/site_perl/5.12.3
/opt/local/lib/perl5/site_perl/5.12.2/darwin-multi-2level
/opt/local/lib/perl5/site_perl/5.12.2
/opt/local/lib/perl5/site_perl/5.12.1/darwin-multi-2level
/opt/local/lib/perl5/site_perl/5.12.1 /opt/local/lib/perl5/site_perl
/opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level
/opt/local/lib/perl5/vendor_perl/5.12.3 /opt/local/lib/perl5/vendor_perl .)
at /opt/local/lib/perl5/site_perl/5.12.4/SOAP/WSDL/Expat/MessageParser.pm
line 64.
.
Message was:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><context
xmlns="urn:zimbra"/></soap:Header><soap:Body><AuthResponse
xmlns="urn:zimbraAdmin"><authToken>0_0bdb7aa356b199015add3d9955847072ed0270ea_69643d33363a33666136306266352d346565392d343538642d623638362d3838366664646461333363343b6578703d31333a313335313438373336353437323b61646d696e3d313a313b747970653d363a7a696d6272613b</authToken><lifetime>43199999</lifetime><a
n="zimbraIsDomainAdminAccount">false</a></AuthResponse></soap:Body></soap:Envelope>
at -e line 1.
---
So it seems I do get the authToken but it exits right after that..
I've checked in ZCS/Admin/Typemaps/Admin.pm and I can see a couple of
referenced modules missing in the distro:
ls:
/opt/local/lib/perl5/site_perl/5.12.4/ZCS/Admin/Elements/GrantRightRequest.pm:
No such file or directory
ls:
/opt/local/lib/perl5/site_perl/5.12.4/ZCS/Admin/Elements/GrantRightResponse.pm:
No such file or directory
ls:
/opt/local/lib/perl5/site_perl/5.12.4/ZCS/Admin/Elements/RevokeRightRequest.pm:
No such file or directory
ls:
/opt/local/lib/perl5/site_perl/5.12.4/ZCS/Admin/Elements/RevokeRightResponse.pm:
No such file or directory
ls: /opt/local/lib/perl5/site_perl/5.12.4/ZCS/Admin/Types/GrantTarget.pm:
No such file or directory
ls: /opt/local/lib/perl5/site_perl/5.12.4/ZCS/Admin/Types/Grantee.pm: No
such file or directory
ls: /opt/local/lib/perl5/site_perl/5.12.4/ZCS/Admin/Types/Right.pm: No such
file or directory
As I won't be really needing Granting/Revoking rights, is there some
(quick&dirty) hack to get around these limitations? Or if you have the
missing modules somewhere..
Thank you
Jure
------------------
My env:
$ perl -MZCS::Admin -e 'print $ZCS::Admin::VERSION,"\n"'
0.07
$ uname -a
Darwin kpiti.local 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:33:36
PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386
$ perl -V
Summary of my perl5 (revision 5 version 12 subversion 4) configuration:
Platform:
osname=darwin, osvers=10.8.0, archname=darwin-multi-2level
uname='darwin beta.macosforge.org 10.8.0 darwin kernel version 10.8.0:
tue jun 7 16:33:36 pdt 2011; root:xnu-1504.15.3~1release_i386 i386 '
config_args='-D inc_version_list=5.12.3/darwin-multi-2level 5.12.3
5.12.2/darwin-multi-2level 5.12.2 5.12.1/darwin-multi-2level 5.12.1
5.12.0/darwin-multi-2level 5.12.0 -des -Dprefix=/opt/local
-Dscriptdir=/opt/local/bin -Dcppflags=-I/opt/local/include -Dccflags=-pipe
-O2 -Dldflags=-L/opt/local/lib -Dvendorprefix=/opt/local
-Dusemultiplicity=y -D cc=/usr/bin/gcc-4.2 -D ld=/usr/bin/gcc-4.2 -D
man1ext=1pm -D man3ext=3pm -D man1dir=/opt/local/share/man/man1p -D
man3dir=/opt/local/share/man/man3p -D siteman1dir=/opt/local/share/man/man1
-D siteman3dir=/opt/local/share/man/man3 -D
vendorman1dir=/opt/local/share/man/man1 -D
vendorman3dir=/opt/local/share/man/man3 -D pager=/usr/bin/less -sR -D
perlpath=/opt/local/bin/perl5.12 -D startperl=#!/opt/local/bin/perl5.12'
hint=recommended, useposix=true, d_sigaction=define
useithreads=undef, usemultiplicity=define
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=define, use64bitall=define, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='/usr/bin/gcc-4.2', ccflags ='-pipe -O2 -fno-common -DPERL_DARWIN
-I/opt/local/include -no-cpp-precomp -fno-strict-aliasing -fstack-protector
-I/opt/local/include',
optimize='-O3',
cppflags='-I/opt/local/include -no-cpp-precomp -pipe -O2 -fno-common
-DPERL_DARWIN -I/opt/local/include -no-cpp-precomp -fno-strict-aliasing
-fstack-protector -I/opt/local/include'
ccversion='', gccversion='4.2.1 (Apple Inc. build 5666) (dot 3)',
gccosandvers=''
intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='env MACOSX_DEPLOYMENT_TARGET=10.6 /usr/bin/gcc-4.2', ldflags
='-L/opt/local/lib -fstack-protector'
libpth=/opt/local/lib /usr/lib
libs=-lgdbm -ldbm -ldl -lm -lutil -lc
perllibs=-ldl -lm -lutil -lc
libc=, so=dylib, useshrplib=false, libperl=libperl.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags='-L/opt/local/lib -bundle -undefined
dynamic_lookup -fstack-protector'
Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV
PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP
USE_64_BIT_ALL
USE_64_BIT_INT USE_LARGE_FILES USE_PERLIO
USE_PERL_ATOF
Built under darwin
Compiled at Apr 5 2012 23:45:23
@INC:
/opt/local/lib/perl5/site_perl/5.12.4/darwin-multi-2level
/opt/local/lib/perl5/site_perl/5.12.4
/opt/local/lib/perl5/vendor_perl/5.12.4/darwin-multi-2level
/opt/local/lib/perl5/vendor_perl/5.12.4
/opt/local/lib/perl5/5.12.4/darwin-multi-2level
/opt/local/lib/perl5/5.12.4
/opt/local/lib/perl5/site_perl/5.12.3/darwin-multi-2level
/opt/local/lib/perl5/site_perl/5.12.3
/opt/local/lib/perl5/site_perl/5.12.2/darwin-multi-2level
/opt/local/lib/perl5/site_perl/5.12.2
/opt/local/lib/perl5/site_perl/5.12.1/darwin-multi-2level
/opt/local/lib/perl5/site_perl/5.12.1
/opt/local/lib/perl5/site_perl
/opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level
/opt/local/lib/perl5/vendor_perl/5.12.3
/opt/local/lib/perl5/vendor_perl