I had a similar issue with Class::insideOut and weaken() so I inserted
this code at the beginning of the module:

BEGIN {
   eval { Scalar::Util->import( "weaken" ) };
   if ( $@ =~ /\AWeak references/ ) {
       warn "Scalar::Util::weaken unavailable: "
          . "Class::InsideOut will not be thread-safe\n";
       *weaken = sub { shift };
   }
}

In your case, since you need dualvar, then you should re-write the
above to try to import dual-var and if there is an error, to die with
an error that explains that the XS version of Scalar::Util is
required.

You might want want to put a copy in your Makefile.PL as well, so that
it also dies with an error if the XS version is not available.

-- David Golden

On 7/15/07, Tomáš Michálek <[EMAIL PROTECTED]> wrote:

 Hm what now ? I using cpan to update my modules. Dont know how solve this
dependencies.
 I try wait for next update.
 Thanx for you answear and excuse my english :)

 Steffen Ullrich napsal(a):
 For whatever reason your Scalar::Util is not build as an XS module.
This causes the import of Scalar::Util::dualvar to fail, because this
is only available when build as XS.
Because this is an undocumented limit of Scalar::Util I consider it
as a bug of Scalar::Util.

I have know idea how to specify that a module, which is a prerequisite,
has to be build with specific options.

Regards,
Steffen


On Sat, Jul 14, 2007 at 06:55:10PM +0200, DAGOLDEN
<[EMAIL PROTECTED]> wrote:


 This distribution has been tested as part of the cpan-testers
effort to test as many new uploads to CPAN as possible. See
http://testers.cpan.org/

Please cc any replies to [email protected] to keep other
test volunteers informed and to prevent any duplicate effort.

--
Dear Steffen Ullrich,

This is a computer-generated test report for IO-Socket-SSL-1.07, created
automatically by CPAN::Reporter, version 0.43, and sent to the CPAN
Testers mailing list. If you have received this email directly, it is
because the person testing your distribution chose to send a copy to your
CPAN email address; there may be a delay before the official report is
received and processed by CPAN Testers.

Thank you for uploading your work to CPAN. However, it appears that
there were some problems testing your distribution.

Sections of this report:

 * Tester comments
 * Prerequisites
 * Environment and other context
 * Test output

------------------------------
TESTER COMMENTS
------------------------------

Additional comments from tester:

[none provided]

------------------------------
PREREQUISITES
------------------------------

Prerequisite modules loaded:

requires:

 Module Need Have
 ------------ ---- ----
 Net::SSLeay 1.21 1.30
 Scalar::Util 0 1.18

------------------------------
ENVIRONMENT AND OTHER CONTEXT
------------------------------

Environment variables:

 LANG = cs_CZ.UTF-8
 LANGUAGE = cs_CZ.UTF-8:cs
 LC_ADDRESS = cs_CZ.UTF-8
 LC_COLLATE = cs_CZ.UTF-8
 LC_CTYPE = cs_CZ.UTF-8
 LC_IDENTIFICATION = cs_CZ.UTF-8
 LC_MEASUREMENT = cs_CZ.UTF-8
 LC_MESSAGES = cs_CZ.UTF-8
 LC_MONETARY = cs_CZ.UTF-8
 LC_NAME = cs_CZ.UTF-8
 LC_NUMERIC = cs_CZ.UTF-8
 LC_PAPER = cs_CZ.UTF-8
 LC_SOURCED = 1
 LC_TELEPHONE = cs_CZ.UTF-8
 LC_TIME = cs_CZ.UTF-8
 PATH =
/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin
 PERL5LIB =
 PERL5_CPANPLUS_IS_RUNNING = 1
 PERL5_CPAN_IS_RUNNING = 1
 SHELL = /bin/bash
 TERM = xterm

Perl special variables (and OS-specific diagnostics, for MSWin32):

 Perl: $^X = /usr/bin/perl5.8.8
 UID: $< = 0
 EUID: $> = 0
 GID: $( = 0 0
 EGID: $) = 0 0

