Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-z FH broken with Borland build [was: Smoke [5.9.3] 25867 FAIL(XF) MSWin32 WinXP/.Net SP2 (x86/2 cpu)] #8179

Closed
p5pRT opened this issue Oct 31, 2005 · 8 comments

Comments

@p5pRT
Copy link

p5pRT commented Oct 31, 2005

Migrated from rt.perl.org#37571 (status was 'resolved')

Searchable as RT37571$

@p5pRT
Copy link
Author

p5pRT commented Oct 31, 2005

From @pmqs

[Forgot to CC this to perlbug]

I've tracked the failure in ext/Compress/Zlib/t/22merge.t to an issue with
the '-z' file test operator in the Borland build.

Consider this code

use IO​::File;

my $out_file = "abd.txt";
unlink $out_file;

my $fh = new IO​::File ">$out_file"
  or die "# Cannot open $out_file​: $!";
 
close $fh;

$fh = new IO​::File "<$out_file"
  or die "# Cannot open $out_file​: $!";
 
print "exists\n" if -e $fh;
print "write\n" if -w $fh;
print "zero\n" if -z $fh;

my @​a = stat $fh;
print "stat size $a[7]\n";

With the Borland C compiler 5.5.1 I get

  exists
  write
  stat size 0

and with an MS compiler (using the same snapshot) I get the expected

  exists
  write
  zero
  stat size 0

Looks like even though stat could detect that the filehandle referenced an
empty file, there is a problem with '-z'.

Looking at the test harness, I see that t/op/stat.t tests -z with a
filename, but not with a filehandle.

Paul

-----Original Message-----
From​: Steve Hay [mailto​:steve.hay@​uk.radan.com]
Sent​: 29 October 2005 11​:35
To​: smokers-reports@​perl.org
Cc​: perl5-porters@​perl.org
Subject​: Smoke [5.9.3] 25867 FAIL(XF) MSWin32 WinXP/.Net SP2 (x86/2 cpu)

Automated smoke report for 5.9.3 patch 25867
Mugwump.uk.radan.com​: Intel(R) Pentium(R) 4 CPU 3.40GHz(~3391 MHz) (x86/2
cpu)
on MSWin32 - WinXP/.Net SP2
using bcc32 version 5.5.1
smoketime 11 hours 54 minutes (average 17 minutes 52 seconds)

Summary​: FAIL(XF)

O = OK F = Failure(s), extended report at the bottom
X = Failure(s) under TEST but not under harness
? = still running or test results not (yet) available
Build failures during​: - = unknown or N/A
c = Configure, m = make, M = make (after miniperl), t = make test-prep

25867 Configuration (common) -DCCTYPE=BORLAND -
DINST_TOP=$(INST_DRV)\Smoke\doesntexist
----------- ---------------------------------------------------------
F F
O O -Dusemymalloc
F F -Duselargefiles
F F -Duselargefiles -Dusemymalloc
F F -Duseithreads -Uuseimpsys
O O -Duseithreads -Uuseimpsys -Dusemymalloc
F F -Duseithreads -Uuseimpsys -Duselargefiles
F F -Duseithreads -Uuseimpsys -Duselargefiles -Dusemymalloc
X O -Duseithreads
F F -Duseithreads -Duselargefiles
F F -Accflags='-DPERL_COPY_ON_WRITE'
O X -Accflags='-DPERL_COPY_ON_WRITE' -Dusemymalloc
F F -Accflags='-DPERL_COPY_ON_WRITE' -Duselargefiles
F F -Accflags='-DPERL_COPY_ON_WRITE' -Duselargefiles -Dusemymalloc
F F -Accflags='-DPERL_COPY_ON_WRITE' -Duseithreads -Uuseimpsys
O O -Accflags='-DPERL_COPY_ON_WRITE' -Duseithreads -Uuseimpsys -
Dusemymalloc
F F -Accflags='-DPERL_COPY_ON_WRITE' -Duseithreads -Uuseimpsys -
Duselargefiles
F F -Accflags='-DPERL_COPY_ON_WRITE' -Duseithreads -Uuseimpsys -
Duselargefiles -Dusemymalloc
O O -Accflags='-DPERL_COPY_ON_WRITE' -Duseithreads
F F -Accflags='-DPERL_COPY_ON_WRITE' -Duseithreads -Duselargefiles
| +--------- -DDEBUGGING
+----------- no debugging

Locally applied patches​:
DEVEL

Failures​: (common-args) -DCCTYPE=BORLAND -
DINST_TOP=$(INST_DRV)\Smoke\doesntexist
[default]
../lib/locale.t.........................FAILED 99-103
Inconsistent test results (between TEST and harness)​:
../ext/Compress/Zlib/t/09gziphdr.t......dubious

[default] -DDEBUGGING
[default] -Duseithreads -Uuseimpsys
[default] -DDEBUGGING -Duseithreads -Uuseimpsys
[default] -Accflags='-DPERL_COPY_ON_WRITE'
[default] -DDEBUGGING -Accflags='-DPERL_COPY_ON_WRITE'
[default] -Accflags='-DPERL_COPY_ON_WRITE' -Duseithreads -Uuseimpsys
[default] -DDEBUGGING -Accflags='-DPERL_COPY_ON_WRITE' -Duseithreads -
Uuseimpsys
../lib/locale.t.........................FAILED 99-103

