[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Perl 5.005 monco: risolto il problema... ;)



Ecco qui la soluzione. ;)

----- Forwarded message from "Darren/Torin/Who Ever..." <torin@daft.com> -----
From: "Darren/Torin/Who Ever..." <torin@daft.com>
Date: 24 Nov 2000 03:11:23 -0800
To: Marco Gaiarin <gaio@linux.it>
Subject: Re: Debian perl 5.005 missed some files?
Organization: Discordian Alliance For Teaching

Marco Gaiarin, in an immanent manifestation of deity, wrote:
>I wrote to you because i suppose that perl 5.005 missed some files.
>
>Some script stop working complain about the miss of some .ph files, so
>i've checked and:
>
>etta# /usr/lib/perl5# find . -name "errno.ph" -print
>./5.004/i386-linux/asm-alpha/errno.ph
>./5.004/i386-linux/asm-i386/errno.ph
>./5.004/i386-linux/asm-m68k/errno.ph
>./5.004/i386-linux/asm-mips/errno.ph
>./5.004/i386-linux/asm-powerpc/errno.ph
>./5.004/i386-linux/asm-sparc/errno.ph
>./5.004/i386-linux/errno.ph
>./5.004/i386-linux/linux/errno.ph

This is because Perl 5.005 now includes Errno.pm.  From the manpage:
       `Errno' defines and conditionally exports all the error
       constants defined in your system `errno.h' include file.
       It has a single export tag, `:POSIX', which will export
       all POSIX defined error numbers.

The *.ph files are generalized and usually have some brokenness.  Any
time a *.pm can replace it, this is good.  This has happened with
errno.ph.

If you'd like, I could put in an errno.ph that looks similar to
fcntl.ph:
if (!defined &_ERRNO_H) {
    use Carp;
    carp "Using Errno.pm instead.  Change your script to 'use Errno;' instead of require \"errno.ph\".\n";
    eval 'sub _ERRNO_H {1;}';
    use Errno;
}
1;

What this would do would be to cause all programs that require errno.ph
use Errno instead.  The problem with this is that the constants might
not be the same, so it might be better to just fix the scripts to use
Errno.pm

Darren
-- 
<torin@daft.com><http://www.daft.com/~torin/> <torin@debian.org><perl@slut.org>
Darren Stalder/2608 Second Ave, @282/Seattle, WA 98121-1212/USA/+1-206-ELF-LIPZ
@		     Make a little hot-tub in your soul.		      @

----- End forwarded message -----

-- 
Marco ``Gaio'' Gaiarin	 | Leandes di Pâs     (http://www.fvg.peacelink.it)
P.zza S. Tommaso, 20	 | Membro PLUTO		(http://www.pluto.linux.it)
Cimpello di Fiume Veneto | Lilliput BBS        (modem/fax +39-0434-56-1305)
33080 Pordenone (Italia) |  2:333/1016   61:3917/1   1907:393/104   91:13/1
Tel.   +39-0434-95-9555  | http://www.linux.it/~gaio/         gaio@linux.it



Reply to: