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

Re: Problem with SVN::Client perl module

From: Erik Huelsmann <e.huelsmann_at_gmx.net>
Date: 2003-12-17 10:35:17 CET

> So I've been playing with the Perl bindings lately, and I've been
> having some trouble with the SVN::Client module. When I import it I
> get the following error:
>
> $ cat foo.pl
> use SVN::Core;
> use SVN::Client;
> $ perl foo.pl
> Usage: svn_client_import(path,url,nonrecursive,ctx,pool); at foo.pl
> line 2.
> BEGIN failed--compilation aborted at foo.pl line 2.
> $
>
> The problem turns out to be in Base.pm. We redefine the 'import'
> function so that we set up the perl version of svn_client_import, and
> it blows up later on when we try to call the perl import subroutine.
> I'm currently using the following hack to work around it, but I'm
> pretty sure it's the wrong solution...

The only way I've successfully used the bindings is to use 'require' (which
doesn't use import) instead of 'use'.

HTH,

bye,

Erik.

-- 
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Dec 17 10:35:54 2003

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.