[default] -Duselargefiles
[default] -DDEBUGGING -Duselargefiles
[default] -DDEBUGGING -Duseithreads -Uuseimpsys -Duselargefiles
[default] -Accflags='-DPERL_COPY_ON_WRITE' -Duselargefiles
[default] -DDEBUGGING -Accflags='-DPERL_COPY_ON_WRITE' -Duselargefiles
[default] -Accflags='-DPERL_COPY_ON_WRITE' -Duseithreads -Uuseimpsys -
Duselargefiles
[default] -DDEBUGGING -Accflags='-DPERL_COPY_ON_WRITE' -Duseithreads -
Uuseimpsys -Duselargefiles
../ext/Compress/Zlib/t/22merge.t........FAILED 87-490
../lib/locale.t.........................FAILED 99-103

[default] -Duselargefiles -Dusemymalloc
[default] -DDEBUGGING -Duselargefiles -Dusemymalloc
[default] -Duseithreads -Uuseimpsys -Duselargefiles -Dusemymalloc
[default] -DDEBUGGING -Duseithreads -Uuseimpsys -Duselargefiles -
Dusemymalloc
[default] -Duseithreads -Duselargefiles
[default] -DDEBUGGING -Duseithreads -Duselargefiles
[default] -Accflags='-DPERL_COPY_ON_WRITE' -Duselargefiles -Dusemymalloc
[default] -DDEBUGGING -Accflags='-DPERL_COPY_ON_WRITE' -Duselargefiles -
Dusemymalloc
[default] -Accflags='-DPERL_COPY_ON_WRITE' -Duseithreads -Uuseimpsys -
Duselargefiles -Dusemymalloc
[default] -DDEBUGGING -Accflags='-DPERL_COPY_ON_WRITE' -Duseithreads -
Uuseimpsys -Duselargefiles -Dusemymalloc
[default] -Accflags='-DPERL_COPY_ON_WRITE' -Duseithreads -Duselargefiles
[default] -DDEBUGGING -Accflags='-DPERL_COPY_ON_WRITE' -Duseithreads -
Duselargefiles
../ext/Compress/Zlib/t/22merge.t........FAILED 87-490

[default] -Duseithreads -Uuseimpsys -Duselargefiles
../ext/Compress/Zlib/t/22merge.t........FAILED 87-490
../lib/locale.t.........................FAILED 99-103
Inconsistent test results (between TEST and harness)​:
../ext/Compress/Zlib/t/09gziphdr.t......dubious

[default] -Duseithreads
Inconsistent test results (between TEST and harness)​:
../lib/Benchmark.t......................dubious

[default] -DDEBUGGING -Accflags='-DPERL_COPY_ON_WRITE' -Dusemymalloc
Inconsistent test results (between TEST and harness)​:
../ext/Compress/Zlib/t/22merge.t........dubious
../ext/Compress/Zlib/t/09gziphdr.t......dubious

Compiler messages(bcc32)​:
Warning W8019 ..\op.c 4636​: Code has no effect in function
Perl_newCONSTSUB
Warning W8065 ..\perlio.c 196​: Call to function 'perlsio_binmode' with no
prototype in function PerlIO_binmode
Warning W8075 win32.c 1248​: Suspicious pointer conversion in function
win32_stat
Warning W8004 fcrypt.c 348​: 'in' is assigned a value that is never used in
function des_set_key
Warning W8004 fcrypt.c 505​: 'b' is assigned a value that is never used in
function des_fcrypt
Warning W8075 .\win32.c 1248​: Suspicious pointer conversion in function
win32_stat
Warning W8055 .\win32io.c 259​: Possible overflow in shift operation in
function PerlIOWin32_seek
Warning W8055 .\win32io.c 280​: Possible overflow in shift operation in
function PerlIOWin32_tell
Warning W8004 .\fcrypt.c 348​: 'in' is assigned a value that is never used
in function des_set_key
Warning W8004 .\fcrypt.c 505​: 'b' is assigned a value that is never used
in function des_fcrypt
Warning W8019 byterun.c 1072​: Code has no effect in function byterun
Warning W8008 crc32.c 232​: Condition is always true in function crc32
Warning W8066 crc32.c 242​: Unreachable code in function crc32
Warning W8004 deflate.c 352​: 'hash_head' is assigned a value that is never
used in function deflateSetDictionary
Warning W8008 deflate.c 1278​: Condition is always false in function
fill_window
Warning W8066 deflate.c 1279​: Unreachable code in function fill_window
Warning W8004 deflate.c 1669​: 'bflush' is assigned a value that is never
used in function deflate_slow
Warning W8019 Dumper.xs 573​: Code has no effect in function DD_dump
Warning W8019 Opcode.xs 274​: Code has no effect in function
XS_Opcode__safe_pkg_prep
Warning W8019 SDBM_File.c 129​: Code has no effect in function
XS_SDBM_File_FETCH
Warning W8019 SDBM_File.c 136​: Code has no effect in function
XS_SDBM_File_FETCH
Warning W8019 SDBM_File.c 164​: Code has no effect in function
XS_SDBM_File_STORE
Warning W8019 SDBM_File.c 168​: Code has no effect in function
XS_SDBM_File_STORE
Warning W8019 SDBM_File.c 220​: Code has no effect in function
XS_SDBM_File_DELETE
Warning W8019 SDBM_File.c 251​: Code has no effect in function
XS_SDBM_File_EXISTS
Warning W8019 SDBM_File.c 283​: Code has no effect in function
XS_SDBM_File_FIRSTKEY
Warning W8019 SDBM_File.c 308​: Code has no effect in function
XS_SDBM_File_NEXTKEY
Warning W8019 SDBM_File.c 315​: Code has no effect in function
XS_SDBM_File_NEXTKEY
Warning W8019 Storable.xs 1815​: Code has no effect in function scalar_call
Warning W8019 Storable.xs 5404​: Code has no effect in function
retrieve_code
Warning W8019 Storable.xs 5449​: Code has no effect in function
retrieve_code
Warning W8019 Storable.xs 5849​: Code has no effect in function retrieve
Warning W8019 Storable.xs 5890​: Code has no effect in function retrieve
Warning W8019 APItest.xs 42​: Code has no effect in function test_freeent
Warning W8019 Typemap.xs 87​: Code has no effect in function
XS_XS__Typemap_T_SV
Warning W8064 Win32.xs 503​: Call to function with no prototype in function
w32_RegisterServer
Warning W8064 Win32.xs 536​: Call to function with no prototype in function
w32_UnregisterServer
Warning W8075 .\win32.c 2737​: Suspicious pointer conversion in function
win32_fstat
Warning W8019 threads.xs 456​: Code has no effect in function
Perl_ithread_create
Warning W8019 threads.xs 462​: Code has no effect in function
Perl_ithread_create
Warning W8019 threads.xs 487​: Code has no effect in function
Perl_ithread_create
Warning W8019 threads.xs 656​: Code has no effect in function
Perl_ithread_join
Warning W8019 shared.xs 357​: Code has no effect in function
Perl_sharedsv_associate
Warning W8019 shared.xs 380​: Code has no effect in function
Perl_sharedsv_associate
Warning W8019 shared.xs 596​: Code has no effect in function
sharedsv_scalar_mg_dup
Warning W8019 shared.xs 737​: Code has no effect in function
sharedsv_elem_mg_dup
Warning W8019 shared.xs 806​: Code has no effect in function
sharedsv_array_mg_copy
Warning W8019 shared.xs 816​: Code has no effect in function
sharedsv_array_mg_dup
Warning W8019 shared.xs 915​: Code has no effect in function
XS_threads__shared__tie_PUSH
Warning W8019 shared.xs 935​: Code has no effect in function
XS_threads__shared__tie_UNSHIFT
Warning W8019 shared.xs 1288​: Code has no effect in function
XS_threads__shared_bless
Warning W8027 vdir.h 37​: Functions containing while are not expanded
inline
Warning W8027 vdir.h 47​: Functions containing while are not expanded
inline
Warning W8027 vdir.h 299​: Functions containing switch are not expanded
inline
Warning W8027 vdir.h 527​: Functions containing switch are not expanded
inline
Warning W8079 perlhost.h 616​: Mixing pointers to different 'char' types in
function PerlStdIOGetBase(IPerlStdIO *,FILE *)
Warning W8079 perlhost.h 649​: Mixing pointers to different 'char' types in
function PerlStdIOGetPtr(IPerlStdIO *,FILE *)
Warning W8079 perlhost.h 741​: Mixing pointers to different 'char' types in
function PerlStdIOSetPtr(IPerlStdIO *,FILE *,char *)

--
Report by Test​::Smoke v1.19_72 build 895 running on perl v5.9.3
(Reporter v0.026 / Smoker v0.026)

------------------------------------------------
Radan Computational Ltd.

The information contained in this message and any files transmitted with
it are confidential and intended for the addressee(s) only. If you have
received this message in error or there are any problems, please notify
the sender immediately. The unauthorized use, disclosure, copying or
alteration of this message is strictly forbidden. Note that any views or
opinions presented in this email are solely those of the author and do not
necessarily represent those of Radan Computational Ltd. The recipient(s)
of this message should check it and any attached files for viruses​: Radan
Computational will accept no liability for any damage caused by any virus
transmitted by this email.

 
 
 
___________________________________________________________
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http​://uk.messenger.yahoo.com

@p5pRT
Copy link
Author

p5pRT commented Nov 1, 2005

From @pmqs

Looks like Borland 5.5.1 has a 64-bit stat function but not a corresponding
64bit fstat. When USE_LARGE_FILES is enabled the 64-bit stat struct is used,
so when the 32-bit fstat is being called, perl passes it the 64-bit stat
structure to fill out. I'm surprised this hasn't caused the Borland build to
blow up before.

The enclosed patch hopefully sorts this out and provides a few tests to
check that -z with a filehandle actually works.

Paul

