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

Error Message In File::Copy #16505

Open
p5pRT opened this issue Apr 12, 2018 · 4 comments
Open

Error Message In File::Copy #16505

p5pRT opened this issue Apr 12, 2018 · 4 comments

Comments

@p5pRT
Copy link

@p5pRT p5pRT commented Apr 12, 2018

Migrated from rt.perl.org#133102 (status was 'open')

Searchable as RT133102$

@p5pRT
Copy link
Author

@p5pRT p5pRT commented Apr 12, 2018

From @shawnhcorey

Created by @shawnhcorey

I got the following error message. Since it might be a future fatal
error, this seems rather important.

syswrite() is deprecated on :utf8 handles. This will be a fatal error
in Perl 5.30
at /home/shawn/perl5/perlbrew/perls/perl-5.26.1/lib/5.26.1/File/Copy.pm
line 179.

Perl Info

Flags:
    category=library
    severity=high
    module=File::Copy

Site configuration information for perl 5.26.1:

Configured by Shawn H Corey at Fri Mar	9 08:15:37 EST 2018.

Summary of my perl5 (revision 5 version 26 subversion 1) configuration:
   
  Platform:
    osname=linux
    osvers=4.4.0-116-generic
    archname=x86_64-linux-gnu-thread-multi
    uname='linux sage 4.4.0-116-generic #140~14.04.1-ubuntu smp fri feb
16 09:25:20 utc 2018 x86_64 x86_64 x86_64 gnulinux ' config_args='-de
-Dprefix=/home/shawn/perl5/perlbrew/perls/perl-5.26.1 -Dusethreads
-Duselargefiles -Duse64bitall -Dccflags=-DDEBIAN -Dcccdlflags=-fPIC
-Darchname=x86_64-linux-gnu -Dpager=/usr/bin/sensible-pager
-Doptimize=-O2 -Duseshrplib -Dcf_by=Shawn H Corey
-Dcf_email=SHCOREY@cpan.org
-Aeval:scriptdir=/home/shawn/perl5/perlbrew/perls/perl-5.26.1/bin'
hint=recommended useposix=true d_sigaction=define useithreads=define
usemultiplicity=define use64bitint=define use64bitall=define
uselongdouble=undef usemymalloc=n
    default_inc_excludes_dot=define
    bincompat5005=undef
  Compiler:
    cc='cc'
    ccflags ='-D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv
-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64' optimize='-O2'
cppflags='-D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv
-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
ccversion='' gccversion='4.8.4' gccosandvers=''
    intsize=4
    longsize=8
    ptrsize=8
    doublesize=8
    byteorder=12345678
    doublekind=3
    d_longlong=define
    longlongsize=8
    d_longdbl=define
    longdblsize=16
    longdblkind=3
    ivtype='long'
    ivsize=8
    nvtype='double'
    nvsize=8
    Off_t='off_t'
    lseeksize=8
    alignbytes=8
    prototype=define
  Linker and Libraries:
    ld='cc'
    ldflags =' -fstack-protector -L/usr/local/lib'
    libpth=/usr/local/lib /usr/lib/gcc/x86_64-linux-gnu/4.8/include-fixed /usr/include/x86_64-linux-gnu /usr/lib /lib/x86_64-linux-gnu /lib/../lib /usr/lib/x86_64-linux-gnu /usr/lib/../lib /lib
    libs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
    perllibs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
    libc=libc-2.19.so
    so=so
    useshrplib=true
    libperl=libperl.so
    gnulibc_version='2.19'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs
    dlext=so
    d_dlsymun=undef
    ccdlflags='-Wl,-E
-Wl,-rpath,/home/shawn/perl5/perlbrew/perls/perl-5.26.1/lib/5.26.1/x86_64-linux-gnu-thread-multi/CORE'
cccdlflags='-fPIC' lddlflags='-shared -O2 -L/usr/local/lib
-fstack-protector'

Locally applied patches:
    Devel::PatchPerl 1.48


@INC for perl 5.26.1:
    /home/shawn/perl5/lib
    /home/shawn/perl5/perlbrew/perls/perl-5.26.1/lib/site_perl/5.26.1/x86_64-linux-gnu-thread-multi
    /home/shawn/perl5/perlbrew/perls/perl-5.26.1/lib/site_perl/5.26.1
    /home/shawn/perl5/perlbrew/perls/perl-5.26.1/lib/5.26.1/x86_64-linux-gnu-thread-multi
    /home/shawn/perl5/perlbrew/perls/perl-5.26.1/lib/5.26.1


Environment for perl 5.26.1:
    HOME=/home/shawn
    LANG=en_CA.UTF-8
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/home/shawn/bin:/home/shawn/perl5/perlbrew/bin:/home/shawn/perl5/perlbrew/perls/perl-5.26.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:.
    PERL5LIB=/home/shawn/perl5/lib
    PERLBREW_BASHRC_VERSION=0.66
    PERLBREW_HOME=/home/shawn/.perlbrew
    PERLBREW_MANPATH=/home/shawn/perl5/perlbrew/perls/perl-5.26.1/man
    PERLBREW_PATH=/home/shawn/perl5/perlbrew/bin:/home/shawn/perl5/perlbrew/perls/perl-5.26.1/bin
    PERLBREW_PERL=perl-5.26.1
    PERLBREW_ROOT=/home/shawn/perl5/perlbrew
    PERLBREW_VERSION=0.66
    PERL_BADLANG (unset)
    SHELL=/bin/bash


-- 
Don't stop where the ink does.

	Shawn H Corey

@p5pRT
Copy link
Author

@p5pRT p5pRT commented Apr 16, 2018

From @iabyn

On Thu, Apr 12, 2018 at 05​:36​:38AM -0700, Shawn H Corey wrote​:

I got the following error message. Since it might be a future fatal
error, this seems rather important.

syswrite() is deprecated on :utf8 handles. This will be a fatal error
in Perl 5.30
at /home/shawn/perl5/perlbrew/perls/perl-5.26.1/lib/5.26.1/File/Copy.pm
line 179.

Can you provide a small, self-contained example program which reproduces
this issue?

--
Hofstadter's Law​: It always takes longer than you expect, even when you
take into account Hofstadter's Law.

@p5pRT
Copy link
Author

@p5pRT p5pRT commented Apr 16, 2018

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

@p5pRT
Copy link
Author

@p5pRT p5pRT commented Apr 16, 2018

From @shawnhcorey

#!/usr/bin/env perl

use strict;
use warnings;

use open qw( :encoding(UTF-8) :std );

use File​::Copy;

copy( $_, \*STDOUT ) for @​ARGV;

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

No branches or pull requests

2 participants