You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Greg Matheson <la...@ms.chinmin.edu.tw> on 2004/10/27 09:27:01 UTC

perl bindings with 1.1.1 on Fedora Core 2

I can't build the perl bindings on a Fedora Core 2 machine in
subversion-1.1.1, even though they do build on another Core 1
machine. 

All the tests, running make check-swig-pl, fail with errors like
that in 

Linkname: Subversion Users: subversion-perl-1.0.6-1.rh90.i386.rpm broken??
URL: http://www.contactor.se/~dast/svnusers/archive-2004-09/1684.shtml
 
ie 'Cannot load ... auto/SVN/_Core.so'

The perl Dynaloader man page suggests this is likely to happen if
there is a problem with the C code, but even when I blow away
both the swig and subversion build directories and build swig and
subversion again, I get the same result.

On both machines I have perl-5.8.3. Assuming this is user error,
what user error could this be? Environmental variables? Not
specifying perl path configuring swig or subversion? Running make
in my svk directory, before having svn ready? Wrong permissions
in SVN/? Having svn-1.1.1 already installed?  Trying with fsfs,
rather than bdb. (I don't have bdb, or at least configure can't
find it.)

What did I miss? Ludicrous errors welcome.

--
Greg Matheson, Taiwan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: perl bindings with 1.1.1 on Fedora Core 2

Posted by Greg Matheson <la...@ms.chinmin.edu.tw>.
On Wed, 27 Oct 2004, Greg Matheson wrote:

> I can't build the perl bindings on a Fedora Core 2 machine in
> subversion-1.1.1, even though they do build on another Core 1
> machine. 

I wrote that I had solved this by installing a swig package, but
I spoke too soon.

Although the perl tests passed with 'make swig-pl', SVN::Core
was still not there:

[greg@momotaro subversion-1.1.0]$ perl -MSVN::Core -e 0
Can't load '/usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi/auto/SVN/_Core/_Core.so' for module SVN::_Core: libsvn_client-1.so.0: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.8.3/i386-linux-thread-multi/DynaLoader.pm line 229.
 at /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi/SVN/Base.pm line 59
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi/SVN/Core.pm line 5.
Compilation failed in require.
BEGIN failed--compilation aborted.

So I tried again with 1.1.0.