-----Original Message-----
From​: via RT [mailto​:paul.marquess@​ntlworld.comperlbug-followup@​perl.org]
Sent​: 31 October 2005 14​:34
To​: bugs-bitbucket@​rt.perl.org
Subject​: [perl #37571] -z FH broken with Borland build [was​: Smoke [5.9.3]
25867 FAIL(XF) MSWin32 WinXP/.Net SP2 (x86/2 cpu)]

# New Ticket Created by paul.marquess@​ntlworld.com
# Please include the string​: [perl #37571]
# in the subject line of all future correspondence about this issue.
# <URL​: https://rt-archive.perl.org/perl5/Ticket/Display.html?id=37571 >

[Forgot to CC this to perlbug]

I've tracked the failure in ext/Compress/Zlib/t/22merge.t to an issue with
the '-z' file test operator in the Borland build.

Consider this code

use IO​::File;

my $out_file = "abd.txt";
unlink $out_file;

my $fh = new IO​::File ">$out_file"
or die "# Cannot open $out_file​: $!";

close $fh;

$fh = new IO​::File "<$out_file"
or die "# Cannot open $out_file​: $!";

print "exists\n" if -e $fh;
print "write\n" if -w $fh;
print "zero\n" if -z $fh;

my @​a = stat $fh;
print "stat size $a[7]\n";

With the Borland C compiler 5.5.1 I get

exists
write
stat size 0

and with an MS compiler (using the same snapshot) I get the expected

exists
write
zero
stat size 0

Looks like even though stat could detect that the filehandle referenced an
empty file, there is a problem with '-z'.

Looking at the test harness, I see that t/op/stat.t tests -z with a
filename, but not with a filehandle.

Paul

-----Original Message-----
From​: Steve Hay [mailto​:steve.hay@​uk.radan.com]
Sent​: 29 October 2005 11​:35
To​: smokers-reports@​perl.org
Cc​: perl5-porters@​perl.org
Subject​: Smoke [5.9.3] 25867 FAIL(XF) MSWin32 WinXP/.Net SP2 (x86/2 cpu)

Automated smoke report for 5.9.3 patch 25867
Mugwump.uk.radan.com​: Intel(R) Pentium(R) 4 CPU 3.40GHz(~3391 MHz)
(x86/2
cpu)
on MSWin32 - WinXP/.Net SP2
using bcc32 version 5.5.1
smoketime 11 hours 54 minutes (average 17 minutes 52 seconds)

Summary​: FAIL(XF)

O = OK F = Failure(s), extended report at the bottom
X = Failure(s) under TEST but not under harness
? = still running or test results not (yet) available
Build failures during​: - = unknown or N/A
c = Configure, m = make, M = make (after miniperl), t = make test-prep

25867 Configuration (common) -DCCTYPE=BORLAND -
DINST_TOP=$(INST_DRV)\Smoke\doesntexist
----------- ---------------------------------------------------------
F F
O O -Dusemymalloc
F F -Duselargefiles
F F -Duselargefiles -Dusemymalloc
F F -Duseithreads -Uuseimpsys
O O -Duseithreads -Uuseimpsys -Dusemymalloc
F F -Duseithreads -Uuseimpsys -Duselargefiles
F F -Duseithreads -Uuseimpsys -Duselargefiles -Dusemymalloc
X O -Duseithreads
F F -Duseithreads -Duselargefiles
F F -Accflags='-DPERL_COPY_ON_WRITE'
O X -Accflags='-DPERL_COPY_ON_WRITE' -Dusemymalloc
F F -Accflags='-DPERL_COPY_ON_WRITE' -Duselargefiles
F F -Accflags='-DPERL_COPY_ON_WRITE' -Duselargefiles -
Dusemymalloc
F F -Accflags='-DPERL_COPY_ON_WRITE' -Duseithreads -Uuseimpsys
O O -Accflags='-DPERL_COPY_ON_WRITE' -Duseithreads -Uuseimpsys -
Dusemymalloc
F F -Accflags='-DPERL_COPY_ON_WRITE' -Duseithreads -Uuseimpsys -
Duselargefiles
F F -Accflags='-DPERL_COPY_ON_WRITE' -Duseithreads -Uuseimpsys -
Duselargefiles -Dusemymalloc
O O -Accflags='-DPERL_COPY_ON_WRITE' -Duseithreads
F F -Accflags='-DPERL_COPY_ON_WRITE' -Duseithreads -
Duselargefiles
| +--------- -DDEBUGGING
+----------- no debugging

Locally applied patches​:
DEVEL

Failures​: (common-args) -DCCTYPE=BORLAND -
DINST_TOP=$(INST_DRV)\Smoke\doesntexist
[default]
../lib/locale.t.........................FAILED 99-103
Inconsistent test results (between TEST and harness)​:
../ext/Compress/Zlib/t/09gziphdr.t......dubious

[default] -DDEBUGGING
[default] -Duseithreads -Uuseimpsys
[default] -DDEBUGGING -Duseithreads -Uuseimpsys
[default] -Accflags='-DPERL_COPY_ON_WRITE'
[default] -DDEBUGGING -Accflags='-DPERL_COPY_ON_WRITE'
[default] -Accflags='-DPERL_COPY_ON_WRITE' -Duseithreads -Uuseimpsys
[default] -DDEBUGGING -Accflags='-DPERL_COPY_ON_WRITE' -Duseithreads -
Uuseimpsys
../lib/locale.t.........................FAILED 99-103

