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

Re: problem building ruby binding

From: Kouhei Sutou <kou_at_cozmixng.org>
Date: 2005-07-24 07:44:00 CEST

Hi,

In <1122099155.29277.4.camel@gen64>
  "problem building ruby binding" on Sat, 23 Jul 2005 15:12:35 +0900,
  Gyoung-Yoon Noh <nohmad@sub-port.net> wrote:

> Hi, I've mailed a small patch to users@subversion.tigris.org
> two days ago, yes by mistake. :(

Sorry, I'm not reading users@ list.

> 1. swig ruby testing fails because of wrong library path.
> See patch attached.

I can't understand what problem current library path setup
process has on your environment.

Could you show me the followings?:

  * the test result

  * ls -l subversion/bindings/swig/ruby/svn/ext/ when
    you comment out "at_exit {FileUtils.rm_rf(ext_dir)}" in
    subversion/bindings/swig/ruby/test/run-test.rb.

  * the result when you add "p $LOAD_PATH" to
    the next line of "$LOAD_PATH.unshift(Dir.pwd)" in
    subversion/bindings/swig/ruby/test/run-test.rb.

> 2. Built libraries have addtionary suffix '-pc-linux-gnu-gcc',
> which cause loading library fail.

This was fixed in r15104. In trunk, this problem isn't
occurred.

I attach a diff between r15103:15104.

Thank you for reporting.
Regards,

--
kou

Index: build/ac-macros/swig.m4
===================================================================
--- build/ac-macros/swig.m4 (revision 15103)
+++ build/ac-macros/swig.m4 (revision 15104)
@@ -216,7 +216,7 @@
       SWIG_RB_COMPILE="$svn_cv_ruby_compile"
 
       AC_CACHE_CHECK([how to link Ruby extensions], [svn_cv_ruby_link],[
- svn_cv_ruby_link="`$RUBY -rrbconfig -e 'print Config::CONFIG.fetch(%q(LDSHARED)).sub(/^\w+/, Config::CONFIG.fetch(%q(CC)) + %q( -shrext .) + Config::CONFIG.fetch(%q(DLEXT)))'`"
+ svn_cv_ruby_link="`$RUBY -rrbconfig -e 'print Config::CONFIG.fetch(%q(LDSHARED)).sub(/^\S+/, Config::CONFIG.fetch(%q(CC)) + %q( -shrext .) + Config::CONFIG.fetch(%q(DLEXT)))'`"
       ])
       SWIG_RB_LINK="$svn_cv_ruby_link"
 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Jul 24 07:45:15 2005

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