[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Perl bindings on windows

From: Ben Reser <ben_at_reser.org>
Date: 2004-06-21 05:02:20 CEST

On Sun, Jun 20, 2004 at 05:58:54PM -0400, Russell Yanofsky wrote:
> Hi,
>
> I'm trying to get the perl bindings working on Windows. I made some changes
> in trunk rev 10039 that allow them to build and load, but when I try to use
> them I get the following errors (excerpted):
>
> 'BEGIN not safe after errors--compilation aborted at K:/Program
> Files/Perl/site/lib/SVN/Core.pm line 100.'
> 'Bareword "init_ra_libs" not allowed while "strict subs" in use at
> K:/Program Files/Perl/site/lib/SVN/Ra.pm line 64.'
>
>
> The .pm files referred to in the messages are the ones from:
>
> http://svn.collab.net/repos/svn/trunk/subversion/bindings/swig/perl/native/Core.pm
> http://svn.collab.net/repos/svn/trunk/subversion/bindings/swig/perl/native/Ra.pm
>
> Can anyone tell me what these errors mean or how to go about fixing them?

r10044 should fix this for you. For some reason the *nix Perl builds
don't see init_ra_libs as a bareword. Technically, if a sub is already
declared you can get away with this. I wonder if the XS stuff is doing
things a little different on Windows than on Perl, causing the symbol
not to be predeclared.

I think I got all the cases. Plus turned on strict for all our files
and tightened up what we turn strict off for.

Let me know if you run into more errors...

Thanks for taking the time to do this.

-- 
Ben Reser <ben@reser.org>
http://ben.reser.org
"Conscience is the inner voice which warns us somebody may be looking."
- H.L. Mencken
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Jun 21 05:03:15 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.