[default] -Duselargefiles
[default] -DDEBUGGING -Duselargefiles
[default] -DDEBUGGING -Duseithreads -Uuseimpsys -Duselargefiles
[default] -Accflags='-DPERL_COPY_ON_WRITE' -Duselargefiles
[default] -DDEBUGGING -Accflags='-DPERL_COPY_ON_WRITE' -Duselargefiles
[default] -Accflags='-DPERL_COPY_ON_WRITE' -Duseithreads -Uuseimpsys -
Duselargefiles
[default] -DDEBUGGING -Accflags='-DPERL_COPY_ON_WRITE' -Duseithreads -
Uuseimpsys -Duselargefiles
../ext/Compress/Zlib/t/22merge.t........FAILED 87-490
../lib/locale.t.........................FAILED 99-103

[default] -Duselargefiles -Dusemymalloc
[default] -DDEBUGGING -Duselargefiles -Dusemymalloc
[default] -Duseithreads -Uuseimpsys -Duselargefiles -Dusemymalloc
[default] -DDEBUGGING -Duseithreads -Uuseimpsys -Duselargefiles -
Dusemymalloc
[default] -Duseithreads -Duselargefiles
[default] -DDEBUGGING -Duseithreads -Duselargefiles
[default] -Accflags='-DPERL_COPY_ON_WRITE' -Duselargefiles -Dusemymalloc
[default] -DDEBUGGING -Accflags='-DPERL_COPY_ON_WRITE' -Duselargefiles -
Dusemymalloc
[default] -Accflags='-DPERL_COPY_ON_WRITE' -Duseithreads -Uuseimpsys -
Duselargefiles -Dusemymalloc
[default] -DDEBUGGING -Accflags='-DPERL_COPY_ON_WRITE' -Duseithreads -
Uuseimpsys -Duselargefiles -Dusemymalloc
[default] -Accflags='-DPERL_COPY_ON_WRITE' -Duseithreads -Duselargefiles
[default] -DDEBUGGING -Accflags='-DPERL_COPY_ON_WRITE' -Duseithreads -
Duselargefiles
../ext/Compress/Zlib/t/22merge.t........FAILED 87-490

[default] -Duseithreads -Uuseimpsys -Duselargefiles
../ext/Compress/Zlib/t/22merge.t........FAILED 87-490
../lib/locale.t.........................FAILED 99-103
Inconsistent test results (between TEST and harness)​:
../ext/Compress/Zlib/t/09gziphdr.t......dubious

[default] -Duseithreads
Inconsistent test results (between TEST and harness)​:
../lib/Benchmark.t......................dubious

[default] -DDEBUGGING -Accflags='-DPERL_COPY_ON_WRITE' -Dusemymalloc
Inconsistent test results (between TEST and harness)​:
../ext/Compress/Zlib/t/22merge.t........dubious
../ext/Compress/Zlib/t/09gziphdr.t......dubious

