Skip Menu |
 
rt.cpan.org will be shut down on March 1st, 2021.

This queue is for tickets about the Data-Alias CPAN distribution.

Report information
The Basics
Id: 67764
Status: resolved
Priority: 0/
Queue: Data-Alias

People
Owner: Nobody in particular
Requestors: RANDIR [...] cpan.org
Cc:
AdminCc:

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



Subject: Test suit failure on Freebsd
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 3023
Download (untitled) / with headers
text/plain 2.9k
Perl on freebsd, starting from 5.8.8, has a merged from 5.8.9 defined-or operator patch. But t/29_alias_dorassign.t test fails on it: prove t/29_alias_dorassign.t t/29_alias_dorassign.t .. Unsupported alias target at t/29_alias_dorassign.t line 25. # Looks like your test exited with 2 before it could output anything. t/29_alias_dorassign.t .. Dubious, test returned 2 (wstat 512, 0x200) Failed 12/12 subtests Test Summary Report ------------------- t/29_alias_dorassign.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: Bad plan. You planned 12 tests but ran 0. Files=1, Tests=0, 1 wallclock secs ( 0.02 usr 0.02 sys + 0.01 cusr 0.00 csys = 0.04 CPU) Result: FAIL This issue is present since 1.11 perl -V Summary of my perl5 (revision 5 version 8 subversion 8) configuration: Platform: osname=freebsd, osvers=7.2-stable, archname=amd64-freebsd uname='freebsd sigeon.ru 7.2-stable freebsd 7.2-stable #0: tue nov 3 08:27:31 msk 2009 root@sigeon.ru:usrobjusrsrcsyssigeon amd64 ' config_args='' hint=previous, useposix=true, d_sigaction=define usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=define use64bitall=define uselongdouble=undef usemymalloc=y, bincompat5005=undef Compiler: cc='cc', ccflags ='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include', optimize='-O -march=nocona -g -ggdb3', cppflags='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include' ccversion='', gccversion='4.2.1 20070719 [FreeBSD]', 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='cc', ldflags =' -Wl,-E -L/usr/local/lib' libpth=/usr/lib /usr/local/lib libs=-lm -lcrypt -lutil -lthr perllibs=-lm -lcrypt -lutil -lthr libc=, so=so, useshrplib=false, libperl=libperl.a gnulibc_version='' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' ' cccdlflags='-DPIC -fPIC', lddlflags='-shared -L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: MYMALLOC USE_64_BIT_ALL USE_64_BIT_INT USE_LARGE_FILES USE_PERLIO Locally applied patches: defined-or Built under freebsd Compiled at Sep 3 2010 01:37:51 @INC: /usr/local/lib/perl5/site_perl/5.8.8/amd64-freebsd /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.8/amd64-freebsd /usr/local/lib/perl5/5.8.8 .
From zefram [...] fysh.org Tue Apr 26 11: 16:07 2011
MIME-Version: 1.0
X-Spam-Status: No, score=-7.156 tagged_above=-99.9 required=10 tests=[AWL=-0.256, BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5] autolearn=ham
In-Reply-To: <rt-3.8.HEAD-18808-1303823896-1941.67764-4-0 [...] rt.cpan.org>
Content-Disposition: inline
X-Spam-Flag: NO
References: <RT-Ticket-67764 [...] rt.cpan.org> <rt-3.8.HEAD-18808-1303823896-1941.67764-4-0 [...] rt.cpan.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Message-ID: <20110426151553.GC5895 [...] lake.fysh.org>
Content-Type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
X-Spam-Score: -7.156
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id ACC9B24197A for <cpan-bug+Data-Alias [...] hipster.bestpractical.com>; Tue, 26 Apr 2011 11:16:07 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qjvce6gvO+-K for <cpan-bug+Data-Alias [...] hipster.bestpractical.com>; Tue, 26 Apr 2011 11:16:05 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 3522461E00F for <bug-Data-Alias [...] rt.cpan.org>; Tue, 26 Apr 2011 11:16:05 -0400 (EDT)
Received: (qmail 16897 invoked by uid 103); 26 Apr 2011 15:16:04 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 26 Apr 2011 15:16:04 -0000
Received: from lake.fysh.org (HELO lake.fysh.org) (81.94.195.195) by 16.mx.develooper.com (qpsmtpd/0.80/v0.80-19-gf52d165) with ESMTP; Tue, 26 Apr 2011 08:16:02 -0700
Received: from zefram by lake.fysh.org with local (Exim 4.69 #1 (Debian)) id 1QEjzV-0006WW-Eh; Tue, 26 Apr 2011 16:15:53 +0100
Delivered-To: cpan-bug+Data-Alias [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #67764] Test suit failure on Freebsd
Return-Path: <zefram [...] fysh.org>
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: cpan-bug+Data-Alias [...] hipster.bestpractical.com
X-RT-Mail-Extension: data-alias
Date: Tue, 26 Apr 2011 16:15:53 +0100
X-Spam-Level:
To: Sergey Aleynikov via RT <bug-Data-Alias [...] rt.cpan.org>
From: Zefram <zefram [...] fysh.org>
RT-Message-ID: <rt-3.8.HEAD-18809-1303830968-1145.67764-0-0 [...] rt.cpan.org>
Content-Length: 666
Download (untitled) / with headers
text/plain 666b
Thanks for the report. The problem is about how Data-Alias can detect, at compile time, whether the defined-or operator exists. Prior to 1.11 it looked for the presence of the pp_dorassign() function, but in Perl 5.13.9 pp_dorassign() got merged into pp_defined() so that test broke. From 1.11 Data-Alias has just looked at the Perl version number, but as you've found that breaks on your mutant 5.8. I don't see any way to reliably detect the existence of an opcode, independent of Perl version number, from within the C preprocessor. Do you have a way? If we can't come up with something clean, I may have to resort to a pre-compilation feature test. -zefram
MIME-Version: 1.0
In-Reply-To: <rt-3.8.HEAD-18809-1303830968-1145.67764-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
References: <RT-Ticket-67764 [...] rt.cpan.org> <rt-3.8.HEAD-18808-1303823896-1941.67764-4-0 [...] rt.cpan.org> <20110426151553.GC5895 [...] lake.fysh.org> <rt-3.8.HEAD-18809-1303830968-1145.67764-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-18805-1303836631-947.67764-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 255
Download (untitled) / with headers
text/plain 255b
I think that #ifdef pp_dorassign #define DA_HAVE_OP_DORASSIGN 1 #else #define DA_HAVE_OP_DORASSIGN (PERL_COMBI_VERSION >= 5009000) #endif should do the trick. BTW, 5.8.9 that officially has defined-or operator also seems to be cut off by current check.
From zefram [...] fysh.org Tue Apr 26 12: 56:41 2011
MIME-Version: 1.0
X-Spam-Status: No, score=-7.151 tagged_above=-99.9 required=10 tests=[AWL=-0.251, BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5] autolearn=ham
In-Reply-To: <rt-3.8.HEAD-18805-1303836632-1327.67764-5-0 [...] rt.cpan.org>
Content-Disposition: inline
X-Spam-Flag: NO
References: <RT-Ticket-67764 [...] rt.cpan.org> <rt-3.8.HEAD-18808-1303823896-1941.67764-4-0 [...] rt.cpan.org> <20110426151553.GC5895 [...] lake.fysh.org> <rt-3.8.HEAD-18809-1303830968-1145.67764-5-0 [...] rt.cpan.org> <rt-3.8.HEAD-18805-1303836632-1327.67764-5-0 [...] rt.cpan.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Message-ID: <20110426165630.GB1334 [...] lake.fysh.org>
Content-Type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
X-Spam-Score: -7.151
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 695ED61E010 for <cpan-bug+Data-Alias [...] hipster.bestpractical.com>; Tue, 26 Apr 2011 12:56:41 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sz0eKyDfn1OD for <cpan-bug+Data-Alias [...] hipster.bestpractical.com>; Tue, 26 Apr 2011 12:56:40 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id C8D4161E00F for <bug-Data-Alias [...] rt.cpan.org>; Tue, 26 Apr 2011 12:56:39 -0400 (EDT)
Received: (qmail 31600 invoked by uid 103); 26 Apr 2011 16:56:39 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 26 Apr 2011 16:56:39 -0000
Received: from lake.fysh.org (HELO lake.fysh.org) (81.94.195.195) by 16.mx.develooper.com (qpsmtpd/0.80/v0.80-19-gf52d165) with ESMTP; Tue, 26 Apr 2011 09:56:37 -0700
Received: from zefram by lake.fysh.org with local (Exim 4.69 #1 (Debian)) id 1QElYt-0000xS-0L; Tue, 26 Apr 2011 17:56:31 +0100
Delivered-To: cpan-bug+Data-Alias [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #67764] Test suit failure on Freebsd
Return-Path: <zefram [...] fysh.org>
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: cpan-bug+Data-Alias [...] hipster.bestpractical.com
X-RT-Mail-Extension: data-alias
Date: Tue, 26 Apr 2011 17:56:30 +0100
X-Spam-Level:
To: Sergey Aleynikov via RT <bug-Data-Alias [...] rt.cpan.org>
From: Zefram <zefram [...] fysh.org>
RT-Message-ID: <rt-3.8.HEAD-18810-1303837002-1877.67764-0-0 [...] rt.cpan.org>
Content-Length: 398
Download (untitled) / with headers
text/plain 398b
Sergey Aleynikov via RT wrote: Show quoted text
>#ifdef pp_dorassign >#define DA_HAVE_OP_DORASSIGN 1 >#else >#define DA_HAVE_OP_DORASSIGN (PERL_COMBI_VERSION >= 5009000) >#endif
That's an option, thanks. Show quoted text
>BTW, 5.8.9 that officially has defined-or operator >also seems to be cut off by current check.
Standard 5.8.9 does not have defined-or. Any 5.8.9 with defined-or is a mutant, just like your 5.8.8. -zefram
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-18811-1303925472-1449.67764-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 48
Fixed in Data-Alias-1.14, just uploaded to CPAN.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.