Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <3FB64E73.5000305@ThePierianSpring.org>
Date: Sat, 15 Nov 2003 11:04:03 -0500
From: "Randy W. Sims" <RandyS@ThePierianSpring.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@cygwin.com
Subject: [Fwd: Re: [Module::Build] Alzabo / Module::Build Cygwin installation
 problem]
Content-Type: multipart/mixed;
 boundary="------------090604070605050609020203"

--------------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.4060802@ThePierianSpring.org>
Date: Sat, 15 Nov 2003 10:56:37 -0500
From: "Randy W. Sims" <RandyS@ThePierianSpring.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@lists.sourceforge.net
CC:  perl5-porters@perl.org,  alzabo-general@lists.sourceforge.net, 
 autarch@urth.org
Subject: Re: [Module::Build] Alzabo / Module::Build Cygwin installation problem
References: <3FAF853D.4000202@urth.org> <3FB00F47.10400@ThePierianSpring.org> <3FB0ACC8.6030402@urth.org> <3FB30BB3.10405@ThePierianSpring.org> <3FB50640.2010908@urth.org> <3FB55A73.5060806@ThePierianSpring.org>
In-Reply-To: <3FB55A73.5060806@ThePierianSpring.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--