Perl module toolchain versions installed:

 Module Have
 ------------------- ------
 CPAN 1.9102
 Cwd 3.25
 ExtUtils::CBuilder 0.19
 ExtUtils::Command 1.13
 ExtUtils::Install 1.41
 ExtUtils::MakeMaker 6.32
 ExtUtils::Manifest 1.51
 ExtUtils::ParseXS n/a
 File::Spec 3.12
 Module::Build 0.2806
 Module::Signature 0.55
 Test::Harness 2.64
 Test::More 0.70
 version 0.7203

------------------------------
TEST OUTPUT
------------------------------

Output from '/usr/bin/make test':

PERL_DL_NONLAZY=1 /usr/bin/perl5.8.8 "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/01loadmodule.....Use of uninitialized value in concatenation (.) or string
at /usr/lib/perl5/5.8.8/i386-linux/Scalar/Util.pm line 30.
 is only avaliable with the XS version at
/root/.cpan/build/IO-Socket-SSL-1.07-p5DiXv/blib/lib/IO/Socket/SSL.pm line
20
BEGIN failed--compilation aborted at
/root/.cpan/build/IO-Socket-SSL-1.07-p5DiXv/blib/lib/IO/Socket/SSL.pm line
20.
Compilation failed in require at t/01loadmodule.t line 11.
BEGIN failed--compilation aborted at t/01loadmodule.t line 11.
dubious
 Test returned status 9 (wstat 2304, 0x900)
DIED. FAILED tests 1-4
 Failed 4/4 tests, 0.00% okay
t/02settings.......Use of uninitialized value in concatenation (.) or string
at /usr/lib/perl5/5.8.8/i386-linux/Scalar/Util.pm line 30.
 is only avaliable with the XS version at
/root/.cpan/build/IO-Socket-SSL-1.07-p5DiXv/blib/lib/IO/Socket/SSL.pm line
20
BEGIN failed--compilation aborted at
/root/.cpan/build/IO-Socket-SSL-1.07-p5DiXv/blib/lib/IO/Socket/SSL.pm line
20.
Compilation failed in require at t/02settings.t line 4.
BEGIN failed--compilation aborted at t/02settings.t line 4.
dubious
 Test returned status 9 (wstat 2304, 0x900)
t/cert_no_file.....Use of uninitialized value in concatenation (.) or string
at /usr/lib/perl5/5.8.8/i386-linux/Scalar/Util.pm line 30.
 is only avaliable with the XS version at
/root/.cpan/build/IO-Socket-SSL-1.07-p5DiXv/blib/lib/IO/Socket/SSL.pm line
20
BEGIN failed--compilation aborted at
/root/.cpan/build/IO-Socket-SSL-1.07-p5DiXv/blib/lib/IO/Socket/SSL.pm line
20.
Compilation failed in require at t/cert_no_file.t line 16.
BEGIN failed--compilation aborted at t/cert_no_file.t line 16.
dubious
 Test returned status 9 (wstat 2304, 0x900)
t/compatibility....Use of uninitialized value in concatenation (.) or string
at /usr/lib/perl5/5.8.8/i386-linux/Scalar/Util.pm line 30.
 is only avaliable with the XS version at
/root/.cpan/build/IO-Socket-SSL-1.07-p5DiXv/blib/lib/IO/Socket/SSL.pm line
20
BEGIN failed--compilation aborted at
/root/.cpan/build/IO-Socket-SSL-1.07-p5DiXv/blib/lib/IO/Socket/SSL.pm line
20.
Compilation failed in require at t/compatibility.t line 5.
BEGIN failed--compilation aborted at t/compatibility.t line 5.
dubious
 Test returned status 9 (wstat 2304, 0x900)
t/core.............Use of uninitialized value in concatenation (.) or string
at /usr/lib/perl5/5.8.8/i386-linux/Scalar/Util.pm line 30.
 is only avaliable with the XS version at
