delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/11/15/11:04:38

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <3FB64E73.5000305@ThePierianSpring.org>
Date: Sat, 15 Nov 2003 11:04:03 -0500
From: "Randy W. Sims" <RandyS AT ThePierianSpring DOT org>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6a) Gecko/20031028
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: [Fwd: Re: [Module::Build] Alzabo / Module::Build Cygwin installation
problem]

--------------090604070605050609020203
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

On 11/14/2003 5:42 PM, Randy W. Sims wrote:

 > There is still a problem to be worked out, but I'm not yet sure where 
the problem is. Can you tell post your perl & Cwd version.
 >
 > Dave, What versions of perl, Cwd, & M::B have you tested Alzabo with?
 >
 > This problem doesn't seem directly related to Cygwin. It definately 
should not be an error to 'use Cwd', so this has to be a problem in 
M::B, Cwd, or perl. Right???
 >

Ok, this might in fact be a Cygwin problem. Cygwin & Cwd. The following 
produces the error "Usage: Cwd::cwd() at Module.pm line 6." under Cygwin 
perl 5.8.x, but not under MSWin32 perl 5.6.x & 5.8.x. Also if I change 
Cwd to Carp I get no error. Can anyone test to make sure this does not 
produce errors on any other systems?

Thanks,
Randy.

-----><8-----
# Module.pm
package Module;

sub new {
   my $p = shift;
   $p->cwd;
}

sub cwd {
   require Cwd;
   Cwd::cwd;
}

1;
-----><8-----

-----><8-----
# test.pl
package MyModule;
use Module;
use base 'Module';
use Cwd;

package main;
MyModule->new;
-----><8-----



--------------090604070605050609020203
Content-Type: message/rfc822;
 name="Re: [Module::Build] Alzabo / Module::Build Cygwin installation problem"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="Re: [Module::Build] Alzabo / Module::Build Cygwin installation problem"

Message-ID: <3FB64CB5 DOT 4060802 AT ThePierianSpring DOT org>
Date: Sat, 15 Nov 2003 10:56:37 -0500
From: "Randy W. Sims" <RandyS AT ThePierianSpring DOT org>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6a) Gecko/20031028
X-Accept-Language: en-us, en
MIME-Version: 1.0
To:  module-build-general AT lists DOT sourceforge DOT net
CC:  perl5-porters AT perl DOT org,  alzabo-general AT lists DOT sourceforge DOT net, 
 autarch AT urth DOT org
Subject: Re: [Module::Build] Alzabo / Module::Build Cygwin installation problem
References: <3FAF853D DOT 4000202 AT urth DOT org> <3FB00F47 DOT 10400 AT ThePierianSpring DOT org> <3FB0ACC8 DOT 6030402 AT urth DOT org> <3FB30BB3 DOT 10405 AT ThePierianSpring DOT org> <3FB50640 DOT 2010908 AT urth DOT org> <3FB55A73 DOT 5060806 AT ThePierianSpring DOT org>
In-Reply-To: <3FB55A73 DOT 5060806 AT ThePierianSpring DOT org>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

On 11/14/2003 5:42 PM, Randy W. Sims wrote:
> There is still a problem to be worked out, but I'm not yet sure where 
> the problem is. Can you tell post your perl & Cwd version.
> 
> Dave, What versions of perl, Cwd, & M::B have you tested Alzabo with?
> 
> This problem doesn't seem directly related to Cygwin. It definately 
> should not be an error to 'use Cwd', so this has to be a problem in 
> M::B, Cwd, or perl. Right???
> 

Ok, this might in fact be a Cygwin problem. Cygwin & Cwd. The following 
produces the error "Usage: Cwd::cwd() at Module.pm line 6." under Cygwin 
perl 5.8.x, but not under MSWin32 perl 5.6.x & 5.8.x. Also if I change 
Cwd to Carp I get no error. Can anyone test to make sure this does not 
produce errors on any other systems?

Thanks,
Randy.

-----><8-----
# Module.pm
package Module;

sub new {
   my $p = shift;
   $p->cwd;
}

sub cwd {
   require Cwd;
   Cwd::cwd;
}

1;
-----><8-----

-----><8-----
# test.pl
package MyModule;
use Module;
use base 'Module';
use Cwd;

package main;
MyModule->new;
-----><8-----



--------------090604070605050609020203
Content-Type: text/plain; charset=us-ascii

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/
--------------090604070605050609020203--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019