:-( And it's still the same error. All the perl tests are successful, but 
no SVN::Core.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: perl bindings with 1.1.1 on Fedora Core 2

Posted by Greg Matheson <la...@ms.chinmin.edu.tw>.
On Wed, 27 Oct 2004, Greg Matheson wrote:

> I can't build the perl bindings on a Fedora Core 2 machine in
> subversion-1.1.1, even though they do build on another Core 1
> machine. 

I installed a swig 1.3.19-6.1.i386 package with yum and now it
builds OK. I must have installed swig wrong, even though I did
install from swig-1.3.19.tar.gz, just running ./configure, make,
make install.

-- 
greg matheson, taiwan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: perl bindings with 1.1.1 on Fedora Core

Posted by Greg Matheson <la...@ms.chinmin.edu.tw>.
On Tue, 16 Nov 2004, Greg Matheson wrote:

> I start again from the start with ./configure --prefix=/usr/local
> building both swig-1.3.19 and building subversion-1.1.1,
> and 'perl -MSVN::Core -e 0' works ONLY if I symlink the libsvn_*.so.0
> files in /usr/local/lib to /usr/lib!

The trick is to specify /usr/local/lib in /etc/ld.so.conf and to
run ldconfig.

I was able to build the perl bindings for 1.1.1 on FC3 using the
supplied swig-1.3.21.

On FC2, I was unable to build them with the supplied swig-1.3.19
or my-built swig-1.3.21, but I was able to with my-built
swig-1.3.19. This could of course be user error.

-- 
Greg Matheson, Taiwan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: perl bindings with 1.1.1 on Fedora Core

Posted by Greg Matheson <la...@ms.chinmin.edu.tw>.
On Mon, 15 Nov 2004, DrBean wrote:

> On Sat, Nov 13, 2004 at 02:30:35PM +0800, Greg Matheson wrote:

> > > And the perl bindings continue to fail on Fedora Core 3 for me, using
> > > the supplied swig-1.3.21 and self-built 1.3.19.

> It was not finding the libraries in /usr/local/lib! Why could that be?

I start again from the start with ./configure --prefix=/usr/local
building both swig-1.3.19 and building subversion-1.1.1,
and 'perl -MSVN::Core -e 0' works ONLY if I symlink the libsvn_*.so.0
files in /usr/local/lib to /usr/lib!

This is a runtime error. Could it be not swig or subversion's
fault but something in FC2,3, like perl, or ld? This would be
consistent with my not having had problems building 1.1.1 on FC1.

I don't have the knowledge of link loading to ascribe blame here.
I guess I need to study some more.

-- 
Greg Matheson, Taiwan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: perl bindings with 1.1.1 on Fedora Core

Posted by DrBean <la...@ms.chinmin.edu.tw>.
On Sat, Nov 13, 2004 at 02:30:35PM +0800, Greg Matheson wrote:

> > And the perl bindings continue to fail on Fedora Core 3 for me, using
> > the supplied swig-1.3.21 and self-built 1.3.19.

> > > All the tests, running make check-swig-pl, fail with errors like
> 
> > > 'Cannot load ... auto/SVN/_Core.so'

It was not finding the libraries in /usr/local/lib! Why could that be?

I first built swig-1.3.19, and then built svn as a static executable and 
made symbolic links in /usr/lib
to libswigpl.so and a bunch of libsvn_*.so.0 files, and although 
the tests are still failing, no error messages at all, and specifically
none about loading libraries, are being output.

And "-perl -MSVN::Core -e 'print $SVN::Core::VERSION'" returns 1.1.1

Mmmh.

--
Greg Matheson, Taiwan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: perl bindings with 1.1.1 on Fedora Core

Posted by Greg Matheson <la...@ms.chinmin.edu.tw>.
On Sat, 13 Nov 2004, Greg Matheson wrote:

> And the perl bindings continue to fail on Fedora Core 3 for me, using
> the supplied swig-1.3.21 and self-built 1.3.19.

> > All the tests, running make check-swig-pl, fail with errors like

> > 'Cannot load ... auto/SVN/_Core.so'

I installed the FC3 perl-subversion rpm package with yum and
removed the swig-1.3.19 and self-built subversion files.

[greg@pc161025 ~]$ whereis svn
svn: /usr/bin/svn /usr/share/man/man1/svn.1.gz

[greg@pc161025 ~]$ perl -MSVN::Core -e 0
perl: symbol lookup error:
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/SVN/_Core/_Core.so:
undefined symbol: SWIG_TypeRegister

This is a different, tho related, error than the error I was
getting with make check-swig-pl

>+/home/greg/subversion-1.1.1/subversion/bindings/swig/perl/libsvn_swig_perl/.lib
>+s/libsvn_swig_perl-1.so.0:
>> undefined symbol: SWIG_TypeQuery

-- 
Greg Matheson, Taiwan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: swig-py will not compile.

Posted by Greg Matheson <la...@ms.chinmin.edu.tw>.
On Thu, 11 Nov 2004, Ray Van Dolson wrote:

> I tried 1.3.21 -- same thing.  I wonder which "parameter" has been omitted.
> Perhaps I should take this to the SWIG list?

> Maybe it has to do with my RedHat RPM version of Python...

On Fedora Core 3, they compile OK for me, but I wonder why there
are no tests for them whereas there are for the perl bindings.

Meanwhile, on Wed, 27 Oct 2004, I wrote:

> I can't build the perl bindings on a Fedora Core 2 machine in
> subversion-1.1.1, even though they do build on another Core 1
> machine. 

And the perl bindings continue to fail on Fedora Core 3 for me, using
the supplied swig-1.3.21 and self-built 1.3.19.

> All the tests, running make check-swig-pl, fail with errors like

> 'Cannot load ... auto/SVN/_Core.so'

The tests are still failing. At one point with FC2, check-swig-pl was
succeeding. But perl -MSVN::Core -e 0 was failing.

I need to read the errors more carefully.

> /home/greg/subversion-1.1.1/subversion/bindings/swig/perl/libsvn_swig_perl/.libs/libsvn_swig_perl-1.so.0:
> undefined symbol: SWIG_TypeQuery 

Perhaps I don't have the right swig.

--
Greg Matheson, Taiwan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org