[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]
[perl #55550] 'once' warnings from xs modules in perl 5.10.0
# New Ticket Created by Chia-liang Kao
# Please include the string: [perl #55550]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=55550 >
This is a bug report for perl from clkao@bestpractical.com,
generated with the help of perlbug 1.39 running under perl 5.10.0.
-----------------------------------------------------------------
[Please describe your issue here]
I noticed that in perl 5.10 i get an 'once' warning if i load an xs
module who does a get_sv in boot.
Specifically this is the Subversion perl bindings generated by swig.
I wonder if it makes sense for that warning to come out from an xs
module which supposedly knows what it is doing ? in that case the
following patch would silent the warnings from dynaloader. might need
the similar fix to xsloader if this is the sane way to do it.
--- perl510.orig/ext/DynaLoader/DynaLoader.pm 2008-06-06
20:11:29.000000000 +0800
+++ perl510/ext/DynaLoader/DynaLoader.pm 2008-06-06
22:06:44.000000000 +0800
@@ -226,6 +226,7 @@
# See comment block above
push(@dl_shared_objects, $file); # record files loaded
+ no warnings 'once';
&$xs(@args);
}
[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
category=core
severity=medium
---
This perlbug was built using Perl 5.10.0 - Sat May 31 12:52:22 EDT 2008
It is being executed now by Perl 5.10.0 - Tue Jun 3 15:34:03 CST 2008.
Site configuration information for perl 5.10.0:
Configured by clkao at Tue Jun 3 15:34:03 CST 2008.
Summary of my perl5 (revision 5 version 10 subversion 0) configuration:
Platform:
osname=darwin, osvers=9.2.2, archname=darwin-thread-multi-2level
uname='darwin mtl.local 9.2.2 darwin kernel version 9.2.2: tue
mar 4 21:17:34 pst 2008; root:xnu-1228.4.31~1release_i386 i386 i386 '
config_args='-Dprefix=/Users/clkao/perl5.10 -DDEBUGGING -
Duseithreads -d'
hint=recommended, useposix=true, d_sigaction=define
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='cc', ccflags ='-fno-common -DPERL_DARWIN -no-cpp-precomp -
DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include -I/opt/
local/include',
optimize='-O3 -g',
cppflags='-no-cpp-precomp -fno-common -DPERL_DARWIN -no-cpp-
precomp -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include -I/
opt/local/include'
ccversion='', gccversion='4.0.1 (Apple Inc. build 5465)',
gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=4, nvtype='double', nvsize=8,
Off_t='off_t', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='env MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags =' -L/usr/
local/lib -L/opt/local/lib'
libpth=/usr/local/lib /opt/local/lib /usr/lib
libs=-ldbm -ldl -lm -lutil -lc
perllibs=-ldl -lm -lutil -lc
libc=/usr/lib/libc.dylib, so=dylib, useshrplib=false,
libperl=libperl.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags=' -bundle -undefined dynamic_lookup -L/
usr/local/lib -L/opt/local/lib'
Locally applied patches:
DEVEL
---
@INC for perl 5.10.0:
/Users/clkao/perl5.10/lib/5.10.0/darwin-thread-multi-2level
/Users/clkao/perl5.10/lib/5.10.0
/Users/clkao/perl5.10/lib/site_perl/5.10.0/darwin-thread-
multi-2level
/Users/clkao/perl5.10/lib/site_perl/5.10.0
.
---
Environment for perl 5.10.0:
DYLD_LIBRARY_PATH (unset)
HOME=/Users/clkao
LANG (unset)
LANGUAGE (unset)
LD_LIBRARY_PATH (unset)
LOGDIR (unset)
PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/
opt/local/bin:/opt/local/sbin
PERL_BADLANG (unset)
SHELL=/bin/bash
[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]