Compiler messages(bcc32)​:
Warning W8019 ..\op.c 4636​: Code has no effect in function
Perl_newCONSTSUB
Warning W8065 ..\perlio.c 196​: Call to function 'perlsio_binmode' with
no
prototype in function PerlIO_binmode
Warning W8075 win32.c 1248​: Suspicious pointer conversion in function
win32_stat
Warning W8004 fcrypt.c 348​: 'in' is assigned a value that is never used
in
function des_set_key
Warning W8004 fcrypt.c 505​: 'b' is assigned a value that is never used
in
function des_fcrypt
Warning W8075 .\win32.c 1248​: Suspicious pointer conversion in function
win32_stat
Warning W8055 .\win32io.c 259​: Possible overflow in shift operation in
function PerlIOWin32_seek
Warning W8055 .\win32io.c 280​: Possible overflow in shift operation in
function PerlIOWin32_tell
Warning W8004 .\fcrypt.c 348​: 'in' is assigned a value that is never
used
in function des_set_key
Warning W8004 .\fcrypt.c 505​: 'b' is assigned a value that is never used
in function des_fcrypt
Warning W8019 byterun.c 1072​: Code has no effect in function byterun
Warning W8008 crc32.c 232​: Condition is always true in function crc32
Warning W8066 crc32.c 242​: Unreachable code in function crc32
Warning W8004 deflate.c 352​: 'hash_head' is assigned a value that is
never
used in function deflateSetDictionary
Warning W8008 deflate.c 1278​: Condition is always false in function
fill_window
Warning W8066 deflate.c 1279​: Unreachable code in function fill_window
Warning W8004 deflate.c 1669​: 'bflush' is assigned a value that is never
used in function deflate_slow
Warning W8019 Dumper.xs 573​: Code has no effect in function DD_dump
Warning W8019 Opcode.xs 274​: Code has no effect in function
XS_Opcode__safe_pkg_prep
Warning W8019 SDBM_File.c 129​: Code has no effect in function
XS_SDBM_File_FETCH
Warning W8019 SDBM_File.c 136​: Code has no effect in function
XS_SDBM_File_FETCH
Warning W8019 SDBM_File.c 164​: Code has no effect in function
XS_SDBM_File_STORE
Warning W8019 SDBM_File.c 168​: Code has no effect in function
XS_SDBM_File_STORE
Warning W8019 SDBM_File.c 220​: Code has no effect in function
XS_SDBM_File_DELETE
Warning W8019 SDBM_File.c 251​: Code has no effect in function
XS_SDBM_File_EXISTS
Warning W8019 SDBM_File.c 283​: Code has no effect in function
XS_SDBM_File_FIRSTKEY
Warning W8019 SDBM_File.c 308​: Code has no effect in function
XS_SDBM_File_NEXTKEY
Warning W8019 SDBM_File.c 315​: Code has no effect in function
XS_SDBM_File_NEXTKEY
Warning W8019 Storable.xs 1815​: Code has no effect in function
scalar_call
Warning W8019 Storable.xs 5404​: Code has no effect in function
retrieve_code
Warning W8019 Storable.xs 5449​: Code has no effect in function
retrieve_code
Warning W8019 Storable.xs 5849​: Code has no effect in function retrieve
Warning W8019 Storable.xs 5890​: Code has no effect in function retrieve
Warning W8019 APItest.xs 42​: Code has no effect in function test_freeent
Warning W8019 Typemap.xs 87​: Code has no effect in function
XS_XS__Typemap_T_SV
Warning W8064 Win32.xs 503​: Call to function with no prototype in
function
w32_RegisterServer
Warning W8064 Win32.xs 536​: Call to function with no prototype in
function
w32_UnregisterServer
Warning W8075 .\win32.c 2737​: Suspicious pointer conversion in function
win32_fstat
Warning W8019 threads.xs 456​: Code has no effect in function
Perl_ithread_create
Warning W8019 threads.xs 462​: Code has no effect in function
Perl_ithread_create
Warning W8019 threads.xs 487​: Code has no effect in function
Perl_ithread_create
Warning W8019 threads.xs 656​: Code has no effect in function
Perl_ithread_join
Warning W8019 shared.xs 357​: Code has no effect in function
Perl_sharedsv_associate
Warning W8019 shared.xs 380​: Code has no effect in function
Perl_sharedsv_associate
Warning W8019 shared.xs 596​: Code has no effect in function
sharedsv_scalar_mg_dup
Warning W8019 shared.xs 737​: Code has no effect in function
sharedsv_elem_mg_dup
Warning W8019 shared.xs 806​: Code has no effect in function
sharedsv_array_mg_copy
Warning W8019 shared.xs 816​: Code has no effect in function
sharedsv_array_mg_dup
Warning W8019 shared.xs 915​: Code has no effect in function
XS_threads__shared__tie_PUSH
Warning W8019 shared.xs 935​: Code has no effect in function
XS_threads__shared__tie_UNSHIFT
Warning W8019 shared.xs 1288​: Code has no effect in function
XS_threads__shared_bless
Warning W8027 vdir.h 37​: Functions containing while are not expanded
inline
Warning W8027 vdir.h 47​: Functions containing while are not expanded
inline
Warning W8027 vdir.h 299​: Functions containing switch are not expanded
inline
Warning W8027 vdir.h 527​: Functions containing switch are not expanded
inline
Warning W8079 perlhost.h 616​: Mixing pointers to different 'char' types
in
function PerlStdIOGetBase(IPerlStdIO *,FILE *)
Warning W8079 perlhost.h 649​: Mixing pointers to different 'char' types
in
function PerlStdIOGetPtr(IPerlStdIO *,FILE *)
Warning W8079 perlhost.h 741​: Mixing pointers to different 'char' types
in
function PerlStdIOSetPtr(IPerlStdIO *,FILE *,char *)

--
Report by Test​::Smoke v1.19_72 build 895 running on perl v5.9.3
(Reporter v0.026 / Smoker v0.026)

------------------------------------------------
Radan Computational Ltd.

The information contained in this message and any files transmitted with
it are confidential and intended for the addressee(s) only. If you have
received this message in error or there are any problems, please notify
the sender immediately. The unauthorized use, disclosure, copying or
alteration of this message is strictly forbidden. Note that any views or
opinions presented in this email are solely those of the author and do
not
necessarily represent those of Radan Computational Ltd. The recipient(s)
of this message should check it and any attached files for viruses​:
Radan
Computational will accept no liability for any damage caused by any
virus
transmitted by this email.

___________________________________________________________
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with
voicemail http​://uk.messenger.yahoo.com

@p5pRT
Copy link
Author

p5pRT commented Nov 1, 2005

From @pmqs

zero.patch
# This is a patch for perl-current.orig to update it to perl-current
# 
# To apply this patch:
# STEP 1: Chdir to the source directory.
# STEP 2: Run the 'applypatch' program with this patch file as input.
#
# If you do not have 'applypatch', it is part of the 'makepatch' package
# that you can fetch from the Comprehensive Perl Archive Network:
# http://www.perl.com/CPAN/authors/Johan_Vromans/makepatch-x.y.tar.gz
# In the above URL, 'x' should be 2 or higher.
#
# To apply this patch without the use of 'applypatch':
# STEP 1: Chdir to the source directory.
# STEP 2: Run the 'patch' program with this file as input.
#
#### End of Preamble ####

