Skip Menu |

This queue is for tickets about the DBI CPAN distribution.

Report information
The Basics
Id: 62672
Status: resolved
Priority: 0/
Queue: DBI

People
Owner: Nobody in particular
Requestors: mkmetw [...] hotmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: warning / error messages when using DBI::ProxyServer 0.3005
Date: Wed, 3 Nov 2010 21:37:49 +0530
To: <bug-dbi [...] rt.cpan.org>
From: Manoj Kumar <mkmetw [...] hotmail.com>
Hello, I am trying to use DBI::ProxyServer module. To run the ProxyServer, I use following code - use strict; use warnings; use diagnostics; use DBI::ProxyServer; DBI::ProxyServer::main(@ARGV); When I connect to this ProxyServer, the server prints following message - Can't locate package DBI::db for @DBI::ProxyServer::db::ISA at D:/PROGRAMS/perl/site/5.13.0/lib/Net/Daemon.pm line 473 (#1) (W syntax) The @ISA array contained the name of another package that doesn't seem to exist. Can't locate package DBI::st for @DBI::ProxyServer::st::ISA at D:/PROGRAMS/perl/site/5.13.0/lib/Net/Daemon.pm line 473 (#1) Can't locate package DBI::dr for @DBI::ProxyServer::dr::ISA at D:/PROGRAMS/perl/site/5.13.0/lib/Net/Daemon.pm line 473 (#1) I am using perl 5, version 13, subversion 0 (v5.13.0) built for MSWin32-x86-multi-thread. My DBI::ProxyServer version is 0.3005 and DBI version is 1.615. If I uncomment line 29 (require DBI) in ProxyServer.pm, these error / warning messages disappear. Also, if I remove "use diagnostics" from my code, the messages disappear. Thanks a lot. Regards, Manoj
Thanks for the report. There's a note in the ProxyServer.pm file that "require DBI;" is deferred until the AcceptVersion() is called "to aid threading". I don't know why, or if that's still relevant. Try adding -MDBI to the perl command line that starts the server and let me know if that works. Please also include your perl -V output. Thanks.
Subject: RE: [rt.cpan.org #62672] warning / error messages when using DBI::ProxyServer 0.3005
Date: Mon, 22 Nov 2010 20:21:53 +0530
To: <bug-dbi [...] rt.cpan.org>
From: Manoj Kumar <mkmetw [...] hotmail.com>
Yes, it works (no error / warning messages) if I start the DBI Proxy Server with -MDBI. Summary of my perl5 (revision 5 version 13 subversion 0) configuration: Platform: osname=MSWin32, osvers=5.1, archname=MSWin32-x86-multi-thread uname='' config_args='undef' hint=recommended, useposix=true, d_sigaction=undef useithreads=define, usemultiplicity=define useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef use64bitint=undef, use64bitall=undef, uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cl', ccflags ='-nologo -GF -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO', optimize='-MD -Zi -DNDEBUG -O1', cppflags='-DWIN32' ccversion='14.00.50727.762', gccversion='', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=8 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='__int64', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='link', ldflags ='-nologo -nodefaultlib -debug -opt:ref,icf -libpath:"d:\programs\perl\5.13.0\lib\CORE" -machine:x86 "/manifestdependency:type='Win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'"' libpth=C:\Programs\Microsoft_Visual_Studio_8\VC\lib libs= oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib uuid.lib ws2_32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib comctl32.lib msvcrt.lib perllibs= oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib uuid.lib ws2_32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib comctl32.lib msvcrt.lib libc=msvcrt.lib, so=dll, useshrplib=true, libperl=perl513.lib gnulibc_version='' Dynamic Linking: dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' ' cccdlflags=' ', lddlflags='-dll -nologo -nodefaultlib -debug -opt:ref,icf -libpath:"d:\programs\perl\5.13.0\lib\CORE" -machine:x86 "/manifestdependency:type='Win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'"' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV PERL_IMPLICIT_CONTEXT PERL_IMPLICIT_SYS PERL_MALLOC_WRAP PL_OP_SLAB_ALLOC USE_ITHREADS USE_LARGE_FILES USE_PERLIO USE_PERL_ATOF USE_SITECUSTOMIZE Built under MSWin32 Compiled at May 17 2010 15:24:45 @INC: D:/PROGRAMS/perl/site/5.13.0/lib D:/PROGRAMS/perl/5.13.0/lib . Thanks a lot. Regards,
Fixed to require DBI at compile-time.