Perl / perl5

🐪 The Perl programming language
https://dev.perl.org/perl5/
Other
1.85k stars 527 forks source link

syntax error in File/Glob.pm line 1 #1160

Closed p5pRT closed 20 years ago

p5pRT commented 24 years ago

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

Searchable as RT2126$

p5pRT commented 24 years ago

From marc@gimp.org

Created by root@cerebro.laendle

The error that has already been reported a bit differently (AFAICR)\, is still there with the current snapshot\, rendering file globbing unusable​:

perl -e 'do { glob $_ }' syntax error at /usr/app/lib/perl5/i686-linux/File/Glob.pm line 1\, near "package File​::Glob" Compilation failed in require at -e line 1. BEGIN failed--compilation aborted at -e line 1. [Exit 255]

A real-world example is from gimp-perl​:

  my @​dirs = map {glob $_} split /\s+/\, $dirs;

Perl Info ``` Site configuration information for perl 5.00564: Configured by root at Fri Feb 4 01:53:47 CET 2000. Summary of my perl5 (revision 5.0 version 5 subversion 63) configuration: Platform: osname=linux, osvers=2.2, archname=i686-linux uname='linux cerebro 2.2.14 #47 smp sat jan 22 19:37:04 cet 2000 i686 ' config_args='' hint=previous, useposix=true, d_sigaction=define usethreads=undef use5005threads=undef useithreads=undef usesocks=undef useperlio=undef d_sfio=undef use64bits=undef uselargefiles=undef usemultiplicity=undef Compiler: cc='gcc', optimize='-O2 -mpentiumpro', gccversion=pgcc-2.95.2 19991024 (release) cppflags='-Dbool=char -DHAS_BOOL -I/usr/local/include' ccflags ='-Dbool=char -DHAS_BOOL -I/usr/local/include' stdchar='char', d_stdstdio=define, usevfork=false intsize=4, longsize=4, ptrsize=4, doublesize=8 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12 alignbytes=4, usemymalloc=y, prototype=define Linker and Libraries: ld='gcc', ldflags =' -L/usr/local/lib' libpth=/usr/local/lib /lib /usr/lib libs=-ldl -lm -lc -lcrypt libc=/lib/libc-2.1.2.so, so=so, useshrplib=false, libperl=libperl.a Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic' cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib' Locally applied patches: @INC for perl 5.00564: /usr/app/lib/perl5/i686-linux /usr/app/lib/perl5 /usr/app/lib/i686-linux /usr/app/lib/perl5 . Environment for perl 5.00564: HOME=/root LANG (unset) LANGUAGE (unset) LC_CTYPE=de LD_LIBRARY_PATH (unset) LOGDIR (unset) PATH=/root/ms::/usr/app/FM556_linux/bin:/root/cc/dejagnu/bin:/usr/app/qt/bin/:.:/root/s:/bin:/sbin:/usr/bin:/usr/sbin:/usr/app/bin:/usr/app/sbin:/usr/X11/bin:/usr/games:/usr/maple/bin:/usr/kde/bin:/usr/gnome/bin:/opt/bin:/localvol/usr/app/insure++/bin.linux PERLDB_OPTS=ornaments=0 PERL_BADLANG (unset) SHELL=/bin/bash -----==- | ----==-- _ | ---==---(_)__ __ ____ __ Marc Lehmann +-- --==---/ / _ \/ // /\ \/ / pcg@opengroup.org |e| -=====/_/_//_/\_,_/ /_/\_\ XX11-RIPE --+ The choice of a GNU generation | | ```
p5pRT commented 24 years ago

From @gsar

On Wed\, 09 Feb 2000 01​:16​:53 +0100\, Marc Lehmann wrote​:

This is a bug report for perl from root@​cerebro.laendle\, generated with the help of perlbug 1.27 running under perl 5.00564. [...] perl -e 'do { glob $_ }' syntax error at /usr/app/lib/perl5/i686-linux/File/Glob.pm line 1\, near "package File​:: Glob" Compilation failed in require at -e line 1. BEGIN failed--compilation aborted at -e line 1. [Exit 255]

This is fixed in v5.5.650.

Sarathy gsar@​ActiveState.com