#### Patch data follows ####
diff -c 'perl-current.orig/t/op/stat.t' 'perl-current/t/op/stat.t'
Index: ./t/op/stat.t
*** ./t/op/stat.t	Thu Aug 11 09:02:11 2005
--- ./t/op/stat.t	Tue Nov  1 14:17:02 2005
***************
*** 9,15 ****
  use Config;
  use File::Spec;
  
! plan tests => 82;
  
  my $Perl = which_perl();
  
--- 9,15 ----
  use Config;
  use File::Spec;
  
! plan tests => 86;
  
  my $Perl = which_perl();
  
***************
*** 128,133 ****
--- 128,135 ----
  
  # truncate and touch $tmpfile.
  open(F, ">$tmpfile") || DIE("Can't open temp test file: $!");
+ ok(-z \*F,     '-z on empty filehandle');
+ ok(! -s \*F,   '   and -s');
  close F;
  
  ok(-z $tmpfile,     '-z on empty file');
***************
*** 137,142 ****
--- 139,149 ----
  print F "hi\n";
  close F;
  
+ open(F, "<$tmpfile") || DIE("Can't open temp test file: $!");
+ ok(!-z *F,     '-z on empty filehandle');
+ ok( -s *F,   '   and -s');
+ close F;
+ 
  ok(! -z $tmpfile,   '-z on non-empty file');
  ok(-s $tmpfile,     '   and -s');
  
diff -c 'perl-current.orig/win32/win32.c' 'perl-current/win32/win32.c'
Index: ./win32/win32.c
*** ./win32/win32.c	Fri Aug 12 16:53:20 2005
--- ./win32/win32.c	Tue Nov  1 14:21:16 2005
***************
*** 2734,2742 ****
       * for write operations, probably because it is opened for reading.
       * --Vadim Konovalov
       */