/root/.cpan/build/IO-Socket-SSL-1.07-p5DiXv/blib/lib/IO/Socket/SSL.pm line
20
BEGIN failed--compilation aborted at
/root/.cpan/build/IO-Socket-SSL-1.07-p5DiXv/blib/lib/IO/Socket/SSL.pm line
20.
Compilation failed in require at t/core.t line 8.
BEGIN failed--compilation aborted at t/core.t line 8.
dubious
 Test returned status 9 (wstat 2304, 0x900)
t/dhe..............Use of uninitialized value in concatenation (.) or string
at /usr/lib/perl5/5.8.8/i386-linux/Scalar/Util.pm line 30.
 is only avaliable with the XS version at
/root/.cpan/build/IO-Socket-SSL-1.07-p5DiXv/blib/lib/IO/Socket/SSL.pm line
20
BEGIN failed--compilation aborted at
/root/.cpan/build/IO-Socket-SSL-1.07-p5DiXv/blib/lib/IO/Socket/SSL.pm line
20.
Compilation failed in require at t/dhe.t line 13.
BEGIN failed--compilation aborted at t/dhe.t line 13.
dubious
 Test returned status 9 (wstat 2304, 0x900)
t/nonblock.........Use of uninitialized value in concatenation (.) or string
at /usr/lib/perl5/5.8.8/i386-linux/Scalar/Util.pm line 30.
 is only avaliable with the XS version at
/root/.cpan/build/IO-Socket-SSL-1.07-p5DiXv/blib/lib/IO/Socket/SSL.pm line
20
BEGIN failed--compilation aborted at
/root/.cpan/build/IO-Socket-SSL-1.07-p5DiXv/blib/lib/IO/Socket/SSL.pm line
20.
Compilation failed in require at t/nonblock.t line 8.
BEGIN failed--compilation aborted at t/nonblock.t line 8.
dubious
 Test returned status 9 (wstat 2304, 0x900)
t/readline.........Use of uninitialized value in concatenation (.) or string
at /usr/lib/perl5/5.8.8/i386-linux/Scalar/Util.pm line 30.
 is only avaliable with the XS version at
/root/.cpan/build/IO-Socket-SSL-1.07-p5DiXv/blib/lib/IO/Socket/SSL.pm line
20
BEGIN failed--compilation aborted at
/root/.cpan/build/IO-Socket-SSL-1.07-p5DiXv/blib/lib/IO/Socket/SSL.pm line
20.
Compilation failed in require at t/readline.t line 16.
BEGIN failed--compilation aborted at t/readline.t line 16.
dubious
 Test returned status 9 (wstat 2304, 0x900)
t/sessions.........Use of uninitialized value in concatenation (.) or string
at /usr/lib/perl5/5.8.8/i386-linux/Scalar/Util.pm line 30.
 is only avaliable with the XS version at
/root/.cpan/build/IO-Socket-SSL-1.07-p5DiXv/blib/lib/IO/Socket/SSL.pm line
20
BEGIN failed--compilation aborted at
/root/.cpan/build/IO-Socket-SSL-1.07-p5DiXv/blib/lib/IO/Socket/SSL.pm line
20.
Compilation failed in require at t/sessions.t line 7.
BEGIN failed--compilation aborted at t/sessions.t line 7.
dubious
 Test returned status 9 (wstat 2304, 0x900)
t/startssl.........Use of uninitialized value in concatenation (.) or string
at /usr/lib/perl5/5.8.8/i386-linux/Scalar/Util.pm line 30.
 is only avaliable with the XS version at
/root/.cpan/build/IO-Socket-SSL-1.07-p5DiXv/blib/lib/IO/Socket/SSL.pm line
20
BEGIN failed--compilation aborted at
/root/.cpan/build/IO-Socket-SSL-1.07-p5DiXv/blib/lib/IO/Socket/SSL.pm line
20.
Compilation failed in require at t/startssl.t line 8.
BEGIN failed--compilation aborted at t/startssl.t line 8.
dubious
 Test returned status 9 (wstat 2304, 0x900)
t/sysread_write....Use of uninitialized value in concatenation (.) or string
at /usr/lib/perl5/5.8.8/i386-linux/Scalar/Util.pm line 30.
 is only avaliable with the XS version at
