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

problem on type globbing on solaris2.6 #795

Closed
p5pRT opened this issue Oct 29, 1999 · 6 comments
Closed

problem on type globbing on solaris2.6 #795

p5pRT opened this issue Oct 29, 1999 · 6 comments

Comments

@p5pRT
Copy link

p5pRT commented Oct 29, 1999

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

Searchable as RT1722$

@p5pRT
Copy link
Author

p5pRT commented Oct 29, 1999

From inakoshi@lm.fujitsu.co.jp

Type globbing doesn't seem work well on solaris2.6 system.

--- Example(foo.pl) START ----
#! /usr/local/bin/perl
sub foo {
  local(*_) = @​_;
  print $_;
}
$s = "subject\n";
foo(\$s);
--- Example(foo.pl) END ----

I expect the result​:
---
$ ./foo.pl
subject
$
---

The result really follows​:
---
$ ./foo.pl
$
---

I checked on a FreeBSD system, too.
---
$ uname -a
FreeBSD satan.lm.fujitsu.co.jp 2.2.8-RELEASE FreeBSD 2.2.8-RELEASE #0​: Mon Nov 30 06​:34​:08 GMT 1998 jkh@​time.cdrom.com​:/usr/src/sys/compile/GENERIC i386
$ perl -v

This is perl, version 5.005_02 built for i386-freebsd

Copyright 1987-1998, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5.0 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'. If you have access to the
Internet, point your browser at http​://www.perl.com/, the Perl Home Page.
$ ./foo.pl
subject
$
---

It seems foo.pl works as I expected.

Regards.
  Hiroya INAKOSHI <inakoshi@​lm.fujitsu.co.jp>

Perl Info


Site configuration information for perl 5.00503:

Configured by inakoshi at Fri Oct 29 14:23:50 JST 1999.

Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration:
  Platform:
    osname=solaris, osvers=2.6, archname=sun4-solaris-thread
    uname='sunos nights 5.6 generic_105181-14 sun4m sparc '
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=define useperlio=undef d_sfio=undef
  Compiler:
    cc='gcc', optimize='-O', gccversion=2.7.2.3
    cppflags='-D_REENTRANT -I/usr/local/include'
    ccflags ='-D_REENTRANT -I/usr/local/include'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    alignbytes=8, usemymalloc=y, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /usr/lib /usr/ccs/lib
    libs=-lsocket -lnsl -lgdbm -ldb -ldl -lm -lposix4 -lpthread -lc -lcrypt
    libc=/usr/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
    cccdlflags='-fPIC', lddlflags='-G -L/usr/local/lib'

Locally applied patches:
    


@INC for perl 5.00503:
    /usr/local/lib/perl5/5.00503/sun4-solaris-thread
    /usr/local/lib/perl5/5.00503
    /usr/local/lib/perl5/site_perl/5.005/sun4-solaris-thread
    /usr/local/lib/perl5/site_perl/5.005
    .


Environment for perl 5.00503:
    HOME=/home/inakoshi
    LANG=ja
    LANGUAGE (unset)
    LD_LIBRARY_PATH=/usr/local/lib:/usr/ccs/lib:/usr/lib:/usr/ucblib:/usr/openwin/lib:/usr/dt/lib:/opt/qt/lib:/opt/kde/lib::/pub2/oracle/orahome/lib:/home/inakoshi/lib
    LOGDIR (unset)
    PATH=/usr/local/jdk1.2.1/bin:/usr/local/ssl/bin:/usr/local/bin:/usr/local/mysql/bin:/usr/local/sbin:/usr/ccs/bin:/usr/bin:/usr/sbin:/usr/ucb:/etc:/usr/openwin/bin:/usr/dt/bin:/opt/qt/bin:/opt/kde/bin::/home/oracle/orahome/bin:/usr/netscape/communicator:/usr/netscape/suitespot/bin/https:/home/inakoshi/bin
    PERL_BADLANG (unset)
    SHELL=/usr/local/bin/bash

@p5pRT
Copy link
Author

p5pRT commented Oct 29, 1999

From [Unknown Contact. See original ticket]

Hiroya INAKOSHI <inakoshi@​lm.fujitsu.co.jp> wrote

Type globbing doesn't seem work well on solaris2.6 system.

Your examples work for me on Solaris 2.6. But I'm running a
non-threaded Perl. So the problem is probably to do with threading,
which is still experimental in perl5.005_03.

I suggest you try the lastest development release perl5.005_62, which
has had many threading bugs mended.

Mike Guy

@p5pRT
Copy link
Author

p5pRT commented Oct 30, 1999

From @chipdude

According to M.J.T. Guy​:

Hiroya INAKOSHI <inakoshi@​lm.fujitsu.co.jp> wrote

Type globbing doesn't seem work well on solaris2.6 system.

Your examples work for me on Solaris 2.6. But I'm running a
non-threaded Perl. So the problem is probably to do with threading,
which is still experimental in perl5.005_03.

I'll bet it's the lexical $_.
--
Chip Salzenberg - a.k.a. - <chip@​valinux.com>
  "I am the Lemon Zester of Destruction!" //MST3K

@p5pRT
Copy link
Author

p5pRT commented Nov 1, 1999

From [Unknown Contact. See original ticket]

Thanks for your advice.

From​: "M.J.T. Guy" <mjtg@​cus.cam.ac.uk>
Subject​: Re​: [ID 19991029.002] problem on type globbing on solaris2.6
Date​: Fri, 29 Oct 1999 11​:54​:39 +0100

Your examples work for me on Solaris 2.6. But I'm running a
non-threaded Perl. So the problem is probably to do with threading,
which is still experimental in perl5.005_03.

I suggest you try the lastest development release perl5.005_62, which
has had many threading bugs mended.

foo.pl work expectedly on perl-5.005_03 with no threading and
perl-5.005_62 with no threading. But perl-5.005_6w with threading was
same as perl-5.005_03 with threading.

Since I don't necessarily need threading now, I made up my mind using
perl-5.005_03.

Hiroya INAKOSHI

@p5pRT
Copy link
Author

p5pRT commented Dec 13, 2000

From The RT System itself

unable to duplicate under
5.005_03, 5.004_04, or
5.6.0 on solaris 2.6, 8.0,
or mandrake 7.2

@p5pRT
Copy link
Author

p5pRT commented Nov 28, 2003

From The RT System itself

threading bugs - check in 5.6

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

1 participant