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

FileHandle.pm problem with 'use 5.003_11' #1762

Closed
p5pRT opened this issue Apr 4, 2000 · 3 comments
Closed

FileHandle.pm problem with 'use 5.003_11' #1762

p5pRT opened this issue Apr 4, 2000 · 3 comments

Comments

@p5pRT
Copy link

p5pRT commented Apr 4, 2000

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

Searchable as RT3016$

@p5pRT
Copy link
Author

p5pRT commented Apr 4, 2000

From cvernon@dpc203.delta-air.com

Created by chris.vernon@delta-air.com

I have a file called ret.pl with the following code​:
  # Find the current path to the script and set the library include path to include that path
  use FindBin qw($Bin);
  use lib "$Bin";

This script runs fine until I execute it from a setuid 'C' program that invokes ret.pl with 'perl -UT'.

When the script is invoked with this method I get the following error​:
  Can't call method "import" without a package or object reference at /opt/ecm_tools/lib/perl5/5.00503/FileHandle.pm line 3.
  BEGIN failed--compilation aborted at /opt/ecm_tools/lib/perl5/5.00503/FileHandle.pm line 3.
  BEGIN failed--compilation aborted at ./../ecm_ret/bin/hp-ux-b-11-00/../../ret.pl line 20.

If I remark out the line 'use 5.003_11' in FileHandle.pm, then everything works fine.

Perl Info


Site configuration information for perl 5.00503:

Configured by ecmbuild at Mon Mar 27 16:11:18 EST 2000.

Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration:
  Platform:
    osname=hpux, osvers=11.00, archname=PA-RISC2.0
    uname='hp-ux ddo200 b.11.00 a 9000820 2015090746 two-user license '
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef useperlio=undef d_sfio=undef
  Compiler:
    cc='gcc', optimize='-O', gccversion=2.95.1 19990816 (release)
    cppflags='-D_HPUX_SOURCE -I/usr/local/include'
    ccflags ='-D_HPUX_SOURCE -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=8
    alignbytes=8, usemymalloc=y, prototype=define
  Linker and Libraries:
    ld='ld', ldflags =''
    libpth=/lib/pa1.1 /lib /usr/lib /usr/ccs/lib /usr/local/lib
    libs=-lnsl -lnm -lndbm -ldld -lm -lc -lndir -lcrypt
    libc=/lib/libc.sl, so=sl, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_hpux.xs, dlext=sl, d_dlsymun=undef, ccdlflags='-Wl,-E -Wl,-B,deferred '
    cccdlflags='-fpic', lddlflags='-b'

Locally applied patches:
    


@INC for perl 5.00503:
    /opt/ecm_tools/lib/perl5/5.00503/PA-RISC2.0
    /opt/ecm_tools/lib/perl5/5.00503
    /opt/ecm_tools/lib/perl5/site_perl/5.005/PA-RISC2.0
    /opt/ecm_tools/lib/perl5/site_perl/5.005
    .


Environment for perl 5.00503:
    HOME (unset)
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/usr/bin:/usr/sbin:/opt/local/bin:/usr/bin/X11:/usr/ucb:/ucb:/opt/perf/bin:/opt/ecm_tools/bin:/net/coreip-vob1-server/export/vobstore/POLICY/scripts:/usr/atria/bin:.
    PERL_BADLANG (unset)
    SHELL=/usr/bin/sh


@p5pRT
Copy link
Author

p5pRT commented Jul 7, 2003

From ziggy@panix.com

Module version upgrade problem. Not a bug.

@p5pRT
Copy link
Author

p5pRT commented Jul 7, 2003

ziggy@panix.com - Status changed from 'open' to 'resolved'

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