/root/.cpan/build/IO-Socket-SSL-1.07-p5DiXv/blib/lib/IO/Socket/SSL.pm line
20
BEGIN failed--compilation aborted at
/root/.cpan/build/IO-Socket-SSL-1.07-p5DiXv/blib/lib/IO/Socket/SSL.pm line
20.
Compilation failed in require at t/sysread_write.t line 11.
BEGIN failed--compilation aborted at t/sysread_write.t line 11.
dubious
 Test returned status 9 (wstat 2304, 0x900)
Failed Test Stat Wstat Total Fail List of Failed
-------------------------------------------------------------------------------
t/01loadmodule.t 9 2304 4 8 1-4
t/02settings.t 9 2304 ?? ?? ??
t/cert_no_file.t 9 2304 ?? ?? ??
t/compatibility.t 9 2304 ?? ?? ??
t/core.t 9 2304 ?? ?? ??
t/dhe.t 9 2304 ?? ?? ??
t/nonblock.t 9 2304 ?? ?? ??
t/readline.t 9 2304 ?? ?? ??
t/sessions.t 9 2304 ?? ?? ??
t/startssl.t 9 2304 ?? ?? ??
t/sysread_write.t 9 2304 ?? ?? ??
Failed 11/11 test scripts. 4/4 subtests failed.
Files=11, Tests=4, 2 wallclock secs ( 1.48 cusr + 0.19 csys = 1.67 CPU)
Failed 11/11 test programs. 4/4 subtests failed.
make: *** [test_dynamic] Error 9


--

Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
 Platform:
 osname=linux, osvers=2.6.17-4mdv, archname=i386-linux
 uname='linux n1.mandriva.com 2.6.17-4mdv #1 smp tue sep 5 10:29:51 edt 2006
i686 intel(r) xeon(tm) cpu 2.80ghz gnulinux '
 config_args='-des -Dinc_version_list=5.8.7 5.8.7/i386-linux 5.8.6
5.8.6/i386-linux 5.8.5 5.8.4 5.8.3 5.8.2 5.8.1 5.8.0 5.6.1 5.6.0
-Darchname=i386-linux -Dcc=gcc -Doptimize=-O2 -pipe -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fomit-frame-pointer -march=i586 -mtune=generic
-fasynchronous-unwind-tables -Dprefix=/usr -Dvendorprefix=/usr
-Dsiteprefix=/usr -Dsitebin=/usr/local/bin
-Dsiteman1dir=/usr/local/share/man/man1
-Dsiteman3dir=/usr/local/share/man/man3 -Dman3ext=3pm
-Dcf_by=Mandriva -Dmyhostname=localhost [EMAIL PROTECTED]
[EMAIL PROTECTED] -Dd_dosuid -Ud_csh -Duseshrplib'
 hint=recommended, useposix=true, d_sigaction=define
 usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
 useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
 use64bitint=undef use64bitall=undef uselongdouble=undef
 usemymalloc=n, bincompat5005=undef
 Compiler:
 cc='gcc', ccflags ='-fno-strict-aliasing -pipe
-Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
 optimize='-O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fomit-frame-pointer -march=i586 -mtune=generic
-fasynchronous-unwind-tables',
 cppflags='-fno-strict-aliasing -pipe -Wdeclaration-after-statement
-I/usr/local/include -I/usr/include/gdbm'
 ccversion='', gccversion='4.1.2 20070302 (prerelease) (4.1.2-1mdv2007.1)',
gccosandvers=''
 intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
 alignbytes=4, prototype=define
 Linker and Libraries:
 ld='gcc', ldflags =' -L/usr/local/lib'
 libpth=/usr/local/lib /lib /usr/lib
 libs=-lnsl -lndbm -lgdbm -ldl -lm -lcrypt -lutil -lc
 perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
 libc=/lib/libc-2.4.so, so=so, useshrplib=true, libperl=libperl.so
 gnulibc_version='2.4'
 Dynamic Linking:
 dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E
-Wl,-rpath,/usr/lib/perl5/5.8.8/i386-linux/CORE'
 cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib'



Reply via email to