-     int rc = fstat(fd,sbufptr);
      BY_HANDLE_FILE_INFORMATION bhfi;
      if (GetFileInformationByHandle((HANDLE)_get_osfhandle(fd), &bhfi)) {
          sbufptr->st_mode &= 0xFE00;
          if (bhfi.dwFileAttributes & FILE_ATTRIBUTE_READONLY)
              sbufptr->st_mode |= (S_IREAD + (S_IREAD >> 3) + (S_IREAD >> 6));
--- 2734,2764 ----
       * for write operations, probably because it is opened for reading.
       * --Vadim Konovalov
       */
      BY_HANDLE_FILE_INFORMATION bhfi;
+ #if defined(WIN64) || defined(USE_LARGE_FILES)    
+     /* Borland 5.5.1 has a 64-bit stat, but only a 32-bit fstat */
+     struct stat tmp;
+     int rc = fstat(fd,&tmp);
+    
+     sbufptr->st_dev   = tmp.st_dev;
+     sbufptr->st_ino   = tmp.st_ino;
+     sbufptr->st_mode  = tmp.st_mode;
+     sbufptr->st_nlink = tmp.st_nlink;
+     sbufptr->st_uid   = tmp.st_uid;
+     sbufptr->st_gid   = tmp.st_gid;
+     sbufptr->st_rdev  = tmp.st_rdev;
+     sbufptr->st_size  = tmp.st_size;
+     sbufptr->st_atime = tmp.st_atime;
+     sbufptr->st_mtime = tmp.st_mtime;
+     sbufptr->st_ctime = tmp.st_ctime;
+ #else
+     int rc = fstat(fd,sbufptr);
+ #endif       
+ 
      if (GetFileInformationByHandle((HANDLE)_get_osfhandle(fd), &bhfi)) {
+ #if defined(WIN64) || defined(USE_LARGE_FILES)    
+         sbufptr->st_size = (bhfi.nFileSizeHigh << 32) + bhfi.nFileSizeLow ;
+ #endif
          sbufptr->st_mode &= 0xFE00;
          if (bhfi.dwFileAttributes & FILE_ATTRIBUTE_READONLY)
              sbufptr->st_mode |= (S_IREAD + (S_IREAD >> 3) + (S_IREAD >> 6));
#### End of Patch data ####

#### ApplyPatch data follows ####
# Data version        : 1.0
# Date generated      : Tue Nov  1 14:21:35 2005
# Generated by        : makepatch 2.00
# Recurse directories : Yes
# v 'patchlevel.h' 4744 1126373890 33060
# p 't/op/stat.t' 13196 1130854622 0100555
# p 'win32/win32.c' 124368 1130854876 0100444
#### End of ApplyPatch data ####

#### End of Patch kit [created: Tue Nov  1 14:21:35 2005] ####
#### Checksum: 124 4002 31545 ####

@p5pRT
Copy link
Author

p5pRT commented Nov 1, 2005

From @steve-m-hay

Paul Marquess wrote​:

Looks like Borland 5.5.1 has a 64-bit stat function but not a corresponding
64bit fstat. When USE_LARGE_FILES is enabled the 64-bit stat struct is used,
so when the 32-bit fstat is being called, perl passes it the 64-bit stat
structure to fill out. I'm surprised this hasn't caused the Borland build to
blow up before.

The enclosed patch hopefully sorts this out and provides a few tests to
check that -z with a filehandle actually works.

Excellent. I'll have a closer look tomorrow, but at a quick glance I
just wondered whether it is worth targetting the change at Borland if
that is the only compiler that needs it? There is a __BORLANDC__ define
in there, I think.

Btw, Sorry I haven't got back on your other Compress-Zlib change --

http​://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2005-10/msg00796.html

-- I'm still waiting to see the hoped-for white smoke, but my machine
seems to have taken to lingering over the smokes for nearly twice as
long as usual :-s I don't know why that is, but a manual test showed
that the previously failing Archive-Tar test now passes, so I think it
worked.


Radan Computational Ltd.

The information contained in this message and any files transmitted with it are confidential and intended for the addressee(s) only. If you have received this message in error or there are any problems, please notify the sender immediately. The unauthorized use, disclosure, copying or alteration of this message is strictly forbidden. Note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Radan Computational Ltd. The recipient(s) of this message should check it and any attached files for viruses​: Radan Computational will accept no liability for any damage caused by any virus transmitted by this email.

@p5pRT
Copy link
Author

p5pRT commented Nov 1, 2005

The RT System itself - Status changed from 'new' to 'open'

@p5pRT
Copy link
Author

p5pRT commented Nov 1, 2005

From @pmqs

From​: Steve Hay [mailto​:steve.hay@​uk.radan.com]

Paul Marquess wrote​:

Looks like Borland 5.5.1 has a 64-bit stat function but not a
corresponding
64bit fstat. When USE_LARGE_FILES is enabled the 64-bit stat struct is
used,
so when the 32-bit fstat is being called, perl passes it the 64-bit stat
structure to fill out. I'm surprised this hasn't caused the Borland
build to
blow up before.

The enclosed patch hopefully sorts this out and provides a few tests to
check that -z with a filehandle actually works.

Excellent. I'll have a closer look tomorrow, but at a quick glance I
just wondered whether it is worth targetting the change at Borland if
that is the only compiler that needs it? There is a __BORLANDC__ define
in there, I think.

It isn't obvious from the patch, but the code I changed is already wrapped
in a __BORLANDC__ define.

Btw, Sorry I haven't got back on your other Compress-Zlib change --

http​://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2005-
10/msg00796.html

-- I'm still waiting to see the hoped-for white smoke, but my machine
seems to have taken to lingering over the smokes for nearly twice as
long as usual :-s I don't know why that is, but a manual test showed
that the previously failing Archive-Tar test now passes, so I think it
worked.

No problem. I was able to do a before and after test on a win32 box myself,
so I *think* I have that one sorted.

Paul

@p5pRT
Copy link
Author

p5pRT commented Nov 2, 2005

From @steve-m-hay

Paul Marquess wrote​:

From​: Steve Hay [mailto​:steve.hay@​uk.radan.com]

Paul Marquess wrote​:

Looks like Borland 5.5.1 has a 64-bit stat function but not a

corresponding

64bit fstat. When USE_LARGE_FILES is enabled the 64-bit stat struct is

used,

so when the 32-bit fstat is being called, perl passes it the 64-bit stat
structure to fill out. I'm surprised this hasn't caused the Borland

build to

blow up before.

The enclosed patch hopefully sorts this out and provides a few tests to
check that -z with a filehandle actually works.

Excellent. I'll have a closer look tomorrow, but at a quick glance I
just wondered whether it is worth targetting the change at Borland if
that is the only compiler that needs it? There is a __BORLANDC__ define
in there, I think.

It isn't obvious from the patch, but the code I changed is already wrapped
in a __BORLANDC__ define.

Oh yes, I see now. Applied as change #25952. Thanks.

Btw, Sorry I haven't got back on your other Compress-Zlib change --

http​://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2005-
10/msg00796.html

-- I'm still waiting to see the hoped-for white smoke, but my machine
seems to have taken to lingering over the smokes for nearly twice as
long as usual :-s I don't know why that is, but a manual test showed
that the previously failing Archive-Tar test now passes, so I think it
worked.

No problem. I was able to do a before and after test on a win32 box myself,
so I *think* I have that one sorted.

White smoke finally appeared here (if you can see through the base64
smokescreen!)​:

http​://www.nntp.perl.org/group/perl.daily-build.reports/32783

so all is indeed now well :-)


Radan Computational Ltd.

The information contained in this message and any files transmitted with it are confidential and intended for the addressee(s) only. If you have received this message in error or there are any problems, please notify the sender immediately. The unauthorized use, disclosure, copying or alteration of this message is strictly forbidden. Note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Radan Computational Ltd. The recipient(s) of this message should check it and any attached files for viruses​: Radan Computational will accept no liability for any damage caused by any virus transmitted by this email.

@p5pRT p5pRT closed this as completed Nov 2, 2005
@p5pRT
Copy link
Author

p5pRT commented Nov 2, 2005

@steve-m-hay - Status changed from 'open' to 'resolved'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant