Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 May 2004 17:14:50 +0900
From:      Rob <stopspam@users.sourceforge.net>
To:        freebsd-stable@freebsd.org
Subject:   Re: Secure NFS (sNFS) on 4-Stable: has somebody succeeded?
Message-ID:  <40A1DCFA.1020506@users.sourceforge.net>
In-Reply-To: <20040512093625.599d2e86.cedric.devillers@script.jussieu.fr>
References:  <40A0C03B.5080906@users.sourceforge.net> <20040511183921.GA33494@xor.obsecurity.org> <40A17E44.7040900@users.sourceforge.net> <20040512093625.599d2e86.cedric.devillers@script.jussieu.fr>

next in thread | previous in thread | raw e-mail | index | archive | help
Cédric Devillers wrote:
> Hello,
> 
> you can test this command for verify what directories were include by
> default in the search path for modules   perl -e 'print "@INC\n";' 
> or perl -V
> 
> If "/usr/libdata/perl/5.00503/" was not in this variable (@INC), this is
> normal that perl does not find it.

Thanks a lot, I then can explore further (but please bear in mind that I
am a total dummy with perl).

Perl comes with the FreeBSD-4-Stable base system as:
   10 -r-xr-xr-x  3 root  wheel  10168 May 11 20:39 /usr/bin/perl
   10 -r-xr-xr-x  3 root  wheel  10168 May 11 20:39 /usr/bin/perl5
   10 -r-xr-xr-x  3 root  wheel  10168 May 11 20:39 /usr/bin/perl5.00503


Exactly same sizes!! Exactly same file?

When I do:

   $ perl -e 'print "@INC\n";'

I get no output at all. Why?

When I do:

   $ perl5 -e 'print "@INC\n";'
   /usr/local/lib/perl5/site_perl/5.005/i386-freebsd
   /usr/local/lib/perl5/site_perl/5.005
   .
   /usr/libdata/perl/5.00503/mach
   /usr/libdata/perl/5.00503
   $

The last line is the directory where I have: ExtUtils/MakeMaker.pm
So I suppose the perl path is okay.

Let me then go back to the secure NFS package, cd into problem directory
and type:

   $ perl5 Makefile.PL
   Checking if your kit is complete...
   Looks good
   Could not eval '
             package ExtUtils::MakeMaker::_version;
             no strict;

             local $VERSION;
             $VERSION=undef; do {
                 our $VERSION = '1.54';
             }; $VERSION
         ' in SNFS.pm: Can't modify subroutine entry in scalar assignment at (eval 6) line 7, at EOF
   $


SNFS.pm is a long file (script?) of 1680 lines. It says in the top few lines:

   package SNFS;

   use 5.006;
   use strict;
   use warnings;

   require Exporter;
   use AutoLoader qw(AUTOLOAD);

   our @ISA = qw(Exporter);

   [...zip...]


Why this is not working?

Is the difference between perl versions 5.005 and 5.006 so essential? Comparing
these version numbers, this looks more like a small bug fix to me.
However, if the difference is so important, then why are we still hanging on to
5.005 in the FreeBSD base system, without 'upgrading' that to 5.006 or whatever?

Thanks so much!

Rob.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?40A1DCFA.1020506>