You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Ma...@gfa-net.de on 2005/09/27 08:38:53 UTC
Problem using perl bindings under cygwin
Hi there,
I want to use the subversion perl bindings under cygwin but always get an
Win32 error. If I e. g. want to call svn-pusher (from Shlomi Fish's
SVN::Pusher, based on Gerlad Richter's SVN::Push) I get the following
output:
$ svn-pusher
Can't load '/usr/lib/perl5/site_perl/5.8/cygwin/auto/SVN/_Core/_Core.dll'
for module SVN::_Core: dlopen, Win32 error 127 at
/usr/lib/perl5/5.8/cygwin/DynaLoader.pm line 230.
at /usr/lib/perl5/site_perl/5.8/cygwin/SVN/Base.pm line 59
BEGIN failed--compilation aborted at
/usr/lib/perl5/site_perl/5.8/cygwin/SVN/Core.pm line 5.
Compilation failed in require at /usr/bin/svn-pusher line 7.
BEGIN failed--compilation aborted at /usr/bin/svn-pusher line 7.
The error occurs when the _Core.dll should be loaded (as far as I know
error 127 means that a function cannot be found). This happens with the
"official" subversion 1.2.3 for cygwin (thanks for the patches, Max) as
well as if I build subversion 1.3.0 (trunk revision 16227) with perl
bindings by using the "official" cygwin patches.
Any idea what I do wrong or what I can do to make programs using the
subversion perl-bindings run?
By the way, when making svn-pusher I get the following warning:
$ perl Makefile.PL
Warning: prerequisite SVN::Core 0.37.0 not found.
Writing Makefile for SVN::Pusher
SVN::Core 0.37.0 must be manually installed at Makefile.PL line 22.
Is this the cause of the problem or is this only a problem of MakeMaker
which can't find my SVN::Core module?
Thanks four your help.
Mathias
Re: Problem using perl bindings under cygwin
Posted by Ma...@gfa-net.de.
"Max Bowsher" <ma...@ukf.net> wrote:
> Mathias.Weinert@gfa-net.de wrote:
> > "Max Bowsher" <ma...@ukf.net> wrote:
> >> Mathias.Weinert@gfa-net.de wrote:
> >>> $ svn-pusher
> >>> Can't load
> > '/usr/lib/perl5/site_perl/5.8/cygwin/auto/SVN/_Core/_Core.dll'
> >>> for module SVN::_Core: dlopen, Win32 error 127 at
> >>> /usr/lib/perl5/5.8/cygwin/DynaLoader.pm line 230.
> >>> at /usr/lib/perl5/site_perl/5.8/cygwin/SVN/Base.pm line 59
> >>> BEGIN failed--compilation aborted at
> >>> /usr/lib/perl5/site_perl/5.8/cygwin/SVN/Core.pm line 5.
> >>> Compilation failed in require at /usr/bin/svn-pusher line 7.
> >>> BEGIN failed--compilation aborted at /usr/bin/svn-pusher line 7.
> >>>
> >>> The error occurs when the _Core.dll should be loaded (as far as I
know
> >>> error 127 means that a function cannot be found). This happens with
the
> >>> "official" subversion 1.2.3 for cygwin (thanks for the patches, Max)
as
> >>> well as if I build subversion 1.3.0 (trunk revision 16227) with perl
> >>> bindings by using the "official" cygwin patches.
> >>>
> >>> Any idea what I do wrong or what I can do to make programs using the
> >>> subversion perl-bindings run?
> >>
> >> My tentative suggestion is that you are having problems with mixed
> >> versions
> >> of Subversion DLLs being found.
> >> Try ensuring that you really only have a single version of
> >> Cygwin-Subversion installed, or setting $PATH to just "/usr/bin", to
test
> >> this hypothesis.
>
> > $ echo $PATH
> > /usr/bin
> >
> > $ perl -MSVN::Core -e'print "ok\n";'
> > Can't load
'/usr/lib/perl5/site_perl/5.8/cygwin/auto/SVN/_Core/_Core.dll'
> > for module SVN::_Core: dlopen, Win32 error 126 at /usr/lib/perl5/5
> > .8/cygwin/DynaLoader.pm line 230.
> > at /usr/lib/perl5/site_perl/5.8/cygwin/SVN/Base.pm line 59
> > BEGIN failed--compilation aborted at
> > /usr/lib/perl5/site_perl/5.8/cygwin/SVN/Core.pm line 5.
> > Compilation failed in require.
> > BEGIN failed--compilation aborted.
> >
> > Do you have any other idea what I can do?
>
> First, don't send HTML email that formats your entire message in a
*really*
> tiny font! :-)
>
> Second, run this:
> $ cygcheck /usr/lib/perl5/site_perl/5.8/cygwin/auto/SVN/_Core/_Core.dll
>
> to see which of the DLLs that _Core.dll depends on are inexplicably
missing
> from your system.
>
Now it works...
Your first suggestion was absolutely right. I had some old DLLs hanging
around in /usr/bin but wanted to use the ones in /usr/local/bin
(nevertheless cygcheck only showed my references to the ones in
/usr/local/bin). Perhaps this was even the cause for some other problems I
encounter from time to time.
Thanks for your fast and reliable help!
Unfortunately I don't know how to send better formatted (or let's say
unformatted) mails to you at the moment but I will look after it.
Mathias
Re: Problem using perl bindings under cygwin
Posted by Max Bowsher <ma...@ukf.net>.
Mathias.Weinert@gfa-net.de wrote:
> "Max Bowsher" <ma...@ukf.net> wrote:
>> Mathias.Weinert@gfa-net.de wrote:
>>> $ svn-pusher
>>> Can't load
> '/usr/lib/perl5/site_perl/5.8/cygwin/auto/SVN/_Core/_Core.dll'
>>> for module SVN::_Core: dlopen, Win32 error 127 at
>>> /usr/lib/perl5/5.8/cygwin/DynaLoader.pm line 230.
>>> at /usr/lib/perl5/site_perl/5.8/cygwin/SVN/Base.pm line 59
>>> BEGIN failed--compilation aborted at
>>> /usr/lib/perl5/site_perl/5.8/cygwin/SVN/Core.pm line 5.
>>> Compilation failed in require at /usr/bin/svn-pusher line 7.
>>> BEGIN failed--compilation aborted at /usr/bin/svn-pusher line 7.
>>>
>>> The error occurs when the _Core.dll should be loaded (as far as I know
>>> error 127 means that a function cannot be found). This happens with the
>>> "official" subversion 1.2.3 for cygwin (thanks for the patches, Max) as
>>> well as if I build subversion 1.3.0 (trunk revision 16227) with perl
>>> bindings by using the "official" cygwin patches.
>>>
>>> Any idea what I do wrong or what I can do to make programs using the
>>> subversion perl-bindings run?
>>
>> My tentative suggestion is that you are having problems with mixed
>> versions
>> of Subversion DLLs being found.
>> Try ensuring that you really only have a single version of
>> Cygwin-Subversion installed, or setting $PATH to just "/usr/bin", to test
>> this hypothesis.
> $ echo $PATH
> /usr/bin
>
> $ perl -MSVN::Core -e'print "ok\n";'
> Can't load '/usr/lib/perl5/site_perl/5.8/cygwin/auto/SVN/_Core/_Core.dll'
> for module SVN::_Core: dlopen, Win32 error 126 at /usr/lib/perl5/5
> .8/cygwin/DynaLoader.pm line 230.
> at /usr/lib/perl5/site_perl/5.8/cygwin/SVN/Base.pm line 59
> BEGIN failed--compilation aborted at
> /usr/lib/perl5/site_perl/5.8/cygwin/SVN/Core.pm line 5.
> Compilation failed in require.
> BEGIN failed--compilation aborted.
>
> Do you have any other idea what I can do?
First, don't send HTML email that formats your entire message in a *really*
tiny font! :-)
Second, run this:
$ cygcheck /usr/lib/perl5/site_perl/5.8/cygwin/auto/SVN/_Core/_Core.dll
to see which of the DLLs that _Core.dll depends on are inexplicably missing
from your system.
Max.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Problem using perl bindings under cygwin
Posted by Ma...@gfa-net.de.
"Max Bowsher" <ma...@ukf.net> wrote:
> Mathias.Weinert@gfa-net.de wrote:
> > Hi there,
> >
> > I want to use the subversion perl bindings under cygwin but always get
an
> > Win32 error. If I e. g. want to call svn-pusher (from Shlomi Fish's
> > SVN::Pusher, based on Gerlad Richter's SVN::Push) I get the following
> > output:
> >
> > $ svn-pusher
> > Can't load
'/usr/lib/perl5/site_perl/5.8/cygwin/auto/SVN/_Core/_Core.dll'
> > for module SVN::_Core: dlopen, Win32 error 127 at
> > /usr/lib/perl5/5.8/cygwin/DynaLoader.pm line 230.
> > at /usr/lib/perl5/site_perl/5.8/cygwin/SVN/Base.pm line 59
> > BEGIN failed--compilation aborted at
> > /usr/lib/perl5/site_perl/5.8/cygwin/SVN/Core.pm line 5.
> > Compilation failed in require at /usr/bin/svn-pusher line 7.
> > BEGIN failed--compilation aborted at /usr/bin/svn-pusher line 7.
> >
> > The error occurs when the _Core.dll should be loaded (as far as I know
> > error 127 means that a function cannot be found). This happens with
the
> > "official" subversion 1.2.3 for cygwin (thanks for the patches, Max)
as
> > well as if I build subversion 1.3.0 (trunk revision 16227) with perl
> > bindings by using the "official" cygwin patches.
> >
> > Any idea what I do wrong or what I can do to make programs using the
> > subversion perl-bindings run?
>
> My tentative suggestion is that you are having problems with mixed
versions
> of Subversion DLLs being found.
> Try ensuring that you really only have a single version of
Cygwin-Subversion
> installed, or setting $PATH to just "/usr/bin", to test this hypothesis.
>
> > By the way, when making svn-pusher I get the following warning:
> >
> > $ perl Makefile.PL
> > Warning: prerequisite SVN::Core 0.37.0 not found.
> > Writing Makefile for SVN::Pusher
> > SVN::Core 0.37.0 must be manually installed at Makefile.PL line 22.
> >
> > Is this the cause of the problem or is this only a problem of
MakeMaker
> > which can't find my SVN::Core module?
>
> Same problem, manifesting a different error message.
>
> A simple test case not involving SVN::Pusher:
>
> $ perl -MSVN::Core -e'print "ok\n";'
>
$ echo $PATH
/usr/bin
$ perl -MSVN::Core -e'print "ok\n";'
Can't load '/usr/lib/perl5/site_perl/5.8/cygwin/auto/SVN/_Core/_Core.dll'
for module SVN::_Core: dlopen, Win32 error 126 at /usr/lib/perl5/5
.8/cygwin/DynaLoader.pm line 230.
at /usr/lib/perl5/site_perl/5.8/cygwin/SVN/Base.pm line 59
BEGIN failed--compilation aborted at
/usr/lib/perl5/site_perl/5.8/cygwin/SVN/Core.pm line 5.
Compilation failed in require.
BEGIN failed--compilation aborted.
Do you have any other idea what I can do?
Mathias
Re: Problem using perl bindings under cygwin
Posted by Max Bowsher <ma...@ukf.net>.
Mathias.Weinert@gfa-net.de wrote:
> Hi there,
>
> I want to use the subversion perl bindings under cygwin but always get an
> Win32 error. If I e. g. want to call svn-pusher (from Shlomi Fish's
> SVN::Pusher, based on Gerlad Richter's SVN::Push) I get the following
> output:
>
> $ svn-pusher
> Can't load '/usr/lib/perl5/site_perl/5.8/cygwin/auto/SVN/_Core/_Core.dll'
> for module SVN::_Core: dlopen, Win32 error 127 at
> /usr/lib/perl5/5.8/cygwin/DynaLoader.pm line 230.
> at /usr/lib/perl5/site_perl/5.8/cygwin/SVN/Base.pm line 59
> BEGIN failed--compilation aborted at
> /usr/lib/perl5/site_perl/5.8/cygwin/SVN/Core.pm line 5.
> Compilation failed in require at /usr/bin/svn-pusher line 7.
> BEGIN failed--compilation aborted at /usr/bin/svn-pusher line 7.
>
> The error occurs when the _Core.dll should be loaded (as far as I know
> error 127 means that a function cannot be found). This happens with the
> "official" subversion 1.2.3 for cygwin (thanks for the patches, Max) as
> well as if I build subversion 1.3.0 (trunk revision 16227) with perl
> bindings by using the "official" cygwin patches.
>
> Any idea what I do wrong or what I can do to make programs using the
> subversion perl-bindings run?
My tentative suggestion is that you are having problems with mixed versions
of Subversion DLLs being found.
Try ensuring that you really only have a single version of Cygwin-Subversion
installed, or setting $PATH to just "/usr/bin", to test this hypothesis.
> By the way, when making svn-pusher I get the following warning:
>
> $ perl Makefile.PL
> Warning: prerequisite SVN::Core 0.37.0 not found.
> Writing Makefile for SVN::Pusher
> SVN::Core 0.37.0 must be manually installed at Makefile.PL line 22.
>
> Is this the cause of the problem or is this only a problem of MakeMaker
> which can't find my SVN::Core module?
Same problem, manifesting a different error message.
A simple test case not involving SVN::Pusher:
$ perl -MSVN::Core -e'print "ok\n";'
Max.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org