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

Re: Problems building Perl binding

From: Cristiano Paris <paris_at_disp.uniroma2.it>
Date: 2004-02-26 23:50:30 CET

On Thu, Feb 26, 2004 at 05:25:13PM -0500, John Peacock wrote:
> Cristiano Paris wrote:
> >It seems I'm getting through... recall the error:
> >
> >/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../../i686-pc-linux-gnu/bin/ld:
> >cannot open output file blib/arch/auto/SVN/_Client/_Client.so: No such
> >file or directory
> >
> >Well, analysing that huge gcc command line I realized that it's
> >complaining because no blib/arch/auto/SVN/_Client directory exists.
>
> Ah, if it were so simple.

I don't know where the problem really is but I reverted to Swig 1.3.19
and now it works fine :-).

Here is make test output:

sackville perl # make test
PERL_DL_NONLAZY=1 LD_LIBRARY_PATH=/var/tmp/portage/subversion-1.0.0/work/subversion-1.0.0/subversion/bindings/swig/.libs:/var/tmp/portage/subversion-1.0.0/work/subversion-1.0.0/subversion/libsvn_client/.libs:/var/tmp/portage/subversion-1.0.0/work/subversion-1.0.0/subversion/libsvn_delta/.libs:/var/tmp/portage/subversion-1.0.0/work/subversion-1.0.0/subversion/libsvn_fs/.libs:/var/tmp/portage/subversion-1.0.0/work/subversion-1.0.0/subversion/libsvn_ra/.libs:/var/tmp/portage/subversion-1.0.0/work/subversion-1.0.0/subversion/libsvn_repos/.libs:/var/tmp/portage/subversion-1.0.0/work/subversion-1.0.0/subversion/libsvn_wc/.libs:/var/tmp/portage/subversion-1.0.0/work/subversion-1.0.0/subversion/libsvn_diff/.libs:/var/tmp/portage/subversion-1.0.0/work/subversion-1.0.0/subversion/libsvn_subr/.libs /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/0use.......ok
t/1repos.....ok 1/5# committed 1,2004-02-26T22:40:20.847518Z,root
t/1repos.....ok 2/5# committed 2,2004-02-26T22:40:20.909162Z,root
t/1repos.....ok 4/5# committed 3,2004-02-26T22:40:20.960839Z,root
t/1repos.....ok 5/5# cleanup
t/1repos.....ok
t/2fs........ok 11/11# cleanup
t/2fs........ok
t/3client....ok 112/112# cleanup
t/3client....ok
7/112 skipped: Impossible to test without external effort to setup https
t/4pool......ok 6/6# cleanup
t/4pool......ok
t/5delta.....ok
2/2 skipped: IO::String not installed
All tests successful, 9 subtests skipped.
Files=6, Tests=143, 12 wallclock secs ( 1.38 cusr + 0.30 csys = 1.68 CPU)

I'm currently installing svk and it seems to work...

> That directory should exist, because the code
> further upstream should have created it (and the _Client.so to put there).
> The directory doesn't, because the Makefile didn't, so creating it won't
> help you.

I cannot understand what you say here :-)

>
> Did you follow my [offline] suggestion to 'make install-runtime' when
> installing the SWIG libraries? I don't know how to force SWIG to provide
> more robust feedback when creating files.

I don't have full control over swig installation. In case it didn't work
I should have given a try...

> I'm guessing that your subversion/bindings/swig/perl directory does not
> contain all of these files:
>
> >Base.pm delta_editor.hi Makefile.old ra_reporter.hi svn_ra.o
> >blib/ Delta.pm Makefile.PL _Repos.bs svn_repos.c
> >blibdirs _Fs.bs Makefile.ra Repos.pm svn_repos.o
> >_Client.bs Fs.pm Makefile.repos svn_client.c svn_wc.c
> >Client.pm h2i.pl Makefile.wc svn_client.o svn_wc.o
> >_Core.bs Makefile modules svn_delta.c t/
> >core.c Makefile.client pm_to_blib svn_delta.o _Wc.bs
> >core.o Makefile.delta _Ra.bs svn_fs.c Wc.pm
> >Core.pm Makefile.fs ra_plugin.hi svn_fs.o
> >_Delta.bs makefile.log Ra.pm svn_ra.c

Here's mine, quite similar to yours indeed:

Base.pm Makefile.PL Makefile.repos _Core.bs blib make.log svn_client.o svn_ra.o
Client.pm Makefile.client Makefile.wc _Delta.bs blibdirs modules svn_delta.c svn_repos.c
Core.pm Makefile.delta Ra.pm _Fs.bs core.c pm_to_blib svn_delta.o svn_repos.o
Delta.pm Makefile.fs Repos.pm _Ra.bs core.o ra_plugin.hi svn_fs.c svn_wc.c
Fs.pm Makefile.old Wc.pm _Repos.bs delta_editor.hi ra_reporter.hi svn_fs.o svn_wc.o
Makefile Makefile.ra _Client.bs _Wc.bs h2i.pl svn_client.c svn_ra.c t

> which would explain why you are not getting the .so files built properly.
> Those *.c files are created by swig.

Ok. Thank you John for all the time you spent helping me :-)

Cristiano

----
Web: http://www.disp.uniroma2.it/users/paris
Public PGP/GnuPG key
pub  1024D/32CA6D54 2004-01-23 Cristiano Paris (RHPK) <c.paris@email.it>
     Key fingerprint = 3BFD 9884 230A 1F17 391C  1434 80CB 2C7A 32CA 6D54
----

  • application/pgp-signature attachment: stored
Received on Thu Feb 26 23:50:04 2004

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

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