-
Notifications
You must be signed in to change notification settings - Fork 571
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
Sys::Hostname causes bogus "ambiguous system..." warning #686
Comments
From @jimavThe program: use Sys::Hostname (); generates a warning "Ambiguous call resolved as CORE::system()..." In the real application the code is not as strange as the above example: This is a new problem with 5.005_03. _02 does not have it. -Jim Avera (jima@hal.com) Site configuration information for perl 5.00503: Configured by avera at Tue Oct 5 15:28:43 PDT 1999. Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration: Locally applied patches: @INC for perl 5.00503: Environment for perl 5.00503: |
From @gsarOn Tue, 05 Oct 1999 16:08:46 PDT, Jim Avera wrote:
Can't reproduce this on my copy of Solaris (see config below). Sounds Sarathy
Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration: Characteristics of this binary (from libperl): |
From [Unknown Contact. See original ticket]I was a little quick on the h2ph as possible solution as I ran it and was use Sys::Hostname; and produces the output as expected. use Sys::Hostname (); is the original example. Now, if I change the original snippet to #!/usr/local/bin/perl -w use Sys::Hostname (); it works without the warning. as does #!/usr/local/bin/perl -w use Sys::Hostname(); This strikes me as odd, but I imagine I'm missing something here. e. |
From @tamiasOn Wed, Oct 06, 1999 at 10:57:24AM -0500, Elaine -HFB- Ashton wrote:
Sys::Hostname::hostname() requires syscall.ph. If syscall.ph is required (If syscall.ph doesn't work, it tries requiring sys/syscall.ph and Ronald |
From @jimavElaine -HFB- Ashton <elaine@chaos.wustl.edu> wrote: That's because &hostname is no longer called before the system("...") line When hostname() is called it executes `` require "syscall.ph" '' in --> h2ph "caused" the problem by creating a sub definition with the If the 'system' #define is never actually used then it can simply However, if it *is* ever needed, then it (and any other conflicting -Jim P.S. This patch makes h2ph (5.005_03) omit functions from _h2ph_pre.ph *** h2ph Tue Oct 5 15:33:04 1999 |
From @gsarOn Wed, 06 Oct 1999 15:22:41 PDT, Jim Avera wrote:
We don't know that for all keywords. But I guess removing them
I think the better approach would be to rework h2ph to emit *.pm
This won't do the correct thing. It reflects the names of the pp_* Sarathy |
Migrated from rt.perl.org#1582 (status was 'resolved')
Searchable as RT1582$
The text was updated successfully, but these errors were encountered: